# How to Get Sensor Indexes and Locations in a Region

**URL:** <https://community.purpleair.com/t/how-to-get-sensor-indexes-and-locations-in-a-region/22234>\
**Category:** Sensors\
**Created:** [August 18, 2025, 2:50pm UTC](https://community.purpleair.com/t/how-to-get-sensor-indexes-and-locations-in-a-region/22234 "2025-08-18T14:50:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nancy98](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@nancy98](https://community.purpleair.com/u/nancy98)\
**Post date:** [August 18, 2025, 2:50pm UTC](https://community.purpleair.com/t/how-to-get-sensor-indexes-and-locations-in-a-region/22234/1 "2025-08-18T14:50:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kieran](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/kieran/32/6220_2.png) [@Kieran](https://community.purpleair.com/u/Kieran)\
**Post date:** [August 21, 2025, 4:50pm UTC](https://community.purpleair.com/t/how-to-get-sensor-indexes-and-locations-in-a-region/22234/2 "2025-08-21T16:50:48Z")

</div>

Hi @nancy98

You can utilize an [API Bounding Box call](https://community.purpleair.com/t/finding-large-amounts-of-sensor-indexes-bounding-box-api-call/5688) to retrieve sensor indexes for a geological location.

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