# Videos API intermittently returning null videos

**URL:** <https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555>\
**Category:** API\
**Created:** [December 17, 2016, 10:01am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555 "2016-12-17T10:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Statia](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/statia/32/4872_2.png) [@Statia](https://staging-discuss.dev.twitch.com/u/Statia)\
**Post date:** [December 17, 2016, 10:01am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555/1 "2016-12-17T10:01:38Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![BatedUrGonnaDie](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/batedurgonnadie/32/125_2.png) [@BatedUrGonnaDie](https://staging-discuss.dev.twitch.com/u/BatedUrGonnaDie)\
**Post date:** [December 17, 2016, 10:49am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555/2 "2016-12-17T10:49:38Z")

</div>

Have you tried this already? [GET /channels/:channel/videos is returning inconsistent total of videos](https://staging-discuss.dev.twitch.com/t/get-channels-channel-videos-is-returning-inconsistent-total-of-videos/8531/4)

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [December 17, 2016, 10:58am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555/3 "2016-12-17T10:58:30Z")

</div>

[v5 doesn’t support broadcasts parameter and uses broadcast\_type instead](https://dev.twitch.tv/docs/v5/reference/channels/#get-channel-videos).

---

<div class="post-metadata">

**Author:** ![Statia](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/statia/32/4872_2.png) [@Statia](https://staging-discuss.dev.twitch.com/u/Statia)\
**Post date:** [December 17, 2016, 11:13am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555/4 "2016-12-17T11:13:00Z")

</div>

Thankyou, this appears to have fixed it.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [January 16, 2017, 11:13am UTC](https://staging-discuss.dev.twitch.com/t/videos-api-intermittently-returning-null-videos/8555/5 "2017-01-16T11:13:13Z")

</div>

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