# How to get streams under specific games

**URL:** <https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597>\
**Category:** API\
**Created:** [May 8, 2021, 9:38am UTC](https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597 "2021-05-08T09:38:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s103071049](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@s103071049](https://discuss.dev.twitch.com/u/s103071049)\
**Post date:** [May 8, 2021, 9:38am UTC](https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597/1 "2021-05-08T09:38:58Z")

</div>

Hi~ guys, I have problems at doing this. I know how to get streams or get games. But I have no idea about how to put these together.  
I want to print 100 popular streams when I search the game. ex: node test.js “Apex Legends” , the command line will show the popular streams for that games.

what can I do ? thank you for your helping!

---

<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:** [May 8, 2021, 10:18am UTC](https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597/2 "2021-05-08T10:18:34Z")

</div>

Call

- Get games [https://dev.twitch.tv/docs/api/reference#get-games](https://dev.twitch.tv/docs/api/reference#get-games)

To get the Game ID

Then call

- Get Streams [https://dev.twitch.tv/docs/api/reference#get-streams](https://dev.twitch.tv/docs/api/reference#get-streams)

with a game ID filter

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

That example calls “get top games” then passes those game ID’s to get streams

---

<div class="post-metadata">

**Author:** ![s103071049](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@s103071049](https://discuss.dev.twitch.com/u/s103071049)\
**Post date:** [May 8, 2021, 3:22pm UTC](https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597/3 "2021-05-08T15:22:38Z")

</div>

thank you for your help.

---

<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:** [June 7, 2021, 3:22pm UTC](https://discuss.dev.twitch.com/t/how-to-get-streams-under-specific-games/31597/4 "2021-06-07T15:22:48Z")

</div>

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