Difference between revisions of "How to setup the YouTube API Key for video embedding"

From JReviews Documentation
Jump to: navigation, search
(Created page with "Starting with version 3, the YouTube Data API now requires the use of a key to request video information so this means that it's necessary to setup the API Key in the JReviews...")
 
Line 12: Line 12:
 
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=AIzaSyBo5K8oolb6LnpAUMAsoAKIpoXxGybaOi0
 
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=AIzaSyBo5K8oolb6LnpAUMAsoAKIpoXxGybaOi0
 
</source>
 
</source>
 +
 +
'''Watch the video tutorial'''
 +
 +
<youtube>Dz1qBa6AojU</youtube>
 +
 +
[http://www.youtube.com/watch?v=Dz1qBa6AojU&hd=1 Watch in HD on YouTube]
 +
  
 
[[Category:JReviews]]
 
[[Category:JReviews]]
 
[[Category:Settings]]
 
[[Category:Settings]]
 
[[Category:Media]]
 
[[Category:Media]]

Revision as of 13:42, 20 November 2015

Starting with version 3, the YouTube Data API now requires the use of a key to request video information so this means that it's necessary to setup the API Key in the JReviews Media Settings, Videos tab to make YouTube video embedding work. Here are the steps to make this work:

  • Go to https://console.developers.google.com and create a new project for your site. We are calling it MySite in our example.
  • Click Enable and manage APIs, then search for youtube and select the YouTube Data API v3
  • Click the Enable API' button at the top and wait for the API enabled notification to appear
  • Click the Credentials link in the left sidebar, then the blue Add credentials button and select the API Key option.
  • Select the Server key option because the API requests made by JReviews are from the server side only. Give your key a name, then click the Create button and copy the generated API Key to the JReviews Media Setting for the YouTube API Key

After generating your key give it a few minutes to make sure it becomes active. Then you can test if your key is working using the following URL. Just replace the example key with your own key.

https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=AIzaSyBo5K8oolb6LnpAUMAsoAKIpoXxGybaOi0

Watch the video tutorial

Watch in HD on YouTube