getGames

suspend fun getGames(ids: List<String> = emptyList(), names: List<String> = emptyList(), igdbIds: List<String> = emptyList()): List<Game>

Twitch API: Get Games

Gets information about specified categories or games.

You may get up to 100 categories or games by specifying their ID or name. You may specify all IDs, all names, or a combination of IDs and names. If you specify a combination of IDs and names, the total number of IDs and names must not exceed 100.

Return

the list of categories and games. The list is empty if the specified categories and games weren't found.

Parameters

ids

the IDs of the categories or games to get. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren't found.

names

the names of the categories or games to get. The name must exactly match the category's or game's title. You may specify a maximum of 100 names. The endpoint ignores duplicate names and names that weren't found.

igdbIds

the IGDB IDs of the games to get. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren't found.