I have a playlist from youtube .
I was using this form :
http://gdata.youtube.com/feeds/api/playlists/PLqDQIb5EqNmJEzzDF3L3Sxize_ailX-Lp
but i know that Youtube migrated it API v2 into v3. How can i get the playlist ? I read documentation , but i didn't understand. Could someone to give a concretely example,please ?
you can user this API to get youtube PlayList. try this API :
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=50&q=SEARCH VIDEO NAME &type=playlist&key=YOUTUBE KEY &pageToken=%#
Related
We have a website which displays our YouTube video channels and favourite videos in our channel, etc. We were using Youtube Data API v2.0 to fetch data.
for example:
https://gdata.youtube.com/feeds/api/users/" + userid + "/playlists?v=2&alt=json-in-script&orderby=" + orderFeedsBy + "&callback=?
But now these links return "NetworkError: 410 Gone". We checked the new YouTube Javascript API, but we didn't understand how to migrate to the new API. Please help us to fix this.
This URL will return JSON with video ids for a playlist:
https://www.googleapis.com/youtube/v3/playlistItems?part=id&playlistId={PLAYLIST_ID}&key={YOUR_API_KEY}
You will need an API Key from console.developers.google.com and the playlist ID.
You can get a list of playlist IDs for a channel with a URL like this:
https://www.googleapis.com/youtube/v3/playlists?part=id&channelId={CHANNEL_ID}&key={YOUR_API_KEY}
Documentation at developers.google.com/youtube/v3/docs/
Youtube stopped support to V2, so to get data from V3 use the below URL
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId={PLAYLIST_ID}&key={KEY}
Im trying to retrieve the oldest video of a playlist using the youtube v3 API. Based on the fact that there's no YT-API-Param to sort the playlist result and the max-value of the max-results param is 50, i'm searching for other solutions.Since the YouTube Data API v3 results are paginated (https://developers.google.com/youtube/v3/docs/playlists/list), i'm looking for a way to a get a "lastPageToken" or some such. Any ideas? Many thanks!
How do we get the updated time of a video using the YouTube api v3 ?
Any help will be greatly appreciated
Hey Developer's I am working on an android app. I see this gdata.youtube kind of address in tutorials. I need to get one for my channel. Please how do i go about it.
Thanks.
The gdata links are from YouTube Data API v2.0 which is deprecated. You should look into Youtube Data API v3.0.
Here is how to get started: https://developers.google.com/youtube/v3/
If you just want to get information about your channel use this link:
https://content.googleapis.com/youtube/v3/channels?part=snippet&mine=true&key=YOURAPIKEY
Replace YOURAPIKEY with the public access API key from https://console.developers.google.com/project
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/
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}