# I received an empty video list for while adding specific game\_id

**URL:** <https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535>\
**Category:** API\
**Created:** [November 24, 2023, 1:06pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535 "2023-11-24T13:06:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Lysak](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/victor_lysak/32/27874_2.png) [@Victor\_Lysak](https://discuss.dev.twitch.com/u/Victor_Lysak)\
**Post date:** [November 24, 2023, 1:06pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/1 "2023-11-24T13:06:05Z")

</div>

**What do I want?**  
I want to receive a list of videos by the categories. Feel free to check [categories](https://dev.twitch.tv/docs/api/reference/#search-categories) and [video](https://dev.twitch.tv/docs/api/reference/#get-videos) documentation.

**The bug description.**  
I can`t receive a list of videos for some specific game\_id param. Please feel free to check my video [game\_id\_bug.mov - Google Drive](https://drive.google.com/file/d/1I9RVIibjqfr2H9pKSg0YjNZqNKzGzSKq/view?usp=sharing)

**Steps to reproduce**

1. Check that API returns video items [https://api.twitch.tv/helix/videos?game\_id=7802&game\_id=17988&game\_id=74300&game\_id=489294&game\_id=492612&game\_id=498566&game\_id=504880&game\_id=12988583&game\_id=144106220&game\_id=269774996&game\_id=290961240&sort=views&type=highlight&first=100](https://api.twitch.tv/helix/videos?game_id=7802&game_id=17988&game_id=74300&game_id=489294&game_id=492612&game_id=498566&game_id=504880&game_id=12988583&game_id=144106220&game_id=269774996&game_id=290961240&sort=views&type=highlight&first=100)
2. Make sure that {  
“data”: [**has a video items**],  
“pagination”: {“some value”}  
}
3. add one more game\_id=627823064 to the previous request  
**Actual result**  
The data doesn`t contain previous items. It becomes empty “data”: .  
{  
“data”: ,  
“pagination”: {}  
}  
**Expected result**  
The API response will be extended with items from the category by game\_id=627823064

Could someone help me? Why does the API response become empty while adding game\_id=627823064 or similar?

---

<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:** [November 24, 2023, 1:12pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/2 "2023-11-24T13:12:46Z")

</div>

A fix is outlined in

> <https://github.com/twitchdev/issues/issues/651>
>
> \*\*Brief description\*\*
> Videos endpoint returns an empty data array when specifyi…ng a game\_id and querying from a browser.
> 
> \*\*How to reproduce\*\*
> Call the videos api with a game\_id from any browser.
> 
> \*\*Expected behavior\*\*
> Match the behavior of the endpoint when being called from outside a browser
> 
> \*\*Screenshots\*\*
> Not a screenshot but you can use \[this page\](https://dannyhisstuff.com/twitchgamevideos.html) as an example
> 
> \*\*Additional context or questions\*\*
> Only broken when querying from a browser

---

<div class="post-metadata">

**Author:** ![Victor\_Lysak](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/victor_lysak/32/27874_2.png) [@Victor\_Lysak](https://discuss.dev.twitch.com/u/Victor_Lysak)\
**Post date:** [November 28, 2023, 11:04am UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/3 "2023-11-28T11:04:16Z")

</div>

Thanks for your reply. I have checked with

```auto
 'accept-language': 'YOUWHAT'

```

as you suggested. Unfortunately, I faced with the same issue. Please take a look at a video

> **[twitch\_api\_headers\_reply.mov](https://drive.google.com/file/d/1KAztwaeDdJbZE_aoWW2beLZbq6z62VFk/view?usp=sharing)**
>
> Google Drive file.

Here is my request  
[https://api.twitch.tv/helix/videos?game\_id=7802&game\_id=17988&game\_id=74300&game\_id=489294&game\_id=492612&game\_id=498566&game\_id=504880&sort=views&type=highlight](https://api.twitch.tv/helix/videos?game_id=7802&game_id=17988&game_id=74300&game_id=489294&game_id=492612&game_id=498566&game_id=504880&sort=views&type=highlight)

---

<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:** [November 28, 2023, 12:38pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/4 "2023-11-28T12:38:22Z")

</div>

Oh you tried to specfiy multiple game ID’s

And the last game ID won

```auto
twitch api get 'videos?game_id=504880&type=highlight&sort=views'
{
  "data": [],
  "pagination": {}
}

```

This API (Get Videos) does not support declaring multiple `game_id` in the same call, to get videos for multiple games will require one API call per `game_id`

---

<div class="post-metadata">

**Author:** ![Victor\_Lysak](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/victor_lysak/32/27874_2.png) [@Victor\_Lysak](https://discuss.dev.twitch.com/u/Victor_Lysak)\
**Post date:** [November 28, 2023, 12:53pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/5 "2023-11-28T12:53:44Z")

</div>

Thanks. I will use a single request for individual game\_id

---

<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:** [December 28, 2023, 12:54pm UTC](https://discuss.dev.twitch.com/t/i-received-an-empty-video-list-for-while-adding-specific-game-id/51535/6 "2023-12-28T12:54:19Z")

</div>

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