# Get Channel Followers usernames

**URL:** <https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800>\
**Category:** API\
**Created:** [October 29, 2023, 4:45pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800 "2023-10-29T16:45:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Versifiction](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/versifiction/32/17889_2.png) [@Versifiction](https://discuss.dev.twitch.com/u/Versifiction)\
**Post date:** [October 29, 2023, 4:45pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800/1 "2023-10-29T16:45:00Z")

</div>

Hello,

I have a website where I display the users who follows my Twitch channel,

It was working perfectly, but now I can’t get the users names anymore,

I used to do a request on `https://api.twitch.tv/helix/users/follows` with `to_id` parameter, but now I see on the [Get Channel Followers](https://dev.twitch.tv/docs/api/reference/#get-channel-followers) API reference page, the endpoint has changed so I changed my code but I can’t get usernames, only the total : `{"total":8,"data":[],"pagination":{}}`

Code :

`

```
url: "https://api.twitch.tv/helix/channels/followers",
method: "GET",
headers: {
  "Client-ID": process.env.TWITCH_CLIENT_ID,
  Authorization: "Bearer " + accessToken,
},
qs: {
  broadcaster_id: process.env.TWITCH_BROADCASTER_ID,
},

```

};

`

---

<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:** [October 29, 2023, 4:51pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800/2 "2023-10-29T16:51:22Z")

</div>

Get Channel Followers requires

- a user access token
- With the scope `moderator:read:followers`
- And the user access token belongs to a moderator or better for the channel specified in `broadcaster_id`

Your error suggests you use an app acess token or a user token without sufficent permissions

---

<div class="post-metadata">

**Author:** ![Versifiction](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/versifiction/32/17889_2.png) [@Versifiction](https://discuss.dev.twitch.com/u/Versifiction)\
**Post date:** [October 29, 2023, 4:52pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800/3 "2023-10-29T16:52:46Z")

</div>

I’m using this token to do the request, it used to work well… :

`

const oAuthClientCredentialsFlow = {  
url: “[https://id.twitch.tv/oauth2/token](https://id.twitch.tv/oauth2/token)”,  
json: true,  
body: {  
client\_id: process.env.TWITCH\_CLIENT\_ID,  
client\_secret: process.env.TWITCH\_CLIENT\_SECRET,  
grant\_type: “client\_credentials”,  
scope:  
“user:read:email moderation:read moderator:read:followers user:read:follows channel:read:stream\_key”,  
},  
};  
`

---

<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:** [October 29, 2023, 4:54pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800/4 "2023-10-29T16:54:44Z")

</div>

That is an app access token, which for Twitch adding scopes does nothing

App Access Token is also known as Client credentials, so you have the wrong token type

Normally you will need a `code` flow token - [Getting OAuth Access Tokens | Twitch Developers](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#authorization-code-grant-flow) which is valid for around four hours then you would use the refresh token to get a new token.

Additionally you might want to consider using EventSub then Twitch will call you with a new follower and just store that in your database and reference the database table instead.

> **[EventSub Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelfollow)**
>
> Subscription Types

---

<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:** [November 28, 2023, 4:55pm UTC](https://discuss.dev.twitch.com/t/get-channel-followers-usernames/49800/5 "2023-11-28T16:55:44Z")

</div>

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