Videos API intermittently returning null videos

Using v5 of the Twitch API, I’m trying to get the past broadcast videos for a channel. Intermittently, the API returns null data as follows:

{
   "_total": 238,
   "videos": []
}

This is the endpoint I’m calling:

https://api.twitch.tv/kraken/channels/23161357/videos?broadcasts=true&limit=50&offset=350

The offset value has no significance, the API randomly returns empty data regardless of the value. Try the same endpoint again, and you may get data back. Try again and you get empty data. It’s totally random.

Have you tried this already? GET /channels/:channel/videos is returning inconsistent total of videos

v5 doesn’t support broadcasts parameter and uses broadcast_type instead.

Thankyou, this appears to have fixed it.

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