"sub_plan" not in my json text

Hi Everyone,

I am doing some work on my bot and need the specific sub plans of subscribers to a channel.

I have set up everything according to the API, but when I look through my json text when getting the channel subscribers, there are no “sub_plan” fields. Is there something I am missing? Is there another way to the get the sub plans for each subscriber?

If someone could help me down the right direction, I would appreciate it!


Are you using the V5 of the api? (append &api_version=5 to your request)

Thanks for the reply.

I am doing a http request in Java and reading the text as a json object.

The url I call is https://api.twitch.tv/kraken/channels/<channel_name>/subscriptions?oauth_token=

As stated, I authorized this and this works. What would I need to do to add &api_version=5 to my request?


You can either add &api_version=5 to the end of the request URL, or add the header Accept: application/vnd.twitchtv.v5+json. Also, when using v5 you will need to use a channel ID rather than a channel name

Got it! Thank you both!

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