Configure Site for Youtube API V3 - Appsembler

Configure Site for Youtube API V3

Enable the Youtube API:

  1. On the left side menu of the Google Cloud console, click: APIs
  2. Find the link for YouTube Data API
  3. On the next screen, click on the blue “Enable API” button


Generate an API key:

  1. From the same left panel, click: APIs & Auth -> Credentials
  2. Click the blue “Create New Key” button
  3. From the popup, click the “Server Key” button
  4. Find the IP address of the server using this key and add it to the Text Field, then click the blue “Create” button
  5. Copy the value next to the “API Key” label

Putting the key on the server:

  1. Inside the file: /edx/app/edx_ansible/server-vars.yml
  2. add the line: EDXAPP_YOUTUBE_API_KEY: ‘key_you_just_generated’
  3. run: /edx/bin/update edx-platform appsembler/branch/name

If done correctly, Youtube videos will continue to play correctly using API V3. This is necessary for all sites running after 7/31/15


If you don’t make this change on a particular server, I think the video will still load and play, but there will be swirling icon in the middle of the video that doesn’t go away.