-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did anybody try to request the data via Python? #45
Comments
I don't think requests.post(api_url, headers=headers, json=query) |
Thanks, that was quite useful. I made some changes (turns out, there is an json parameter in the .post method) and this does it for me: response = requests.post(api_url, headers=headers, json=query)
print(response.status_code)
response_data = response.json()
print(response_data) Got a positive status code and the requested data. Also had a typo in the URL, it is "v1" and not "v1e". |
It's a convention that |
So far, all I am able to do is produce "JSONDecodeError"s: "Expecting value: line 1 column 1 (char 0)"
I tried something like this:
Also had to replace the "false" in the JSON query with "False", as the IDE was throwing an error otherwise. I am not the most firm with REST APIs, can anybody offer some insight how this might work?
The text was updated successfully, but these errors were encountered: