Hello,
I have a small app that is collecting the video details by game id from Twitch on daily basis. I notice that endpoint isn’t returning anything for last 12 hours(at least). Whenever I’m requesting the video by ‘user_id’ everything is fine, but the response by game_id is empty. Any clue?
Thanks in advance!
request:
url = ‘https://api.twitch.tv/helix/videos?game_id=21779 ’ #League of Legends
req = requests.get(url, headers = Headers)
response:
{‘data’: [], ‘pagination’: {}}
This seems to have been raised on the issue tracker
opened 08:22AM - 05 May 22 UTC
closed 08:37PM - 11 May 22 UTC
product: api
ticketed
**Brief description**
When I request for the first 100 videos for a game, I get… an empty list.
**How to reproduce**
Execute query with appropriate headers (Authorization, Client-ID):
```sh
curl -X GET https://api.twitch.tv/helix/videos?first=100&period=day&sort=time&game_id=GAME_ID
```
**Expected behavior**
It should return a list of videos in the format described here (https://dev.twitch.tv/docs/api/reference#get-videos), but the list is empty:
```json
{
"data": [],
"pagination": {}
}
```
**Screenshots**
No
**Additional context or questions**
system
Closed
June 4, 2022, 10:50am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.