Top categories based on the number of followers

Is there a twitch api which return list of top categories(Fortnite, Dota 2, etc…) based on the number of viewers/followers?

There is the Get Top Games endpoint which will return a list of the top categories based on the current viewer count.

If you need to get the number of viewers, you would need to page through the Get Streams endpoint and sum the counts from streams yourself.

1 Like

And this code exmaple demonstrates that

https://barrycarlyon.github.io/twitch_misc/examples/browse_categories/