Youtube - how to get a list of videos on a YouTube channel and display them as a list?

I am viewing the YouTube API here: https://developers.google.com/youtube/v3/guides/working_with_channel_ids

And I don’t quite understand how to get all the channel videos. Isn't that a common thing? And you need a channel id, which I'm not sure how to do this. This is not my channel.

Can someone please point me in the right direction here. It seems that if I can embed the video in a website, I can get a complete list of channels. Or am I missing something?

+4
source share
2 answers

You can do this to get the channel id:

Extract Youtube Channel Information for the "Vanity" Channel

And later, with the channel ID, you can get the channel’s playlists:

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

And then you can use each playlist identifier to retrieve PlayListItems and thus get all the video games in the channel:

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

+3
source

Refer to this page from Google to see an example of how to download the downloaded video of a specific channel:

  • It retrieves the playlist identifier for uploaded videos to the user channel using the API channels.list method.
  • It passes this identifier to the playlistItems.list method to retrieve the videos in this list.
0
source

Source: https://habr.com/ru/post/1489072/


All Articles