# API Keeps showing viewer count as ZERO

**URL:** <https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854>\
**Category:** API\
**Created:** [January 24, 2020, 9:31am UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854 "2020-01-24T09:31:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unknown](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/unknown/32/6770_2.png) [@Unknown](https://discuss.dev.twitch.com/u/Unknown)\
**Post date:** [January 24, 2020, 9:31am UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/1 "2020-01-24T09:31:59Z")

</div>

For the past 2 weeks or so, the API keeps showing view count as zero when doing a pull.

You can also notice this happening on the Embedded Player, when you first load up a stream, the Viewcount is ZERO, then after a couple of seconds it goes to the correct amount.

Going forward- should this be always expected? The Delay? Should we be coding around it and doing extra checks on the API to get the right #;s ? Or is this some temp thing and will be fixed at some point soon?

---

<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:** [January 24, 2020, 11:05am UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/2 "2020-01-24T11:05:09Z")

</div>

> [@Unknown](#):
>
> For the past 2 weeks or so, the API keeps showing view count as zero when doing a pull.

For the duration of the stream? Or just at the start of the stream?

Whats the actual request you are making?

---

<div class="post-metadata">

**Author:** ![Unknown](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/unknown/32/6770_2.png) [@Unknown](https://discuss.dev.twitch.com/u/Unknown)\
**Post date:** [January 24, 2020, 12:35pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/3 "2020-01-24T12:35:18Z")

</div>

For the embedded player, its generally at the start.

but for this - its always zero - [https://api.twitch.tv/kraken/streams/](https://api.twitch.tv/kraken/streams/)\< StreamID \>

---

<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:** [January 24, 2020, 12:36pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/4 "2020-01-24T12:36:35Z")

</div>

Unable to replicate

> [https://api.twitch.tv/kraken/streams/23735582](https://api.twitch.tv/kraken/streams/23735582)

Shows `9470` viewers at time of writing.

---

<div class="post-metadata">

**Author:** ![Unknown](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/unknown/32/6770_2.png) [@Unknown](https://discuss.dev.twitch.com/u/Unknown)\
**Post date:** [January 24, 2020, 12:44pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/5 "2020-01-24T12:44:59Z")

</div>

Do it for a channel that is currently in ReRun mode

---

<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:** [January 24, 2020, 12:46pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/6 "2020-01-24T12:46:57Z")

</div>

Ah. You didn’t say it was a ReRun thats why I asked

> [@BarryCarlyon](#):
>
> Whats the actual request you are making?

To which you answered:

> [@Unknown](#):
>
> [https://api.twitch.tv/kraken/streams/](https://api.twitch.tv/kraken/streams/)\< StreamID \>

That is _why_ I asked for the _actual_ request you are making, and the request you posted is invalid. (Also for this end point it’s userID not streamID

Your issue is related to the known issue

> <https://github.com/twitchdev/issues/issues/39>
>
> \*\*Brief description\*\*
> 
> Similar to #38 but recently, ReRuns have completely dis…appeared from Helix
> 
> Affects the streams and followed/streams endpoints
> 
> \*\*How to reproduce\*\*
> 
> Call https://api.twitch.tv/kraken/streams/?stream\_type=playlist
> 
> \*\*Expected behavior\*\*
> 
> Get ReRuns/playlists
> 
> \*\*Screenshots\*\*
> 
> !\[image\](https://user-images.githubusercontent.com/20999/72662765-f3914f00-39e2-11ea-8816-a7629e277028.png)

Hopefulyl Twitch will fix the issues with ReRun’s in the API

---

<div class="post-metadata">

**Author:** ![Unknown](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/unknown/32/6770_2.png) [@Unknown](https://discuss.dev.twitch.com/u/Unknown)\
**Post date:** [January 24, 2020, 12:50pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/7 "2020-01-24T12:50:57Z")

</div>

So what do you think they are doing in the background that has effected the viewer # in regards to ReRuns? Isnt it alittle weird for that to not work yet everything else does?

Also how it shows up on the embed player…

Do you think they are getting ready to remove ReRuns from the directory as it was in the past?

---

<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:** [January 24, 2020, 12:51pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/8 "2020-01-24T12:51:56Z")

</div>

> [@Unknown](#):
>
> Do you think they are getting ready to remove ReRuns from the directory as it was in the past?

No

> [@Unknown](#):
>
> Also how it shows up on the embed player…

Viewer counts on the player are updated in a different way

> [@Unknown](#):
>
> So what do you think they are doing in the background that has effected the viewer # in regards to ReRuns?

It seems they pushed an update somewhere which has broken some other stuff but only on the third party side

---

<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:** [February 23, 2020, 12:51pm UTC](https://discuss.dev.twitch.com/t/api-keeps-showing-viewer-count-as-zero/23854/9 "2020-02-23T12:51:57Z")

</div>

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