How to Get Sensor Indexes and Locations in a Region

Hi everyone,

I am trying to get a list of all outdoor PurpleAir sensors in a specific area like New York with their sensor_index, latitude and longitude.

Is there an easy way to do this using a script or the PurpleAir API? Any examples would be really helpful.

Thanks

1 Like

Hi @nancy98

You can utilize an API Bounding Box call to retrieve sensor indexes for a geological location.

I’d recommend reading through that article. Let me know if you have any questions after.