# Empty results from api.twitch.tv/helix/channels/followers

**URL:** <https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666>\
**Category:** API\
**Created:** [December 18, 2023, 12:16pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666 "2023-12-18T12:16:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![streamdps](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@streamdps](https://discuss.dev.twitch.com/u/streamdps)\
**Post date:** [December 18, 2023, 12:16pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/1 "2023-12-18T12:16:51Z")

</div>

Hey there! I have empty results from this query. They used to work fine last year. What am I doing wrong?

```auto
<?php
$TOKENT = "xxx";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.twitch.tv/helix/channels/followers?broadcaster_id=180523751&first=1");
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Client-ID: xxx',
    'Authorization: Bearer ' . $TOKENT,
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
var_dump($result);
curl_close($ch);
$json = json_decode($result, true);
$likes = $json['total'];
?>

```

string(39) “{“total”:128,“data”:,“pagination”:{}}”

---

<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:** [December 18, 2023, 12:17pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/2 "2023-12-18T12:17:52Z")

</div>

Then one of the following applies:

- token is not of type user
- token is lacks the relevant scope
- the user token has the scope, but the user is not a mod (or better) of the channel

---

<div class="post-metadata">

**Author:** ![streamdps](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@streamdps](https://discuss.dev.twitch.com/u/streamdps)\
**Post date:** [December 18, 2023, 12:19pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/3 "2023-12-18T12:19:11Z")

</div>

I use app credentials to get this data. It worked for years and now is broken for some reason.

---

<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:** [December 18, 2023, 12:19pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/4 "2023-12-18T12:19:51Z")

</div>

The authentication requirements for this API changed.

---

<div class="post-metadata">

**Author:** ![streamdps](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@streamdps](https://discuss.dev.twitch.com/u/streamdps)\
**Post date:** [December 18, 2023, 12:21pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/5 "2023-12-18T12:21:06Z")

</div>

I see now. Wow, thanks.

## Get Channel Followers

### Authorization

- Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:followers** scope.
- The ID in the broadcaster\_id query parameter must match the user ID in the access token or the user ID in the access token must be a moderator for the specified broadcaster.

---

<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:** [January 17, 2024, 12:21pm UTC](https://discuss.dev.twitch.com/t/empty-results-from-api-twitch-tv-helix-channels-followers/52666/6 "2024-01-17T12:21:24Z")

</div>

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