# How do I get a channel ID?

**URL:** <https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823>\
**Category:** API\
**Created:** [June 29, 2020, 7:54pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823 "2020-06-29T19:54:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mystik](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/mystik/32/10504_2.png) [@Mystik](https://staging-discuss.dev.twitch.com/u/Mystik)\
**Post date:** [June 29, 2020, 7:54pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/1 "2020-06-29T19:54:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 29, 2020, 8:00pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/2 "2020-06-29T20:00:29Z")

</div>

> **[Reference](https://dev.twitch.tv/docs/api/reference/)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

Lets you get a user ID from a username

Or lets you get a userID from a bearer token

---

<div class="post-metadata">

**Author:** ![acomito](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@acomito](https://staging-discuss.dev.twitch.com/u/acomito)\
**Post date:** [July 5, 2020, 1:27pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/3 "2020-07-05T13:27:13Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 5, 2020, 1:29pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/4 "2020-07-05T13:29:03Z")

</div>

user asked for the ID of the channel

> [@Mystik](#):
>
> I know I need the channel ID but I dont know how to get that.

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

> **[Reference](https://dev.twitch.tv/docs/api/reference/)**
>
> Twitch Developer tools and services to integrate Twitch into your development or create interactive experience on twitch.tv.

> [@acomito](#):
>
> But I can’t seem to find where I can get a follower count for a user/channel.

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](https://d2spem0quai2ol.cloudfront.net/original/2X/d/d58a24963b6fc55eeb5bd67c23e49fd7a323452b.png)

---

<div class="post-metadata">

**Author:** ![acomito](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@acomito](https://staging-discuss.dev.twitch.com/u/acomito)\
**Post date:** [July 5, 2020, 2:56pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/5 "2020-07-05T14:56:16Z")

</div>

Ah okay

missed the from\_id vs to\_id detail.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [August 4, 2020, 2:56pm UTC](https://staging-discuss.dev.twitch.com/t/how-do-i-get-a-channel-id/26823/6 "2020-08-04T14:56:20Z")

</div>

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