So, I have a valid OAuth token for the channel. When the token expires, it is automatically updated. This token works for gdata.youtube.com requests, but for some reason it was denied at www.googleapis.com/youtube/analytics/v1/reports .
The area used to obtain the token is https://gdata.youtube.com https://www.googleapis.com/auth/yt-analytics.readonly https://www.googleapis.com/auth/youtubepartner
This works for other channels, but not in particular.
GET www.googleapis.com/youtube/analytics/v1/reports PARAMS ?metrics=views &ids=channel==... &start-date=... &end-date=... HEADER Authorization: Bearer ... RESPONSE { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }
Edit : It should be noted that when you call www.googleapis.com/youtube/analytics/v1/reports with insufficient scope, you will receive this error:
{domain:global, reason:insufficientPermissions, message:Insufficient Permission}
This is a completely different mistake from the forbidden 403.
source share