# How to check if viewer follows the broadcaster from extension

**URL:** <https://staging-discuss.dev.twitch.com/t/how-to-check-if-viewer-follows-the-broadcaster-from-extension/45996>\
**Category:** Extensions\
**Created:** [June 7, 2023, 12:38pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-viewer-follows-the-broadcaster-from-extension/45996 "2023-06-07T12:38:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vilko\_z](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/vilko_z/32/25051_2.png) [@Vilko\_z](https://staging-discuss.dev.twitch.com/u/Vilko_z)\
**Post date:** [June 7, 2023, 12:38pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-viewer-follows-the-broadcaster-from-extension/45996/1 "2023-06-07T12:38:17Z")

</div>

For my extension I need to check if viewer follows the channel to show him content only for followers.

There is a deprecated method which works with helix token (for now) `/helix/users/follows?to_id=`, but if will be disabled in August.

There are also the following method (but they require token scopes):  
`/helix/channels/followed?user_id=123456` requires **user:read:follows**  
`/helix/channels/followers?broadcaster_id=123456` requires **moderator:read:followers**  
`/helix/streams/followed?user_id=141981764` requires **user:read:follows**  
Maybe there is a way to obtain one of these scopes with extension helper library? (like `window.Twitch.ext.actions.requestIdShare`)

Also for subscribers we can enable (in twitch developer console) flag “Subscription Support” and use `window.Twitch.ext.features.isSubscriptionStatusAvailable` with `window.Twitch.ext.viewer.subscriptionStatus` to check if viewer is subscribed, is there a similar way to check if viewer follows the broadcaster?

---

<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 7, 2023, 12:43pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-viewer-follows-the-broadcaster-from-extension/45996/2 "2023-06-07T12:43:55Z")

</div>

> [@Vilko\_z](#):
>
> to check if viewer is subscribed, is there a similar way to check if viewer follows the broadcaster?

There is not. A uservoice would be required for this functionality.  
And I doubt that would get worked on any time soon.  
I had a similar one in for the ban related scopes that is languishing

> [@Vilko\_z](#):
>
> Maybe there is a way to obtain one of these scopes with extension helper library?

The optimal approach would be, on the config page as part of setup you would ask the broadcaster to oAuth and grant the permission.

Example:

 ![image](https://d2spem0quai2ol.cloudfront.net/original/3X/2/3/2303a2cdde48a9a4720a8d8a331dba1d3f46aa23.png)

Then your EBS would retain the token broadcasters token and refresh it as needed

So then your frontend would call the backend and the backend can do the follow check and return that to the front end.

Then you don’t have the viewer double auth. And it’s not _nice_ to be asking the user to leave the page to authenticate externally perodicially to get a token _just_ to check if a user follows the channel. So it’s more optimal to get the broadcasters auth instead
