title: YouTube embed API: The caller does not have permission
body: <p>I'm embedding some YouTube videos on my website. I've been getting a few complaints that they don't load up. I investigated and noticed that when attempting to play them, I get a few 403 Forbidden errors:</p>
  <p><a href="https://i.stack.imgur.com/0s7kv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0s7kv.png" alt="403" /></a></p>
  <p>Taking a look at the JSON response I get a few messages that generally say &quot;The caller does not have permission&quot;. Here is the full JSON data:</p>
  <pre><code>{
      &quot;error&quot;: {
          &quot;code&quot;: 403,
          &quot;message&quot;: &quot;The caller does not have permission&quot;,
          &quot;errors&quot;: [
              {
                  &quot;message&quot;: &quot;The caller does not have permission&quot;,
                  &quot;domain&quot;: &quot;global&quot;,
                  &quot;reason&quot;: &quot;forbidden&quot;
              }
          ],
          &quot;status&quot;: &quot;PERMISSION_DENIED&quot;
      }
  }
  </code></pre>
  <p>Why is this happening? I didn't think I needed a key or token to embed YouTube videos. What is the cause of this? Has my IP addresses been banned from a Google API?</p>
  <p>For reference, the ID of the video I tried to load was <code>Sq9kl3ybqY0</code>.</p>