# Retrieve via API the current listeners numbers

**URL:** <https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433>\
**Category:** Uncategorized\
**Created:** [December 10, 2019, 12:59am UTC](https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433 "2019-12-10T00:59:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmotte32](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/marmotte32/32/243_2.png) [@marmotte32](https://discourse.libretime.org/u/marmotte32)\
**Post date:** [December 10, 2019, 12:59am UTC](https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433/1 "2019-12-10T00:59:21Z")

</div>

Hello guys,  
Maybe you can help me, would it be possible via the API to get the current listeners numbers?  
Thanks for your hints 🙂

---

<div class="post-metadata">

**Author:** ![joemcmahon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/joemcmahon/32/115_2.png) [@joemcmahon](https://discourse.libretime.org/u/joemcmahon)\
**Post date:** [December 11, 2019, 6:29am UTC](https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433/2 "2019-12-11T06:29:14Z")

</div>

We didn’t find a good way to get it directly from Airtime, so we used Node to monitor it in Icecast. You can take a peek at [our bot’s source](https://github.com/joemcmahon/mrspiral-spudbot/blob/master/lib/slapp.js) to get an idea of how to set this up.

Note that we return this via the SLAPP APIs direct to Slack; you’d probably want to wrap this up in a little HTTP server and query it that way.

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/james/32/176_2.png) [@James](https://discourse.libretime.org/u/James)\
**Post date:** [December 12, 2019, 8:41am UTC](https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433/3 "2019-12-12T08:41:43Z")

</div>

I get the listener count via IceCast itself myself.

[https://your-server-ip-address:8000/status-json.xsl](https://your-server-ip-address:8000/status-json.xsl)

---

<div class="post-metadata">

**Author:** ![marmotte32](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/marmotte32/32/243_2.png) [@marmotte32](https://discourse.libretime.org/u/marmotte32)\
**Post date:** [December 26, 2019, 9:40pm UTC](https://discourse.libretime.org/t/retrieve-via-api-the-current-listeners-numbers/433/4 "2019-12-26T21:40:06Z")

</div>

Thanks a lot for your hints ! I will dig into soon
