Twitch does not have a proper api endpoint for this, and whenever a request is made for a stream it always returns the first game played. However, there is a section of the video query called "moments" (VideoMomentConnection) that can be pulled. It's paginated, which shouldn't be a massive deal. It shows all the games switched to, how long each section lasted and when the section began in the stream. It should be noted that this is measured with milliseconds, not seconds.
Twitch does not have a proper api endpoint for this, and whenever a request is made for a stream it always returns the first game played. However, there is a section of the video query called "moments" (VideoMomentConnection) that can be pulled. It's paginated, which shouldn't be a massive deal. It shows all the games switched to, how long each section lasted and when the section began in the stream. It should be noted that this is measured with milliseconds, not seconds.
Pulling this info for metadata purposes as well as displaying it when staging videos would be uber helpful.