Google YouTube API Retrieving Video Feeds From YouTube Using Java

To retrieve list of video feeds from a user from Google, include the init() method from this post. Then use the method below to get the title of the video and the URL. This sample code retrieves the video feed list of the logged-in user. To retrieve the list of video feeds for other users, check the user guide.

To get an image of the video thumbnail like what you in the YouTube site, get the String after this URL, http://www.youtube.com/watch?v=GET_THIS_STRING

Then use that same string to get the thumbnail image of the video using this URL, http://i.ytimg.com/vi/GET_THIS_STRING/default.jpg

It is always default.jpg so just change where I placed GET_THIS_STRING. Easy as pie.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *