import requests r = requests.get('http://127.0.0.1:8000/h5/agents/online-status') print(r.text)