# Get user list in chat?

**URL:** <https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263>\
**Category:** API\
**Created:** [August 28, 2021, 10:30am UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263 "2021-08-28T10:30:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oxey405](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@Oxey405](https://staging-discuss.dev.twitch.com/u/Oxey405)\
**Post date:** [August 28, 2021, 10:30am UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/1 "2021-08-28T10:30:05Z")

</div>

Hi !  
I am searching for a way to get the users list in chat.  
I tried using [https://tmi.twitch.tv/group/user/CHANNEL/chatters](https://tmi.twitch.tv/group/user/CHANNEL/chatters)  
but I get a CORS policy error when I try a XMLHttpRequest.

do you have any idea of how I can achieve that ?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 28, 2021, 12:13pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/2 "2021-08-28T12:13:53Z")

</div>

> [@Oxey405](#):
>
> do you have any idea of how I can achieve that ?

Don’t make the call in front end code.  
Make the call via a server.

---

<div class="post-metadata">

**Author:** ![Oxey405](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@Oxey405](https://staging-discuss.dev.twitch.com/u/Oxey405)\
**Post date:** [August 28, 2021, 1:22pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/3 "2021-08-28T13:22:12Z")

</div>

I can’t it’s for a thing in the backgound of my live

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 28, 2021, 1:23pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/4 "2021-08-28T13:23:59Z")

</div>

There is no solution to this without using a server.  
Since you cannot bypass the CORS requirements enforced by the server you are making requests to.

Basically Twitch is blocking you from doing _exactly_ what you are trying to do.

---

<div class="post-metadata">

**Author:** ![Oxey405](https://avatars.discourse-cdn.com/v4/letter/o/6a8cbe/32.png) [@Oxey405](https://staging-discuss.dev.twitch.com/u/Oxey405)\
**Post date:** [August 28, 2021, 1:55pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/5 "2021-08-28T13:55:55Z")

</div>

Oh… Okay so I’ll make a server and try to fetch it from there but what to do exactly ? a cURL?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 28, 2021, 1:57pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/6 "2021-08-28T13:57:25Z")

</div>

Yes a curl.

Or whatever the language of choice you use does to make HTTP requests.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [September 27, 2021, 1:58pm UTC](https://staging-discuss.dev.twitch.com/t/get-user-list-in-chat/33263/7 "2021-09-27T13:58:08Z")

</div>

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