# API Access to Gateway Statistics?

**URL:** <https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832>\
**Category:** v2 Backend\
**Created:** [November 16, 2018, 5:32am UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832 "2018-11-16T05:32:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tyr/32/17148_2.png) [@tyr](https://www.thethingsnetwork.org/forum/u/tyr)\
**Post date:** [November 16, 2018, 5:32am UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832/1 "2018-11-16T05:32:26Z")

</div>

I would like to setup a little Arduino controlled display to show off how many messages my gateway has sent as a feel good pat myself on the back. I don’t see anywhere in the API that gives these metrics. Am I missing something or is this something I could request?

---

<div class="post-metadata">

**Author:** ![cultsdotelecomatgmai](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cultsdotelecomatgmai/32/35697_2.png) [@cultsdotelecomatgmai](https://www.thethingsnetwork.org/forum/u/cultsdotelecomatgmai)\
**Post date:** [November 16, 2018, 7:53am UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832/2 "2018-11-16T07:53:14Z")

</div>

Hi @tyr, if you have set your gateway privacy settings to be public then you can access this information via a simple http get with no keys/etc. The following URL gets the stats for one of my gateways.

[http://noc.thethingsnetwork.org:8085/api/v2/gateways/srlwbs-01-0001](http://noc.thethingsnetwork.org:8085/api/v2/gateways/srlwbs-01-0001)

You can run this in a web browser to test, just substitute your gateway id for “srlwbs-01-0001” above. I generally use curl from a script to do the http get and then parse the returned JSON.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [November 16, 2018, 7:53am UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832/3 "2018-11-16T07:53:44Z")

</div>

The NOC will not be supported in V3 anymore, but improvements are due. See [Hylke’s response](https://www.thethingsnetwork.org/forum/t/can-we-still-get-statistics-from-all-gateways-and-nodes/2033/12) in [Can we still get statistics from all gateways and nodes?](https://www.thethingsnetwork.org/forum/t/can-we-still-get-statistics-from-all-gateways-and-nodes/2033)

---

<div class="post-metadata">

**Author:** ![tyr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tyr/32/17148_2.png) [@tyr](https://www.thethingsnetwork.org/forum/u/tyr)\
**Post date:** [November 16, 2018, 4:21pm UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832/4 "2018-11-16T16:21:03Z")

</div>

oh my gosh! thank you thank you thank you!

---

<div class="post-metadata">

**Author:** ![tyr](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tyr/32/17148_2.png) [@tyr](https://www.thethingsnetwork.org/forum/u/tyr)\
**Post date:** [November 16, 2018, 4:33pm UTC](https://www.thethingsnetwork.org/forum/t/api-access-to-gateway-statistics/19832/5 "2018-11-16T16:33:40Z")

</div>

I’ll just be a seven segment FeatherWing so no love lost if I can’t figure out v3 🙂

> **[Adafruit 0.56" 4-Digit 7-Segment FeatherWing Display - Blue](https://www.adafruit.com/product/3106)**
>
> One segment? No way dude! 7-Segments for life!This is the Blue Adafruit 0.56" 4-Digit 7-Segment Display w/ FeatherWing Combo Pack! We also have these combo packs in Green, Red, ...
