Skip to main content

Get Chatters

Description

Gets vip's, moderators, staff, admins and normal viewers that are currently present in the chat. (Viewers that use a embedded viewer without chat can't be tracked using this)

There is no other way to request information about current viewers, as such this is currently the only way to get a list of people watching a stream.

warning

Twitch has decommissioned this endpoint in April 2023. Please migrate to TwitchHelix#getChatters, which now requires moderator authentication.

Method Definition

@RequestLine("GET /group/user/{channel}/chatters")
HystrixCommand<Chatters> getChatters(
@Param("channel") String channelName
);

Required Parameters

NameTypeDescription
channelNametextTarget Channel Name

Optional Parameters

None

Code-Snippets

Chatters chatters = twitchClient.getMessagingInterface().getChatters("lirik").execute();

System.out.println("Broadcaster: " + chatters.getBroadcaster());
System.out.println("VIPs: " + chatters.getVips());
System.out.println("Mods: " + chatters.getModerators());
System.out.println("Admins: " + chatters.getAdmins());
System.out.println("Staff: " + chatters.getStaff());
System.out.println("Viewers: " + chatters.getViewers());
System.out.println("All Viewers (sum of the above): " + chatters.getAllViewers());