How can I get chat list in a channel by API?

I develop an android application to live stream by Twitch api. I know how to login and get the channel information, but I don’t know how to get the channel’s chat list by API?

Using IRC? I I know very little about IRC. I read the doc of the Chat and IRC but don’t know how to connect to the server and get chat list? Does it connect to the server using Http request?

Thanks a lot for any help.

Here is where you can get the list of chatters:

https://tmi.twitch.tv/group/user/:channel_name/chatters

Where :channel_name is the login name of a channel. This is the same endpoint that Twitch uses to show the list of users. It’s not very reliable and may take multiple requests to get actual information. If you want to connect to chat, then here’s the guide to Twitch’s IRC: https://dev.twitch.tv/docs/v5/guides/irc/ – there’s a ton of libraries available for tons of languages.

2 Likes

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