# Twitch integration

**URL:** <https://discuss.dev.twitch.com/t/twitch-integration/38835>\
**Category:** API\
**Created:** [June 6, 2022, 9:46am UTC](https://discuss.dev.twitch.com/t/twitch-integration/38835 "2022-06-06T09:46:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shheezy](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Shheezy](https://discuss.dev.twitch.com/u/Shheezy)\
**Post date:** [June 6, 2022, 9:46am UTC](https://discuss.dev.twitch.com/t/twitch-integration/38835/1 "2022-06-06T09:46:56Z")

</div>

Hi everyone!

I would have a question about how I could resolve a user logging in to my website with Twitch, asking my app for permission to see which channels or in this case, see who is subscribed to my channel and how many months to subscribe ? Is this possible at all in any way?

Thank you in advance for your answers!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 6, 2022, 9:50am UTC](https://discuss.dev.twitch.com/t/twitch-integration/38835/2 "2022-06-06T09:50:41Z")

</div>

> [@Shheezy](#):
>
> I could resolve a user logging in to my website with Twitch

Authentication docs start here [Authentication | Twitch Developers](https://dev.twitch.tv/docs/authentication)  
Then use the oAuth token with Get Users [Reference | Twitch Developers](https://dev.twitch.tv/docs/api/reference#get-users) to get the user

> [@Shheezy](#):
>
> asking my app for permission to see which channels or in this case, see who is subscribed to my channel

Sounds like you want to get all channels a user is subscribed to. This is basically _not_ supported. There is [Reference | Twitch Developers](https://dev.twitch.tv/docs/api/reference#check-user-subscription) but you need a pair of ID’s you can’t get “every” a user is subbed to.

> [@Shheezy](#):
>
> see who is subscribed to my channel

Using an oAuth token the represents you (not a user) [Reference | Twitch Developers](https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions)

> [@Shheezy](#):
>
> how many months to subscribe ?

This information is not in the API

> **[Subs Tenure in Helix](https://twitch.uservoice.com/forums/310213-developers/suggestions/37659133-subs-tenure-in-helix)**
>
> We would like subs tenure in Helix in order to use this for merch extensions providing tenure-based merch options.

You can get it if/when a user shares their resub via [EventSub](https://dev.twitch.tv/docs/eventsub) or [PubSub](https://dev.twitch.tv/docs/pubsub) or [Chat](https://dev.twitch.tv/docs/irc). So refer to those docs for the relevant events/data

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [July 6, 2022, 9:51am UTC](https://discuss.dev.twitch.com/t/twitch-integration/38835/3 "2022-07-06T09:51:12Z")

</div>

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