Name of game with Game ID?

Hey, everybody,
Quick question, do you know where to find the list of twitch games?
I explain myself I make a GET https://api.twitch.tv/helix/streams?user_login=mystreamer.
In my JSON I find “game_id”: “33214”, how can I translate 33214 into Fortnite ?
I would like to have if it exists a list of all the Twitch games with their ID.
Thanks

You can use the Get Games endpoint https://dev.twitch.tv/docs/api/reference#get-games and specify up to 100 game ids with the game_id querystring param and the game id that you got from the Get Streams endpoint.

As games infrequently update, it’s common to create a cache on your end so that you’re not constantly looking up what game 33214 is, if you already know it’s Fortnite.

The way I setup getting the game title is through the get streams endpoint.

Took the game ID from there and set it as a variable and pulled the game name and box art from the output to query from get games.

Only downside I’ve come across so far is I can’t get that information unless the user is online. If I find a way around it I’ll certainly update.

Thank you very much.
It works perfectly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.