Youtube API

Business > IT development > Frameworks
2012-06-25 11:13:05
Youtube VS Vimeo API
Youtube API
Last update2012-06-25 11:13:05
Websitehttps://developers.google.com/youtube/2.0/developers_guide_protocol_audience#Supported_Feeds
Authentication
OAuth 1.0No Deprecated, https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth
OAuth 2.0Yes
Video feeds
Example of a video feedhttps://developers.google.com/youtube/2.0/developers_guide_protocol_understanding_video_feeds#Understanding_Video_Entries
Video search feedsYes https://gdata.youtube.com/feeds/api/videos + ?queryParameters
Standard Google Data API parametershttps://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters#Standard_parameters
Custom parametershttps://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters#Custom_parameters
Standard video feedsYes https://gdata.youtube.com/feeds/api/standardfeeds/parameter
parametermost_discussed: https://gdata.youtube.com/feeds/api/standardfeeds/most_discussed top_rated: https://gdata.youtube.com/feeds/api/standardfeeds/top_rated top_favorites: https://gdata.youtube.com/feeds/api/standardfeeds/top_favorites most_viewed: https://gdata.youtube.com/feeds/api/standardfeeds/most_viewed most_shared: https://gdata.youtube.com/feeds/api/standardfeeds/most_shared most_popular: https://gdata.youtube.com/feeds/api/standardfeeds/most_popular most_recent: https://gdata.youtube.com/feeds/api/standardfeeds/most_recent most_responded: https://gdata.youtube.com/feeds/api/standardfeeds/most_responded recently_featured: https://gdata.youtube.com/feeds/api/standardfeeds/recently_featured on_the_web: https://gdata.youtube.com/feeds/api/standardfeeds/on_the_web
timeThis parameter is supported for the following feeds and charts: Standard video feeds (top_rated, top_favorites, most_viewed, most_popular, most_discussed, most_responded) Standard channel feeds (most_subscribed – This feed only supports the parameter values this_week, this_month, and all_time; most_viewed) Live event charts ( experimental feature) (upcoming – This feed only supports the parameter values today and this_week) Ex: https://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today
regionIDEx Spain ES: http://gdata.youtube.com/feeds/api/standardfeeds/ES/top_rated?v=2 regionID:https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#Region_specific_feeds
feedID_category_nameURL for feed of top-rated entertainment videos in France: https://gdata.youtube.com/feeds/api/standardfeeds/FR/top_rated_Entertainment
Favorite videosYes https://gdata.youtube.com/feeds/api/users/default/favorites + authentication token or https://gdata.youtube.com/feeds/api/users/username/favorites
getLikersNo You can get the numLikes. <yt:rating numDislikes='28' numLikes='141'/>
User uploadsYes https://gdata.youtube.com/feeds/api/users/default/uploads + authentication token or https://gdata.youtube.com/feeds/api/users/username/uploads
Playlist feedYes Ex: https://gdata.youtube.com/feeds/api/playlists/8BCDD04DE8F771B2?v=2
Watch later feedYes https://gdata.youtube.com/feeds/api/users/username/watch_later?v=2 if in https://gdata.youtube.com/feeds/api/users/username, gd:feedLink rel='http://gdata.youtube.com/schemas/2007#user.watchlater'
Watch historyYes https://gdata.youtube.com/feeds/api/users/default/watch_history?v=2 + authentication token OR https://gdata.youtube.com/feeds/api/users/username/watch_history?v=2
Video recommendationsYes https://gdata.youtube.com/feeds/api/users/default/recommendations or https://gdata.youtube.com/feeds/api/users/username/recommendations
Related videosYes <link rel="http://gdata.youtube.com/schemas/2007#video.related" type="application/atom+xml" href="https://gdata.youtube.com/feeds/api/videos/ZTUVgYoeN_b/related?v=2"/>
Video responsesYes <link rel='http://gdata.youtube.com/schemas/2007#video.in-response-to' type='application/atom+xml' href='https://gdata.youtube.com/feeds/api/videos/HsQIoPyfQzM?v=2'/>
New subscription videosYes https://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos + authentication token OR https://gdata.youtube.com/feeds/api/users/username/newsubscriptionvideos
Channel feeds
Channel search feedsYes https://gdata.youtube.com/feeds/api/channels
API query parameters for channel searchalt, q, max-results, start-index, strict, v Ex: https://gdata.youtube.com/feeds/api/channels?q=soccer&start-index=11&max-results=10&v=2
Standard channel feedsYes URL: https://gdata.youtube.com/feeds/api/channelstandardfeeds/parameters
parametermost_viewed: https://gdata.youtube.com/feeds/api/channelstandardfeeds/most_viewed most_subscribed: https://gdata.youtube.com/feeds/api/channelstandardfeeds/most_subscribed
timeSupported values of the time parameter for the most_subscribed feed are: this_week, this_month, and all_time. Ex: https://gdata.youtube.com/feeds/api/channelstandardfeeds/most_viewed?time=today&v=2
regionIDEx Spain ES: https://gdata.youtube.com/feeds/api/channelstandardfeeds/SE/most_viewed?v=2 regionID:https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#Region_specific_feeds
User typesValid user types that can be appended to the feed URL are Comedians, Directors, Gurus, Musicians, Non-profit, Partners, Politicians, Reporters, and Sponsors. Ex:https://gdata.youtube.com/feeds/api/channelstandardfeeds/US/most_viewed_Musicians?v=2
Playlists feeds
Playlist search feedsYes https://gdata.youtube.com/feeds/api/playlists/snippets
API query parameters for playlist searchalt, q, max-results, start-index, strict, v Ex: https://gdata.youtube.com/feeds/api/playlists/snippets?q=soccer&start-index=11&max-results=10&v=2
User playlists feedYes https://gdata.youtube.com/feeds/api/users/default/playlists?v=2 + authentication token OR https://gdata.youtube.com/feeds/api/users/username/playlists?v=2
Event feeds
Live event chartsYes https://gdata.youtube.com/feeds/api/charts/live/events/parameters
featuredhttps://gdata.youtube.com/feeds/api/charts/live/events/featured This feed lists promoted live events that are currently happening or will soon take place.
live_nowhttps://gdata.youtube.com/feeds/api/charts/live/events/live_now This feed lists live events that are currently active.
upcominghttps://gdata.youtube.com/feeds/api/charts/live/events/upcoming This feed lists events that will take place within the time frame specified for the time parameter. Valid parameter values are today (one day), this_week (seven days), this_month (one month), and all_time, and all_time is the default value.
recently_broadcastedhttps://gdata.youtube.com/feeds/api/charts/live/events/recently_broadcasted This feed lists events that recently ended.
User events feedYes https://gdata.youtube.com/feeds/api/users/default/live/events?v=2 + Authentication token OR https://gdata.youtube.com/feeds/api/users/username/live/events?v=2
Comment feeds
Comment feedsYes https://gdata.youtube.com/feeds/api/videos/VIDEO_ID/comments
Subscription and activity feeds
User subscription feedYes https://gdata.youtube.com/feeds/api/users/default/subscriptions?v=2 + Authentication token OR https://gdata.youtube.com/feeds/api/users/username/subscriptions?v=2
User activity feedsYes https://gdata.youtube.com/feeds/api/users/default/events?v=2 + Authenticated token OR https://gdata.youtube.com/feeds/api/users/username/events?v=2
Inbox and contact feeds
User inbox feedYes https://gdata.youtube.com/feeds/api/users/default/inbox + Authentication token
User contacts feedYes https://gdata.youtube.com/feeds/api/users/default/contacts?v=2 + Authentication token
User profile entry
User profile entryYes https://gdata.youtube.com/feeds/api/users/default + Authentication token OR https://gdata.youtube.com/feeds/api/users/username
Rate limiting
URLhttps://developers.google.com/youtube/2.0/developers_guide_protocol_batch_processing
Rate limitingThe YouTube Data API supports batch processing, enabling you to execute up to 50 operations with a single API request rather than submit a separate request for each individual operation.
Key
keyDeveloper key: https://developers.google.com/youtube/2.0/developers_guide_protocol_authentication#Developer_Key https://code.google.com/apis/youtube/dashboard
Best practices
URLhttps://developers.google.com/youtube/2.0/developers_guide_protocol_batch_processing
  • 2012-06-14 13:33:41
    2012-06-25 11:13:05
  • Frameworks
    English
  • Unlisted
    Public
  • Creative Commons License CC-BY-SA 3.0 / GNU FDL