Youtube api v3 Get list of user’s videos

The channels#list method will return a JSON with some information about the channel, including the playlist ID for the “uploads” playlist: https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=OneDirectionVEVO&key={YOUR_API_KEY} With the playlist ID you can get the videos with the playlistItems#list method: https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=UUbW18JZRgko_mOGm5er8Yzg&key={YOUR_API_KEY} You can test those at the end of the documentation pages.

How do I get video durations with YouTube API version 3?

You will have to make a call to the YouTube data API’s video resource after you make the search call. You can put up to 50 video IDs in a search, so you won’t have to call it for each element. https://developers.google.com/youtube/v3/docs/videos/list You’ll want to set part=contentDetails, because the duration is there. For example, the … Read more

How do I get a YouTube video thumbnail from the YouTube API?

Each YouTube video has four generated images. They are predictably formatted as follows: https://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg https://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg https://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg https://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (i.e., one of 1.jpg, 2.jpg, 3.jpg) is: https://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg For the high quality version of the thumbnail use a … Read more