# Can i get all sensors id's?

**URL:** <https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926>\
**Category:** API\
**Created:** [October 13, 2023, 8:21pm UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926 "2023-10-13T20:21:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gugarauj07](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/gugarauj07/32/3878_2.png) [@gugarauj07](https://community.purpleair.com/u/gugarauj07)\
**Post date:** [October 13, 2023, 8:21pm UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926/1 "2023-10-13T20:21:19Z")

</div>

I would like to get the data of all the sensors registered on south america automatically in my app. Otherwise, i have to keep updating my code whenever i install a new sensor. Is there a way to do it?

---

<div class="post-metadata">

**Author:** ![Josh\_PurpleAir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/josh_purpleair/32/2842_2.png) [@Josh\_PurpleAir](https://community.purpleair.com/u/Josh_PurpleAir)\
**Post date:** [October 17, 2023, 5:35pm UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926/2 "2023-10-17T17:35:03Z")

</div>

Is the app that you’re using written by yourself?

If you want to obtain a list of all sensor indexes in South America, you may be interested in an article we posted showing [how to find large amounts of sensor indexes using geographic coordinates](https://community.purpleair.com/t/finding-large-amounts-of-sensor-indexes-bounding-box-api-call/5688). You can set a bounding box for South America, and periodically resend the query to find new sensor indexes.

---

<div class="post-metadata">

**Author:** ![gugarauj07](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/gugarauj07/32/3878_2.png) [@gugarauj07](https://community.purpleair.com/u/gugarauj07)\
**Post date:** [October 25, 2023, 11:16pm UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926/3 "2023-10-25T23:16:26Z")

</div>

Yes, it is. “SelvaApp” on play store, and appselva.com.br on web. Thank you, it worked!

---

<div class="post-metadata">

**Author:** ![gugarauj07](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/gugarauj07/32/3878_2.png) [@gugarauj07](https://community.purpleair.com/u/gugarauj07)\
**Post date:** [November 6, 2023, 1:04am UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926/4 "2023-11-06T01:04:26Z")

</div>

One more question. Can i get the data from private sensors if i have the login of the owner? How can i do that via API?

---

<div class="post-metadata">

**Author:** ![Josh\_PurpleAir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/josh_purpleair/32/2842_2.png) [@Josh\_PurpleAir](https://community.purpleair.com/u/Josh_PurpleAir)\
**Post date:** [November 6, 2023, 3:52pm UTC](https://community.purpleair.com/t/can-i-get-all-sensors-ids/6926/5 "2023-11-06T15:52:08Z")

</div>

You can get data for private sensors by using their sensor index, and including their read key in the “read\_keys” parameter. This parameter accepts a comma delineated list of read keys.

You’ll need to [view a private sensor on the PurpleAir map to obtain its read key](https://community.purpleair.com/t/sensor-index/4000#private-sensors-3).
