We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v2/averages
It appears that if requesting averages in a time window less than ~4 months the data will return 0 results:
locations_id = 635657 url = f"https://api.openaq.org/v2/averages" params = { "parameters_id": 2, "date_from": "2023-05-01", "date_to": "2023-09-30", "locations_id": locations_id, "limit": 1000 } res = requests.get(url, params=params ) data = res.json() results = data["results"] print(data["meta"])
-> {'name': 'openaq-api', 'license': '', 'website': '/', 'page': 1, 'limit': 1000, 'found': 0}
Increasing the time window, for instance to "date_to: "2024-01-01" returns results which also include the original time window.
"date_to: "2024-01-01"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It appears that if requesting averages in a time window less than ~4 months the data will return 0 results:
-> {'name': 'openaq-api', 'license': '', 'website': '/', 'page': 1, 'limit': 1000, 'found': 0}
Increasing the time window, for instance to
"date_to: "2024-01-01"
returns results which also include the original time window.The text was updated successfully, but these errors were encountered: