Get video feeds using Youtube API v3 -
we have website displays our youtube video channels , favourite videos in our channel, etc. using youtube data api v2.0 fetch data.
for example:
https://gdata.youtube.com/feeds/api/users/" + userid + "/playlists?v=2&alt=json-in-script&orderby=" + orderfeedsby + "&callback=?
but these links return "networkerror: 410 gone". checked new youtube javascript api, didn't understand how migrate new api. please fix this.
this url return json video ids playlist: https://www.googleapis.com/youtube/v3/playlistitems?part=id&playlistid={playlist_id}&key={your_api_key}
you need api key console.developers.google.com , playlist id.
you can list of playlist ids channel url this:
https://www.googleapis.com/youtube/v3/playlists?part=id&channelid={channel_id}&key={your_api_key}
documentation @ developers.google.com/youtube/v3/docs/
Comments
Post a Comment