Question

I'm trying to feed videos from a YouTube channel to a website. I've been able to add the videos one by one but I would like to add the whole YouTube channel very interactively on the website. Any idea?

Was it helpful?

Solution

Using Data API v3, you can get a list of all playlists associated with your channel. 'https://developers.google.com/youtube/v3/docs/channels#properties' -> 'contentDetails.relatedPlaylists'

Iterating through these playlists, you can get video ids and feed them. 'https://developers.google.com/youtube/v3/docs/playlistItems#resource' -> 'contentDetails.videoId'


Or you can put the whole playlist as a player by,

going to playlists -> 'player.embedHtml'

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top