# Updating API endpoints to use User ID's?

**URL:** <https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148>\
**Category:** Chat and IRC\
**Created:** [November 16, 2016, 10:07am UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148 "2016-11-16T10:07:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoffs](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/hoffs/32/1952_2.png) [@Hoffs](https://discuss.dev.twitch.com/u/Hoffs)\
**Post date:** [November 16, 2016, 10:07am UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148/1 "2016-11-16T10:07:02Z")

</div>

Hello,

So I noticed the new v5 api update and was wondering whether endpoints like ‘[http://tmi.twitch.tv/group/user/user/chatters](http://tmi.twitch.tv/group/user/user/chatters)’ will be updated to correspond the user id’s. Because currently it seems you would need to get the chatter list and then use the api to get userid for each chatter. So for example if I were to do something with channel as big as Lirik I would have to call the API additional 20k+ times to get the user id’s.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [November 16, 2016, 10:28am UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148/2 "2016-11-16T10:28:13Z")

</div>

I doubt you’ll get a straight answer since TMI is not an officially supported API, that we are supposed to be consuming 😛

If you are tracking whom is actually speaking, the UserID is in the Tags data for each chat line…

---

<div class="post-metadata">

**Author:** ![Hoffs](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/hoffs/32/1952_2.png) [@Hoffs](https://discuss.dev.twitch.com/u/Hoffs)\
**Post date:** [November 16, 2016, 10:33am UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148/3 "2016-11-16T10:33:36Z")

</div>

Yeah, I see that userid is included in the tags, but if you want to see all who are currently in the chat you use that API. Also you can call [https://github.com/justintv/Twitch-API/blob/master/v3\_resources/streams.md#get-streamschannel](https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streamschannel) to get the viewer count but not the chatters.

Also I am pretty sure every chatbot that has any kind of point system that gives you point at random time intervals uses the TMI api as well.

---

<div class="post-metadata">

**Author:** ![DallasNChains](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dallasnchains/32/1608_2.png) [@DallasNChains](https://discuss.dev.twitch.com/u/DallasNChains)\
**Post date:** [November 16, 2016, 2:52pm UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148/4 "2016-11-16T14:52:35Z")

</div>

That TMI endpoint is unsupported as @BarryCarlyon stated. That said, we aren’t updating that API to use IDs instead of usernames. Nothing to announce on a supported version of the API.

---

<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:** [December 16, 2016, 2:52pm UTC](https://discuss.dev.twitch.com/t/updating-api-endpoints-to-use-user-ids/8148/5 "2016-12-16T14:52:41Z")

</div>

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