I am trying to download historical data for multiple sensors for a research project. I am getting the below error. Not sure if I am doing something wrong. Thanks!
Starting requests for sensor 13.
Making request 1.
Error Code: 400
Description: A provided history field (latitude) was not found.
Error Meaning: This error means that at least one of the fields you are using does not work with an average. View the error message for the specific field that is causing the error.
Due to this error, the process is being aborted…
Process has been aborted!
This error is occurring because the “latitude” field only works with a 2-minute average. You will have to change to a 2-minute average or remove the “latitude” field to query the data.
We do not recommend querying the latitude value frequently as it should not change. More information is available here: API Use Guidelines.
Is there a way to get a list of monitors with latitude and longitude without querying? Then the querying could just focus on data needed?
Interested in seeing something similar; if someone helps, that would be so insightful. Push on this to become apparent in this thread – Thanks!
I am also interested in getting a list of sensors with the latitude and longitude. If someone knows how to do this, it would be very much appreciated. Thanks!
I tried to query the sensors using the Data Download Tool using real-time and then the latitude and longitude fields and it returns no data. What is the correct way to get latitude and longitude for senors?
There is not a 2 minute average option. Just real time (which did not work) and 10 minute is the next option. Still unsure how to retrieve latitude and longitude.
You cannot currently get latitude and longitude values using the historical API. The 2-minute (real-time) option in the data download tool will download data with a 2-minute average but still uses the historical API.
You will need programming experience to get the latitude and longitude values. You could also try entering your request at https://api.purpleair.com/.
We are always looking to incorporate more features and improve our services. We will look into implementing a tool to collect latitude and longitude values in the future.