get

suspend fun get(broadcasterId: String, userIds: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<Subscription>

Twitch API: Get Broadcaster Subscriptions

Gets a single page of the broadcaster's subscribers. The list is sorted by the date and time each user subscribed (newest first).

Return

a Page of Subscription objects.

Parameters

broadcasterId

the broadcaster's ID. This ID must match the user ID in the access token.

userIds

filters the list to include only the specified subscribers. You may specify a maximum of 100 user IDs. Do not specify cursor when using this filter.

cursor

the cursor used to get the next page of results. Do not specify if you set userIds.

pageSize

the maximum number of items to return per page (1-100, default 20). Null uses the API default.