Obtaining PurpleAir location data (lat/long) for California

Hi everyone,

I am new to programming and using the PurpleAir API, and would really appreciate guidance on how to best download location data for all PurpleAir sensors in California (it doesn’t need to be historical data, just the current locations of sensors throughout the state). I am using this for a project looking at the relationship between PurpleAir sensor distribution and sociodemographic variables.

It seems like the best way might be to enter SW/SE/NW/NE coordinates to create a rectangle that covers the state, but if there’s a better way to do this, I’d love any insight!

Thanks so much.

Update - I was able to figure this out and successfully downloaded the data.

Hi,

I am attempting to do the same. Do you mind sharing the steps you took to download the data?
I would greatly appreciate it.

Thank you.

Att Purple Air, Where is your heart

Note you stated from the start.
PurpleAir is built on the ideal of sharing data and by doing this, empowering individuals to effect change. All public PurpleAir data is available to download under various licenses

Now your sensor users find that their data is NOT freely available for download due to the very limited (crippled) tools that are now provided for users. The very limited tools of today now make the data for practical purposes for many uses unavailable.
So again I ask the staff at Purple Air…
Where is your heart

Hi. I am also trying to download the location data for the PurpleAir sensors in LA, how did you go about downloading the data? Thanks.

Hi. I am also trying to download the location data for the PurpleAir sensors in LA, did you ever figure out how to download the data locations? Thanks.

@sophiematuch
To get the locations, you’ll start by using a Get Sensors Data API call. This will allow you to create a geographic bounding box and retrieve data from the sensors in that bounding box. The data will be from the most recent report from each of the sensors, so the historical data cannot be gathered using this call. Rather, the purpose of this API call is to retrieve station information about the sensors. You will receive the sensor index for all sensors in the bounding box by default, and you can also request other fields, such as latitude, longitude, altitude, name, model, location_type, and other information about each sensor that doesn’t change frequently.

Once you have your list of sensor indexes, you can use the Get Sensor History (or CSV version) to get the historical data. Alternatively, you can use the PurpleAir Data Download Tool, which accesses the History API in the same way, but is a more user-friendly way to do so.

Hi Bob, apologies for the incredibly late response. In case you haven’t received an answer to your question, here is some information on how retrieving data is made free for sensor owners: API Points for Sensor Owners.

Regarding ease of use, here is an article that will walk you through how to retrieve data using a variety of tools: How do I download sensor data?