I’m in the process of co-locating my PurpleAir sensors but am having difficulties with downloading the data from October 27-29th, 2022. I followed the normal procedures - edit the start and end dates, 10-minute average but the downloaded Excel sheet is empty. Any suggestions?
The sensors no longer report data to ThingSpeak.com, and that is where the tool you are using gets data. We will update it to use the new API, but that is a work in progress, so please bear with us. In the meantime, the API (api.purpleair.com) will provide all historical data.
Is there any update on this issue? I haven’t figured out how to use the API yet, so I’d appreciate if I could download the data past October 25th from the map
Just to add, I have tried using the API through the Sample request on the PurpleAir API website, but I get the following error:
Error 403
{
“api_version”: “V1.0.11-0.0.41”,
“time_stamp”: 1670434184,
“error”: “ApiDisabledError”,
“description”: “API calls to this endpoint (get_sensor_history) have been restricted. Please try again later or contact PurpleAir for more information.”
}
You have to request access to get historical data, however this is limited to a set time, for example if you want hourly data you can only go back 14 days…
To clarify on what Kevin shared - there is a limit to the amount of data one calls or downloads at one time.
If one has a loop in a program/script, then one can make several calls to ‘build’ that data file.
There is more information on this endpoint limitation provided by PurpleAir in other community forum posts.