SocialCompare
Enlace
Youtube APIVimeo API
Actualizado2012-06-25 11:13:052012-06-25 11:07:00
Sitio webgoogle.com/...vimeo.com/...
Authentication
OAuth 1.0No Deprecated, https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth https://developer.vimeo.com/apis/advanced#oauth
OAuth 2.0-
Video feeds
Example of a video feedgoogle.com/...
Video search feeds https://gdata.youtube.com/feeds/api/videos + ?queryParameters vimeo.videos.search, https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.search
Standard Google Data API parametersgoogle.com/...
Custom parametersgoogle.com/...
Standard video feeds https://gdata.youtube.com/feeds/api/standardfeeds/parameter vimeo.videos.search, https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.search
parametermost_discussed: youtube.com/... top_rated: youtube.com/... top_favorites: youtube.com/... most_viewed: youtube.com/... most_shared: youtube.com/... most_popular: youtube.com/... most_recent: youtube.com/... most_responded: youtube.com/... recently_featured: youtube.com/... on_the_web: youtube.com/...user_id, page, per_page, summary_response, full_response, query, sort. Method to sort by: relevant, newest, oldest, most_played, most_commented, or most_liked.
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: youtube.com/...
regionIDEx Spain ES: youtube.com/... regionID:google.com/...
feedID_category_nameURL for feed of top-rated entertainment videos in France: youtube.com/...
Favorite videos https://gdata.youtube.com/feeds/api/users/default/favorites + authentication token or https://gdata.youtube.com/feeds/api/users/username/favorites vimeo.videos.getLikes: Get a list of videos that the user likes. https://developer.vimeo.com/apis/advanced/methods/vimeo.videos.getLikes
getLikersNo You can get the numLikes. <yt:rating numDislikes='28' numLikes='141'/> vimeo.videos.getLikers, Get a list of the users that have liked a video.
User uploads https://gdata.youtube.com/feeds/api/users/default/uploads + authentication token or https://gdata.youtube.com/feeds/api/users/username/uploads vimeo.videos.getUploaded, Get a list of videos uploaded by a user.
Playlist feed Ex: https://gdata.youtube.com/feeds/api/playlists/8BCDD04DE8F771B2?v=2 vimeo.albums.getVideos, Get a list of the videos in an album.
Watch later feed 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' vimeo.albums.getWatchLater, Get the list of videos in a user's Watch Later album.
Watch history 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- ? vimeo.activity.userDid, Get a list of things that a user did.
Video recommendations https://gdata.youtube.com/feeds/api/users/default/recommendations or https://gdata.youtube.com/feeds/api/users/username/recommendationsNo
Related videos <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"/>- vimeo.videos.getByTag, Get a list of videos that have the specified tag.
Video responses <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'/>No
New subscription videos https://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos + authentication token OR https://gdata.youtube.com/feeds/api/users/username/newsubscriptionvideos- vimeo.videos.getSubscriptions Get a list of the subscribed videos for a user.
Channel feeds
Channel search feeds https://gdata.youtube.com/feeds/api/channels vimeo.channels.getAll, Get a list of all public channels.
API query parameters for channel searchalt, q, max-results, start-index, strict, v Ex: youtube.com/...per_page, page, sort
Standard channel feeds URL: https://gdata.youtube.com/feeds/api/channelstandardfeeds/parameters vimeo.channels.getAll, Get a list of all public channels.
parametermost_viewed: youtube.com/... most_subscribed: youtube.com/...sort = newest, oldest, alphabetical, most_videos, most_subscribed, or most_recently_updated.
timeSupported values of the time parameter for the most_subscribed feed are: this_week, this_month, and all_time. Ex: youtube.com/...
regionIDEx Spain ES: youtube.com/... regionID:google.com/...
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:youtube.com/...
Playlists feeds
Playlist search feeds https://gdata.youtube.com/feeds/api/playlists/snippets
API query parameters for playlist searchalt, q, max-results, start-index, strict, v Ex: youtube.com/...
User playlists feed 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 vimeo.albums.getAll, Get a list of a user's albums.
Event feeds
Live event charts https://gdata.youtube.com/feeds/api/charts/live/events/parametersNo
featuredyoutube.com/... This feed lists promoted live events that are currently happening or will soon take place.
live_nowyoutube.com/... This feed lists live events that are currently active.
upcomingyoutube.com/... 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_broadcastedyoutube.com/... This feed lists events that recently ended.
User events feed 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=2No
Comment feeds
Comment feeds https://gdata.youtube.com/feeds/api/videos/VIDEO_ID/comments vimeo.videos.comments.getList, Get a list of the comments on a video.
Subscription and activity feeds
User subscription feed 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 vimeo.people.getSubscriptions, Get a list of the things a user is subscribed to.
User activity feeds 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 vimeo.activity.happenedToUser:Get a list of activity on a user. vimeo.activity.userDid :Get a list of things that a user did.
Inbox and contact feeds
User inbox feed https://gdata.youtube.com/feeds/api/users/default/inbox + Authentication tokenNo
User contacts feed https://gdata.youtube.com/feeds/api/users/default/contacts?v=2 + Authentication token vimeo.contacts.getAll, Get a list of all contacts.
User profile entry
User profile entry https://gdata.youtube.com/feeds/api/users/default + Authentication token OR https://gdata.youtube.com/feeds/api/users/username vimeo.people.getInfo, Get information about a user.
Rate limiting
URLgoogle.com/...vimeo.com/...
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.Authenticated calls are limited to 1500 requests per user per 5 minutes. Unauthenticated calls are limited to 7500 requests per day.
Key
keyDeveloper key: google.com/... google.com/...Consumer key: vimeo.com/...
Best practices
URLgoogle.com/...vimeo.com/...