You can use the games endpoint to get the name of the game using the id https://dev.twitch.tv/docs/api/reference#get-games
Once you get the name, you’ll likely want to cache it so you wont have to make another request each time you need to translate a game ID into its name.