get

suspend fun get(ids: List<String> = emptyList(), userId: String? = null, gameId: String? = null, language: String? = null, period: VideoPeriod? = null, sort: VideoSort? = null, type: VideoType? = null, cursor: String? = null, pageSize: Int? = null): Page<Video>

Twitch API: Get Videos

Gets a single page of published videos matching the filter criteria.

Return

a Page of Video objects.

Parameters

ids

a list of IDs that identify the videos you want to get. You may specify a maximum of 100 IDs.

userId

the ID of the user whose list of videos you want to get.

gameId

a category or game ID.

language

a filter used to filter the list of videos by the language that the video owner broadcasts in.

period

a filter used to filter the list of videos by when they were published. Possible values: all, day, month, week. Default: all.

sort

the order to sort the returned videos in. Possible values: time, trending, views. Default: time.

type

a filter used to filter the list of videos by the video's type. Possible values: all, archive, highlight, upload. Default: all.

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.