How do I get a channel ID?

Hi,

I’m trying to make a GET request for the amount of followers a specfic user has.
So I can add a counter in my discord server, how do I GET a url request for follower count, I know I need the channel ID but I dont know how to get that.

1 Like

Lets you get a user ID from a username

Or lets you get a userID from a bearer token

1 Like

@BarryCarlyon I didn’t see where you can get the follower count in there.

I’ve used https://api.twitch.tv/helix/users?login=$ to get the userId from a username.

Then i can use https://api.twitch.tv/helix/users/follows?from_id= to get who they’re following. But I can’t seem to find where I can get a follower count for a user/channel.

user asked for the ID of the channel

Once you have the userID then you can get the follow count from the appropriate API which is also on the same page that I linked to.

And directly beneath the Get Users docs

You want to_id for people following a channel

https://api.twitch.tv/helix/users/follows?to_id=26610234

For example, then read the total from the response

image

Ah okay

missed the from_id vs to_id detail.

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