# Getting the userlist throught the API

**URL:** <https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940>\
**Category:** API\
**Created:** [July 6, 2017, 8:29am UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940 "2017-07-06T08:29:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NainzguL](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/nainzgul/32/2969_2.png) [@NainzguL](https://discuss.dev.twitch.com/u/NainzguL)\
**Post date:** [July 6, 2017, 8:29am UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/1 "2017-07-06T08:29:31Z")

</div>

Hi everyone,

I’m currently writing a chat bot (yes, another, sorry about that), but I’m experiencing a strange behavior while tracking users that come in and go out the chan (via IRC). Therefore, I decided to get a “clear list” by requesting directly the API for users.  
I tried to get the list through  
[https://api.twitch.tv/kraken/streams/STREAM](https://api.twitch.tv/kraken/streams/STREAM)

But… no list is provided. I looked around, and found this :

[http://tmi.twitch.tv/group/user/STREAM/chatters](http://tmi.twitch.tv/group/user/STREAM/chatters)

It works good, but I read that it’s a non documented/non stable/deprecated endpoint to use.

So, the question is : is there a list of users in chan in the API, and if not, is the second URL good to use ?

Thanks in advance  
NainzguL

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [July 6, 2017, 12:30pm UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/2 "2017-07-06T12:30:25Z")

</div>

The latter is undocumented, but it’s not going anywhere for as long as the viewer list exists on the website in its current form.

---

<div class="post-metadata">

**Author:** ![NainzguL](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/nainzgul/32/2969_2.png) [@NainzguL](https://discuss.dev.twitch.com/u/NainzguL)\
**Post date:** [July 18, 2017, 9:59am UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/3 "2017-07-18T09:59:23Z")

</div>

Hi again.

After using the TMI request (I don’t really know how to call it, but the second URL I provided in my first message), I’ve a got a few feedbacks on it :

- First, it’s pretty slow to respond. I make a request on it once every 30 secondes (approx.), but it answers in like 1 or 2 seconds (which is slow in our world).
- Second, it’s pretty unaccurate : I mean, whenever a user comes in, speak in the chat, and do stuff with my bot, he’s consider as “not connected”. There is an interval (like 30 seconds ?) before twitch give me this user in the list of connected users.

So my questions are : is this normal ? Should I manage my own presence list to improve the twitch’s behavior ? Is there an update in the roadmap ?

Thanks again  
NainzguL

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [July 18, 2017, 10:13am UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/4 "2017-07-18T10:13:27Z")

</div>

Yes, it is slow. It doesn’t need to be fast for the website. Also yes, it’s cached pretty heavily and inaccurate as such.

---

<div class="post-metadata">

**Author:** ![NainzguL](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/nainzgul/32/2969_2.png) [@NainzguL](https://discuss.dev.twitch.com/u/NainzguL)\
**Post date:** [July 18, 2017, 11:21am UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/5 "2017-07-18T11:21:26Z")

</div>

OK, then, if it’s all normal, I’ll do with it.

Thanks a lot for your answers, 3ventic.

---

<div class="post-metadata">

**Author:** ![mkkagain](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/mkkagain/32/3565_2.png) [@mkkagain](https://discuss.dev.twitch.com/u/mkkagain)\
**Post date:** [July 23, 2017, 6:43pm UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/6 "2017-07-23T18:43:43Z")

</div>

Since a few days this URL is not working correctly.

For multiple channels the chatters count is often 0. I even get an HTTP 504 Error very often. Is there any problem with this endpoint? Or is it planned to make an official and documented one?

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 22, 2017, 6:43pm UTC](https://discuss.dev.twitch.com/t/getting-the-userlist-throught-the-api/10940/7 "2017-08-22T18:43:57Z")

</div>

Closed on August 22, 2017, 6:43pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
