Get Newest Live Channel for Game


I am a game developer, and was wondering if it’s possible to get URL of the newest live channel of a particular game so that I can post it to my Discord community when someone has gone live for that game.


You can use the get streams endpoint with the game_id param to get the list of streams playing your game. The results are sorted in descending order by viewer count, you can’t change the ordering to newest first so what you would have to do is poll the endpoint to get all the currently live streams for that game, sort them by their started_at value, and then any streams newer than the last time you polled the endpoint you post to Discord.

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