title: Google Youtube Analytics API: 403 forbidden error despite valid token
body: <p>So, I have a valid OAuth token for a channel. When the token expires, it is automatically refreshed. This token works for requests to <code>gdata.youtube.com</code>, but for some reason is denied to <code>www.googleapis.com/youtube/analytics/v1/reports</code>.</p>
  
  <p>The scope used to get the token is <code>https://gdata.youtube.com https://www.googleapis.com/auth/yt-analytics.readonly https://www.googleapis.com/auth/youtubepartner</code></p>
  
  <p>This works for other channels but not the one in particular.</p>
  
  <pre><code>GET www.googleapis.com/youtube/analytics/v1/reports
    PARAMS
      ?metrics=views
      &amp;ids=channel==...
      &amp;start-date=...
      &amp;end-date=...
    HEADER
      Authorization: Bearer ...
    RESPONSE
      {
        "error": {
          "errors": [
            {
              "domain": "global",
              "reason": "forbidden",
              "message": "Forbidden"
            }
          ],
          "code": 403,
          "message": "Forbidden"
        }
      }
  </code></pre>
  
  <p><strong>Edit</strong>: it should be noted that when you call <code>www.googleapis.com/youtube/analytics/v1/reports</code> with insufficient scope, you get this error:</p>
  
  <pre><code>{domain:global, reason:insufficientPermissions, message:Insufficient Permission}
  </code></pre>
  
  <p>This is a completely different error from the 403 forbidden one.</p>