getStreams

suspend fun getStreams(userIds: List<String> = emptyList(), userLogins: List<String> = emptyList(), gameIds: List<String> = emptyList(), type: StreamType? = null, language: List<String> = emptyList(), cursor: String? = null, pageSize: Int? = null): Page<Stream>

Twitch API: Get Streams

Gets a single page of streams matching the filter criteria.

Return

a Page of Stream objects.

Parameters

userIds

filter by user IDs (max 100).

userLogins

filter by user login names (max 100).

gameIds

filter by game/category IDs (max 100).

type

filter by stream type: all, live. Default: all.

language

filter by language codes (max 100).

cursor

the cursor used to get the next page of results.

pageSize

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