i want to know how i can find the game meta from new twitch api
i try : https://api.twitch.tv/helix/games/top
but this endpoint provided only 3 field for me etc. box_art, id and name
What sort of meta data are you looking for?
i want to sort by viewer
Games/top is sorted by viewers already. It just doesn’t return the view counts in the response
If you wanted the actual view counts
You’d have to call games/top then call streams filtering by game_id load a a few pages and math it up yourself.
So call https://api.twitch.tv/helix/games/top
Grab a gameID (so Just Chatting is 509658
)
Call https://api.twitch.tv/helix/streams?game_id=509658
load a few pages and add up the viewer_count
Generally speaking, for various reasons Twitch no longer calculates the totals
of things for you, so you have to math it yourself.
This is what I want.
thank for help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.