# Meaning of channel\_state

**URL:** <https://community.purpleair.com/t/meaning-of-channel-state/3836>\
**Category:** API\
**Created:** [March 5, 2023, 5:18pm UTC](https://community.purpleair.com/t/meaning-of-channel-state/3836 "2023-03-05T17:18:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerryN](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JerryN](https://community.purpleair.com/u/JerryN)\
**Post date:** [March 5, 2023, 5:18pm UTC](https://community.purpleair.com/t/meaning-of-channel-state/3836/1 "2023-03-05T17:18:32Z")

</div>

I can’t find a definition of the channel\_state values. And for that matter, some of the other fields in the api such as confidence, and confidence\_manual. Is there an api definitions lookup somewhere?

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.purpleair.com/ethan/32/177_2.png) [@Ethan](https://community.purpleair.com/u/Ethan)\
**Post date:** [March 6, 2023, 4:53pm UTC](https://community.purpleair.com/t/meaning-of-channel-state/3836/2 "2023-03-06T16:53:02Z")

</div>

Hi @JerryN, thank you for pointing this out. We will work on updating our documentation.

The meaning of the “channel\_state” value can be found here: [How can we determine if/when one of the sensors is downgraded? Will it show in the data from the API, or will customer service reach out to us directly?](https://community.purpleair.com/t/how-can-we-determine-if-when-one-of-the-sensors-is-downgraded-will-it-show-in-the-data-from-the-api-or-will-customer-service-reach-out-to-us-directly/3036).

The “confidence” value returns the confidence score of a sensor. The confidence score is a measure of how aligned the readings of its channels are. This value is available on the [PurpleAir map](https://map.purpleair.com) by clicking on a sensor and checking the percentage that appears (only for sensors with two laser counters).

I believe “confidence\_manual” parameter shows if a channel has been downgraded manually by a PurpleAir employee, but we will work on getting the definitions of the fields added to the documentation.

---

<div class="post-metadata">

**Author:** ![JerryN](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JerryN](https://community.purpleair.com/u/JerryN)\
**Post date:** [March 6, 2023, 5:17pm UTC](https://community.purpleair.com/t/meaning-of-channel-state/3836/3 "2023-03-06T17:17:37Z")

</div>

Ethan, I have attached a csv file I produced with some R code I wrote to download the data and then turn it into a more user-friendly form. At the link you sent the channel\_flag field is what has the normal, A/B downgraded values so that’s what I put in the channel\_flag column. channel\_state seems to give the same information as location, 1 is inside, 3 is outside.

All the confidence fields are NA for inside monitors. The confidence, confidence\_manual, and confidence\_automatic appear to be identical when the reading is 100 but sometimes vary when the readings are below 100. Would be good to know what the differences are.

Happy to share the R code if you are interested.

Regards,

Jerry

(Attachment temp.csv is missing)
