YOUTUBE_API_KEY in Open edX

‘YOUTUBE_API_KEY’ in /edx/etc/lms.yml .

  1. I would like to know which function would need the key ? What the YOUTUBE_API_KEY work for?
  2. If I didn’t put the correct YOUTUBE_API_KEY into lms.yml , what will be the impact?

According to the documentation

If you intend for courses on your Open edX instance to include videos that are hosted on YouTube, you must get a YouTube API key and set the key in the Open edX Platform.

The youtube API key is required by the Video XBlock to work at its full potential.
You’ll still be able to imbed videos without any issues. But some metadata won’t be able to load in both LMS and studio.

Youtube Data API is used by the video block to retrieve:

  • video metadata: not sure what is used by the block (maybe descriptions, language, available quality, etc).
  • video subtitles (timed text) : I found this as an example of subtitles in common.py files. but I am not sure if the video block is actually using youtube’s subtitles.
    http://video.google.com/timedtext?lang=en&v=j_jEn79vS3g

Any further contribution to my answer is more than welcome.
Let us learn more, Open edX and edX folks !! :grinning_face_with_smiling_eyes:

1 Like