Get number of subs a Twitch streamer has

Hello,

I’m trying to get the number of subs a Twitch streamer has.

I already read the documentation but I’m getting an error.

I am making a get request to this endpoint:

https://api.twitch.tv/helix/subscriptions?broadcaster_id=459331509

But I’m getting the following error:

{
“error”: “Unauthorized”,
“status”: 401,
“message”: “Missing scope: channel:read:subscriptions or channel_subscriptions”
}

I already tried to add the scope param with the value channel:read:subscriptions but it doesnt work.

I already have the access token.

Can anyone help me?

Your token is of type User and for 459331509?

IE you declared response_type code

And had auronplay authorise access?

My token is type “Bearer”, which I get by making a post request to https://id.twitch.tv/oauth2/token.

This is the result I get from the post request

{
“access_token”: “****************************”,
“expires_in”: 5284987,
“token_type”: “bearer”
}

I haven’t declared a response type.

Does the streamer/broadcaster has to authorise the access??

Aren’t we able to search freely for the subs count of any streamer? Why is that?

Thanks!

Sounds like you have the wrong token type then.

Sounds like you generated a client credentials token and thus you do not have permission from auronplay to see/read their subscriber data.

Yes

The subcount of a streamer is data that is personal information.
As such you need permission from the streamer to read it.

Thanks for your reply!

I was researching this website https://twitchtracker.com/

This website is using the Twitch helix API, and you can see a lot of info including sub count of almost all the streamers in Twitch.

I doubt the owner of the website requested permission to ALL streamers to get this data.

However can you explain why is this website able to get that info, because based on your statement
"The subcount of a streamer is data that is personal information.
As such you need permission from the streamer to read it."

And on this website you can basically see sub count of any streamer?

Thanks

it uses data from chat to guesstimate

And it has been proven wrong by a number of streamers.

It’s numbers are based on people sharing their subscription in chat.
And not all people share their resub

For example, https://twitchtracker.com/cohhcarnage says cohh has 11k subscribers. This is not correct.

I know this becuase I have access to read cohh’s subscribers, as I run all his tech.

It’s not even close…

Thanks a lot and thanks for sharing your knowledge.

I have no more questions.

I appreciate your help!

Regards

1 Like