getTopGames

suspend fun getTopGames(first: Int = 20, after: String? = null, before: String? = null): List<Game>

Twitch API: Get Top Games

Gets information about all broadcasts on Twitch.

Return

the list of broadcasts sorted by the number of viewers, with the most popular first.

Parameters

first

the maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20.

after

the cursor used to get the next page of results.

before

the cursor used to get the previous page of results.