Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube Related Videos using Youtube V3 API

Tags:

youtube-api

I need the API URL for Youtube Related Videos using the Youtube V3 API. But I couldn't find the direct API call, like it is in Version 2. Did I miss something?

https://developers.google.com/youtube/v3/docs/

like image 995
user1686758 Avatar asked Nov 01 '13 11:11

user1686758


People also ask

Can you play videos with YouTube API?

The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript. Using the API's JavaScript functions, you can queue videos for playback; play, pause, or stop those videos; adjust the player volume; or retrieve information about the video being played.

Is YouTube data API v3 free?

Yes, using the YouTube API does not incur any monetary cost for the entity calling the API. If you go over your quota an 403 Error will be returned by the API.

What data can I get from YouTube API?

The API provides the ability to retrieve feeds related to videos, users, and playlists. It also provides the ability to manipulate these feeds, such as creating new playlists, adding videos as favorites, and sending messsages.


1 Answers

Are you trying to find videos related to a video?

You can use search->list call for this with specifying the "relatedToVideoId"

And for anyone looking for a coded example:

GET https://www.googleapis.com/youtube/v3/search?part=snippet&relatedToVideoId=5rOiW_xY-kc&type=video&key={YOUR_API_KEY} 
like image 107
Ibrahim Ulukaya Avatar answered Sep 21 '22 04:09

Ibrahim Ulukaya