Getting user's ID after authing

Hello, I have a question about your API. I auth users with via OAuth Authorization Code Flow (which works fine) but I don’t want to use ‘user_read’ scope to get all his details.
Is there any way to get just his user ID without the ‘user_read’ scope? (API V5)
Thanks

You can call the root endpoint https://api.twitch.tv/kraken/ with any or no scopes and get the token information back, including who it belongs to (ID and username).

1 Like

Well i dont know why, but i am getting
{“error”:“Bad Request”,“status”:400,“message”:null}

API and the site in general is currently having issues which might be the causing of that error. I would try again later.

Ok will try it later, thanks for the info :slight_smile:

@3ventic Thank you very much, it is working :slight_smile:

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