Where do I find the Authorization: Bearer token

I’m trying to run the following code and I have my Client-Id but I have no idea what they are looking for with the Authorization: Bearer portion

‘’’
curl -X GET “https://api.twitch.tv/helix/channels?broadcaster_name=tanktanks
-H “Authorization: Bearer REMOVED”
-H “Client-Id: REMOVED”
‘’’

Please assist.

I keep getting {“error”:“Unauthorized”,“status”:401,“message”:“Invalid OAuth token”}
so I guess its not the clientSecret they want for the Authorization.

You need to generate one yourself

Authentication is covered here

I have removed the posted ClientID/Token in case they are real

They were not but thanks anyway.

Can you tell me what scope I need for get channel information?

If you refer to the documentation for that endpoint

You will find that no scopes are required.

Can you explain where I am to find the scopes on that page. I was already looking at that page and I know I need the Get Channel Information but I don’t see any scope listed in the example or on the page in that section.

Get Channel Information needs no scopes.

If it public information.

So any kind of token works
And no scopes are required.

Hence you can’t find any scopes for that endpoint since none are needed.

I just figured that out. thanks for all the hand holding.

I don’t know if you have any control over this but it would be helpful to list required scopes as none in that section. its already confusing learning this stuff. let alone trying to find something that isn’t there.

It shows the scope you need if one is needed in the Authentication part.
See https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard as an example.

Yes I understand that now but it would be helpful for new people to understand you don’t need scope on some. You can see how it was miss leading for me in this example.

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