Thursday, May 17, 2012

YouTube API Integration in Android


Retrieving standard feeds from YouTube:
The YouTube Data API allows client applications to retrieve and update YouTube content in the form of Google Data API feeds. Your client application can use the YouTube Data API to fetch video feeds, comments, responses, and playlists, as well as query for videos that match particular criteria. You can also use the API to make authenticated requests to modify this information and to upload new video content to the site.
Description :
The YouTube Data API provides standard feeds selected based on a variety of criteria. Standard feeds are sitewide rather than user-specific. They contain lists of videos that either reflect YouTube user behavior, such as top-rated and most viewed video feeds, or were selected by YouTube staff, such as recently featured and mobile video feeds. Standard feeds are updated every few minutes.
The URLs for all standard feeds have the following format:
http://gdata.youtube.com/feeds/api/standardfeeds/FEED_IDENTIFIER
The following table lists the standard feeds available through the YouTube Data API.
Feed Identifier
  most_viewed
  top_rated
  recently_featured
  watch_on_mobile
  most_discussed
  top_favorites
  most_responded
  most_recent
You can also retrieve region-specific standard feeds and category-specific standard feeds by specifying either a regionID, a category name, or both in the feed URL. The URL for a region- and category-specific standard feed has the following format:
http://gdata.youtube.com/feeds/api/standardfeeds/localeID/feedID_CATEGORY_NAME
For example, the following example shows the feed URL for a list of the top-rated comedies in Japan:
http://gdata.youtube.com/feeds/api/standardfeeds/JP/top_rated_Comedy
for in India :
http://gdata.youtube.com/feeds/api/standardfeeds/IN/top_rated_Comedy
·      Reference Link :*
http://code.google.com/apis/youtube/2.0/developers_guide_java.html#Retrieving_Standard_Feeds

5 comments:

  1. nice explanation for beginners... can u provide sample application for this?

    ReplyDelete
    Replies
    1. Sorry dude but i have no any example but you can try from above links...

      Delete
  2. hi,
    its really great tutorial but as Anddevelop said if you provide some hands on examples.


    thanks
    renruhak.org

    ReplyDelete
  3. piece of trash with no examples

    ReplyDelete