Youtube api at Glance

1,665 views

Published on

Youtube API at Glance. presenting different type of Yotube APIs, getting data from youtube, examples and use case as (videosanjal.com).

@GDG Kathmandu Startup Weekend Bootcamp
Date: Jan 5th, 2013
http://mobilenepal.net/events/gdg-kathmandu-startup-weekend-bootcamp

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,665
On SlideShare
0
From Embeds
0
Number of Embeds
172
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Youtube api at Glance

  1. 1. Youtube API Ashok Basnet Nepsquare Technologies Pvt. Ltd. mail@ashokbasnet.com.np 5/1/2013
  2. 2. Agenda• Introduction• Youtube APIs• Getting Youtube data• Use Case ( videosanjal.com )
  3. 3. What is API ?• API ( Application Programming Interface )• Protocol intended to be used as an interface by software components to communicate with each other• A set of routines, protocols, and tools for building software applications.• A good API makes it easier to develop a program by providing all the building blocks.
  4. 4. Introduction• The YouTube APIs and Tools let you bring the YouTube experience to your webpage, application, or device.• It is possible to search for videos, retrieve standard feeds, and see related content. A program can also authenticate as a user to upload videos, modify user playlists, and more
  5. 5. Youtube APIs• Player API• Data API
  6. 6. Youtube APIs• Version 1• Version 2 ( Recommended )• Version 3 ( Experimental ) API for android YouTube Android Player API ( Experimental) https://developers.google.com/youtube/android/player/
  7. 7. YouTube Data API• Search for Videos – Keywords (tags) – Categories – Query Params (metadata)• Search for Playlists – Keywords (tags) – Categories• Search for Channels – Keywords (tags) – Categories
  8. 8. YouTube Data API• Retrieve – Videos – Comments – Captions – Related Videos – Video Responses – Categories – Keywords – Playlists – Subscriptions – Profiles – Contacts – Messages – Activity Feeds – Insight Data Feed – Favorites
  9. 9. YouTube Data API• Create • Update – Videos – Video Metadata – Comments – Captions – Captions – Profiles – Related Videos – Playlists – Video Responses – Contacts – Complaint • Delete – Rating – Video – Contact – Message – Message – Favorite – Favorite – Playlist – Playlist – Subscription – Subscription – Contact
  10. 10. Getting Youtube Datahttp://gdata.youtube.com/feeds/api/videos/VIDEO_ID?v=2&alt=json
  11. 11. For e.g.http://gdata.youtube.com/feeds/api/videos/9bZkp7q19f0?v=2&alt=jsonalt => json or xmlGives JSON Data as
  12. 12. { "version": "1.0", "encoding": "UTF-8", "entry": { "published": { "$t": "2012-07-15T07:46:32.000Z" }, "title": { "$t": "PSY - GANGNAM STYLE (강남스타일) M/V" }, "media$group": { "media$category": [ { "$t": "Music", "label": "Music", "scheme":"http://gdata.youtube.com/schemas/2007/categories.cat" } ],
  13. 13. "media$description": { "$t": "PSY - Gangnam Style (강남스타일) n App Store:http://goo.gl/l9TU6nGoogle Play: http://goo.gl/UiEn1nn© YGEntertainment Inc. All rights reserved.", }, "yt$duration": { "seconds": "253" } }, "yt$statistics": { "favoriteCount": "0", "viewCount": "1121801092" }, "yt$rating": { "numDislikes": "523231", "numLikes": "6549910" } }}
  14. 14. Use Case
  15. 15. Interface for adding videos http://www.youtube.com/watch?v=9bZkp7q19f0
  16. 16. • For more info https://developers.google.com/youtube/• Use case example site http://videosanjal.com

×