# How to check if a user that i have the bearer is subscribed to a channel in helix?

**URL:** <https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580>\
**Category:** API\
**Created:** [October 12, 2020, 5:53am UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580 "2020-10-12T05:53:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zLupa](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/zlupa/32/10443_2.png) [@zLupa](https://staging-discuss.dev.twitch.com/u/zLupa)\
**Post date:** [October 12, 2020, 5:53am UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580/1 "2020-10-12T05:53:49Z")

</div>

I need to check if a user that used the oauth if he are subscribed.  
Like that option in the legacy api [https://dev.twitch.tv/docs/v5/reference/users#check-user-subscription-by-channel](https://dev.twitch.tv/docs/v5/reference/users#check-user-subscription-by-channel) is there anything like that without refreshing the token of the broadcast?

---

<div class="post-metadata">

**Author:** ![Dist](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://staging-discuss.dev.twitch.com/u/Dist)\
**Post date:** [October 12, 2020, 9:21am UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580/2 "2020-10-12T09:21:36Z")

</div>

To check if a user is subscribed to a channel, you can use the Get Broadcaster Subscriptions endpoint [https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions](https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions)

You will need a valid token from the broadcaster for that as it’s private information, and if you need to check users subscription status frequently then rather than individually checking it may be worthwhile to create a cache of subscribers, and the use [Webhooks](https://dev.twitch.tv/docs/api/webhooks-guide) to update the cache to changes (you’d still need a broadcasters OAuth token with appropriate scopes, and it needs to be valid when creating/renewing the Webhook subscription).

---

<div class="post-metadata">

**Author:** ![zLupa](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/zlupa/32/10443_2.png) [@zLupa](https://staging-discuss.dev.twitch.com/u/zLupa)\
**Post date:** [October 12, 2020, 7:13pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580/3 "2020-10-12T19:13:05Z")

</div>

Is there anything to use the token broadcaster without renewing it all the time like a authorization or something?

---

<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:** [October 12, 2020, 7:16pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580/4 "2020-10-12T19:16:08Z")

</div>

use the refresh token to get a new access token.

Refresh tokens do not have an expiry

---

<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:** [November 11, 2020, 7:16pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-check-if-a-user-that-i-have-the-bearer-is-subscribed-to-a-channel-in-helix/28580/5 "2020-11-11T19:16:09Z")

</div>

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