# Top categories based on the number of followers

**URL:** <https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068>\
**Category:** API\
**Created:** [June 9, 2021, 5:40pm UTC](https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068 "2021-06-09T17:40:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abebe\_Biru](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/abebe_biru/32/9742_2.png) [@Abebe\_Biru](https://discuss.dev.twitch.com/u/Abebe_Biru)\
**Post date:** [June 9, 2021, 5:40pm UTC](https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068/1 "2021-06-09T17:40:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [June 9, 2021, 5:43pm UTC](https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068/2 "2021-06-09T17:43:45Z")

</div>

There is the [Get Top Games](https://dev.twitch.tv/docs/api/reference#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](https://dev.twitch.tv/docs/api/reference#get-streams) endpoint and sum the counts from streams yourself.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 9, 2021, 6:18pm UTC](https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068/3 "2021-06-09T18:18:46Z")

</div>

And this code exmaple demonstrates that

[https://barrycarlyon.github.io/twitch\_misc/examples/browse\_categories/](https://barrycarlyon.github.io/twitch_misc/examples/browse_categories/)

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [July 9, 2021, 6:18pm UTC](https://discuss.dev.twitch.com/t/top-categories-based-on-the-number-of-followers/32068/4 "2021-07-09T18:18:51Z")

</div>

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