Skip to main content

Moderators - Get Events

Description

Returns a list of moderators or users added and removed as moderators from a channel.

warning

Twitch decommissioned this endpoint on March 15, 2022.

Method Definition

@Deprecated
@RequestLine(value = "GET /moderation/moderators/events?broadcaster_id={broadcaster_id}&user_id={user_id}&after={after}", collectionFormat = CollectionFormat.CSV)
@Headers("Authorization: Bearer {token}")
HystrixCommand<ModeratorEventList> getModeratorEvents(
@Param("token") String authToken,
@Param("broadcaster_id") String broadcasterId,
@Param("user_id") List<String> userIds,
@Param("after") String after
);

Required Parameters

NameTypeDescription
authTokenstringUser Token for the broadcaster (scope: moderation:read)
broadcasterIdstringProvided broadcaster_id must match the user_id in the auth token.

Optional Parameters

NameTypeDescription
userIdsstringFilters the results and only returns a status object for users who are moderators in this channel and have a matching user_id.
afterstringCursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.

Code-Snippets

ModeratorEventList resultList = twitchClient.getHelix().getModeratorEvents(authToken, broadcasterId, null, null).execute();
resultList.getEvents().forEach(event -> {
System.out.println(event);
});