Missing analytics:read:games scope for Get Game Analytics interface

1.I get accessToken from
https://id.twitch.tv/oauth2/token

Post https://id.twitch.tv/oauth2/token?client_id=Client_id&client_secret=Client_secret&grant_type=client_credentials&scope=analytics%3Aread%3Agames
Response:
{
“access_token”: “[REDACTED]”,
“expires_in”: 4808526,
“scope”: [
“analytics:read:games”
],
“token_type”: “bearer”
}
Response is right.

2.I get Game Analytics interface

https://api.twitch.tv/helix/analytics/games?first=5
Header Authorization: Bearer [REDACTED]

Response:

{
“error”: “Unauthorized”,
“status”: 401,
“message”: “Missing analytics:read:games scope”
}

Please help me ,tks!

You requested an App Access Token, those can’t have scopes because they’re not for accessing resources that require user authentication.

You need a Client Access Token, and it also needs to be the developer of the game you want analytics for going through your auth process.

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