title: Use the YouTube API to check if a video is embeddable
body: <p>I'm trying to figure out if a YouTube video is embeddable using the YouTube Data API v3, from answers to similar questions I noticed the status.embeddable property of videos, for a request like this:</p>
  
  <pre><code>https://www.googleapis.com/youtube/v3/videos?id=63flkf3S1bE&amp;part=contentDetails,status&amp;key={MY_API_KEY}
  </code></pre>
  
  <p>The response is the following</p>
  
  <pre><code>{
      "kind": "youtube#videoListResponse",
      "etag": "\"ksCrgYQhtFrXgbHAhi9Fo5t0C2I/ctZQYtBcOuMdnQXh8-Fv1EbS_VA\"",
      "pageInfo": {
          "totalResults": 1,
          "resultsPerPage": 1
      },
      "items": [
          {
              "kind": "youtube#video",
              "etag": "\"ksCrgYQhtFrXgbHAhi9Fo5t0C2I/Cd8aGZD09NPuGYNumIEozZs2S90\"",
              "id": "63flkf3S1bE",
              "contentDetails": {
                  "duration": "PT8M23S",
                  "dimension": "2d",
                  "definition": "hd",
                  "caption": "false",
                  "licensedContent": false,
                  "projection": "rectangular"
              },
              "status": {
                  "uploadStatus": "processed",
                  "privacyStatus": "public",
                  "license": "youtube",
                  "embeddable": true,
                  "publicStatsViewable": true,
                  "madeForKids": false
              }
          }
      ]
  }
  </code></pre>
  
  <p>The <code>embeddable</code> parameter under <code>status</code> is returned as true, HOWEVER this video is not actually embeddable, as can be seen <a href="https://www.youtube.com/embed/63flkf3S1bE" rel="noreferrer">here</a>.</p>
  
  <p>When actually embedding the video using the iframe API, there is a more detailed error message as well:</p>
  
  <blockquote>
    <p>Video unavailable
    This video contains content from International Olympic Committee, who has blocked it from display on this website or application.
    Watch on YouTube</p>
  </blockquote>
  
  <p>I don't see how it is possible to detect this case from the YouTube Data API - can anyone help out?</p>