SlideShare une entreprise Scribd logo
1  sur  20
Youtube API


                  Ashok Basnet
         Nepsquare Technologies Pvt. Ltd.
                  mail@ashokbasnet.com.np
                                  5/1/2013
Agenda
•   Introduction
•   Youtube APIs
•   Getting Youtube data
•   Use Case ( videosanjal.com )
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.
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
Youtube APIs

• Player API




• Data API
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/
YouTube Data API
• Search for Videos
   – Keywords (tags)
   – Categories
   – Query Params (metadata)
• Search for Playlists
   – Keywords (tags)
   – Categories
• Search for Channels
   – Keywords (tags)
   – Categories
YouTube Data API
• Retrieve
   –   Videos
   –   Comments
   –   Captions
   –   Related Videos
   –   Video Responses
   –   Categories
   –   Keywords
   –   Playlists
   –   Subscriptions
   –   Profiles
   –   Contacts
   –   Messages
   –   Activity Feeds
   –   Insight Data Feed
   –   Favorites
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
Getting Youtube Data



http://gdata.youtube.com/feeds/api/videos/
VIDEO_ID?v=2&alt=json
For e.g.
http://gdata.youtube.com/feeds/api/videos/
9bZkp7q19f0?v=2&alt=json

alt => json or xml


Gives JSON Data as
{
  "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"
          }
       ],
"media$description": {
          "$t": "PSY - Gangnam Style (강남스타일) n App Store:
http://goo.gl/l9TU6nGoogle Play: http://goo.gl/UiEn1nn© YG
Entertainment Inc. All rights reserved.",
  },
        "yt$duration": {
          "seconds": "253"
        }
     },
     "yt$statistics": {
        "favoriteCount": "0",
        "viewCount": "1121801092"
     },
     "yt$rating": {
        "numDislikes": "523231",
        "numLikes": "6549910"
     }
  }
}
Use Case
Interface for adding videos

  http://www.youtube.com/watch?v=9bZkp7q19f0
• For more info
  https://developers.google.com/youtube/

• Use case example site
  http://videosanjal.com
Youtube API data retrieval

Contenu connexe

En vedette

Why APIs are Different Than Integration
Why APIs are Different Than IntegrationWhy APIs are Different Than Integration
Why APIs are Different Than IntegrationApigee | Google Cloud
 
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...Jarek Wilkiewicz
 
Building Video Applications with YouTube APIs
Building Video Applications with YouTube APIsBuilding Video Applications with YouTube APIs
Building Video Applications with YouTube APIsJarek Wilkiewicz
 
Youtube를활용한app만들기
Youtube를활용한app만들기Youtube를활용한app만들기
Youtube를활용한app만들기DaeHee Jang
 
4w 1h with youtube api
4w 1h with youtube api4w 1h with youtube api
4w 1h with youtube apiOue Ekasit
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive Innotronwest
 
Youtube Presentation
Youtube PresentationYoutube Presentation
Youtube Presentationtownsend
 
Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14 Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14 Martin Hawksey
 
The Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryThe Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryOH TEIK BIN
 
YouTube API Japan UG #1
YouTube API Japan UG #1YouTube API Japan UG #1
YouTube API Japan UG #1Yukio Andoh
 
Youtube IFrame Player API
Youtube IFrame Player APIYoutube IFrame Player API
Youtube IFrame Player APIRyan Chung
 
Scaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesScaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesApigee | Google Cloud
 
How to upload PowerPoint to You Tube
How to upload PowerPoint to You TubeHow to upload PowerPoint to You Tube
How to upload PowerPoint to You Tubegaochuhan
 
Structure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey resultsStructure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey resultsGigaom
 
Best Practices for API Adoption
Best Practices for API AdoptionBest Practices for API Adoption
Best Practices for API AdoptionAnyPresence
 

En vedette (20)

Why APIs are Different Than Integration
Why APIs are Different Than IntegrationWhy APIs are Different Than Integration
Why APIs are Different Than Integration
 
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
 
Building Video Applications with YouTube APIs
Building Video Applications with YouTube APIsBuilding Video Applications with YouTube APIs
Building Video Applications with YouTube APIs
 
Youtube를활용한app만들기
Youtube를활용한app만들기Youtube를활용한app만들기
Youtube를활용한app만들기
 
4w 1h with youtube api
4w 1h with youtube api4w 1h with youtube api
4w 1h with youtube api
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive In
 
YouTube APIs Workshop
YouTube APIs WorkshopYouTube APIs Workshop
YouTube APIs Workshop
 
Youtube Presentation
Youtube PresentationYoutube Presentation
Youtube Presentation
 
Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14 Google {Learning} Analytics GEUG14
Google {Learning} Analytics GEUG14
 
The Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka StoryThe Day The Earth Broke Into Two...A Jataka Story
The Day The Earth Broke Into Two...A Jataka Story
 
Api vortrag
Api vortragApi vortrag
Api vortrag
 
YouTube API Japan UG #1
YouTube API Japan UG #1YouTube API Japan UG #1
YouTube API Japan UG #1
 
Youtube IFrame Player API
Youtube IFrame Player APIYoutube IFrame Player API
Youtube IFrame Player API
 
Effective writing
Effective writingEffective writing
Effective writing
 
Scaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the ChallengesScaling APIs: Predict, Prepare for, Overcome the Challenges
Scaling APIs: Predict, Prepare for, Overcome the Challenges
 
How to upload PowerPoint to You Tube
How to upload PowerPoint to You TubeHow to upload PowerPoint to You Tube
How to upload PowerPoint to You Tube
 
How to Achieve Agile API Security
How to Achieve Agile API SecurityHow to Achieve Agile API Security
How to Achieve Agile API Security
 
Approval Template
Approval TemplateApproval Template
Approval Template
 
Structure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey resultsStructure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey results
 
Best Practices for API Adoption
Best Practices for API AdoptionBest Practices for API Adoption
Best Practices for API Adoption
 

Similaire à Youtube API data retrieval

Drupal Camp 2009 Pune I Love Bolly Case Study
Drupal Camp 2009 Pune I Love Bolly Case StudyDrupal Camp 2009 Pune I Love Bolly Case Study
Drupal Camp 2009 Pune I Love Bolly Case Studydrupalindia
 
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1gauravkumar87
 
Build Your First Mobile App in 1 hour with Windows App Studio
Build Your First Mobile App in 1 hour with Windows App StudioBuild Your First Mobile App in 1 hour with Windows App Studio
Build Your First Mobile App in 1 hour with Windows App StudioNick Landry
 
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office Hours
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office HoursIVS CTO Night And Day 2018 Winter - AWS Startup Tech Office Hours
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office HoursAmazon Web Services Japan
 
Stringcast Open
Stringcast OpenStringcast Open
Stringcast Openahamidi27
 
OpenACT - Meet1 - Intro to APIs
OpenACT - Meet1 - Intro to APIsOpenACT - Meet1 - Intro to APIs
OpenACT - Meet1 - Intro to APIsOpenACT
 
API-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demosAPI-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demosTwitter Developers
 
August 10th, 2009 Tom Rogers YouTube
August 10th, 2009 Tom Rogers YouTubeAugust 10th, 2009 Tom Rogers YouTube
August 10th, 2009 Tom Rogers YouTubeStraight North
 
TypePad Platform FOWA London 2009
TypePad Platform FOWA London 2009TypePad Platform FOWA London 2009
TypePad Platform FOWA London 2009Ed Anuff
 
Web Video Content Distribution
Web Video Content DistributionWeb Video Content Distribution
Web Video Content DistributionDavid Jenyns
 
Sps Ottawa 2015: Give your company its own streaming video service with #o365...
Sps Ottawa 2015: Give your company its own streaming video service with #o365...Sps Ottawa 2015: Give your company its own streaming video service with #o365...
Sps Ottawa 2015: Give your company its own streaming video service with #o365...Nicolas Georgeault
 
PaaS + Appcelerator = WIN
PaaS + Appcelerator = WINPaaS + Appcelerator = WIN
PaaS + Appcelerator = WINAaron Saunders
 
Top 10 Lessons Learned from the Netflix API - OSCON 2014
Top 10 Lessons Learned from the Netflix API - OSCON 2014Top 10 Lessons Learned from the Netflix API - OSCON 2014
Top 10 Lessons Learned from the Netflix API - OSCON 2014Daniel Jacobson
 
Building your First Application with Cassandra
Building your First Application with CassandraBuilding your First Application with Cassandra
Building your First Application with CassandraLuke Tillman
 
Building Social Tools
Building Social ToolsBuilding Social Tools
Building Social ToolsAnand Hemmige
 
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017Amazon Web Services
 
Scaling the Netflix API - OSCON
Scaling the Netflix API - OSCONScaling the Netflix API - OSCON
Scaling the Netflix API - OSCONDaniel Jacobson
 

Similaire à Youtube API data retrieval (20)

Drupal Camp 2009 Pune I Love Bolly Case Study
Drupal Camp 2009 Pune I Love Bolly Case StudyDrupal Camp 2009 Pune I Love Bolly Case Study
Drupal Camp 2009 Pune I Love Bolly Case Study
 
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1
Drupal Camp 2009 Pune Ilovebollycase Study 1233568636712224 1
 
Build Your First Mobile App in 1 hour with Windows App Studio
Build Your First Mobile App in 1 hour with Windows App StudioBuild Your First Mobile App in 1 hour with Windows App Studio
Build Your First Mobile App in 1 hour with Windows App Studio
 
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office Hours
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office HoursIVS CTO Night And Day 2018 Winter - AWS Startup Tech Office Hours
IVS CTO Night And Day 2018 Winter - AWS Startup Tech Office Hours
 
Stringcast Open
Stringcast OpenStringcast Open
Stringcast Open
 
OpenACT - Meet1 - Intro to APIs
OpenACT - Meet1 - Intro to APIsOpenACT - Meet1 - Intro to APIs
OpenACT - Meet1 - Intro to APIs
 
API-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demosAPI-Craft NYC - Overview of the Twitter APIs with demos
API-Craft NYC - Overview of the Twitter APIs with demos
 
August 10th, 2009 Tom Rogers YouTube
August 10th, 2009 Tom Rogers YouTubeAugust 10th, 2009 Tom Rogers YouTube
August 10th, 2009 Tom Rogers YouTube
 
Webdistilled API
Webdistilled APIWebdistilled API
Webdistilled API
 
TypePad Platform FOWA London 2009
TypePad Platform FOWA London 2009TypePad Platform FOWA London 2009
TypePad Platform FOWA London 2009
 
Python x Django
Python x DjangoPython x Django
Python x Django
 
Web Video Content Distribution
Web Video Content DistributionWeb Video Content Distribution
Web Video Content Distribution
 
Sps Ottawa 2015: Give your company its own streaming video service with #o365...
Sps Ottawa 2015: Give your company its own streaming video service with #o365...Sps Ottawa 2015: Give your company its own streaming video service with #o365...
Sps Ottawa 2015: Give your company its own streaming video service with #o365...
 
PaaS + Appcelerator = WIN
PaaS + Appcelerator = WINPaaS + Appcelerator = WIN
PaaS + Appcelerator = WIN
 
Top 10 Lessons Learned from the Netflix API - OSCON 2014
Top 10 Lessons Learned from the Netflix API - OSCON 2014Top 10 Lessons Learned from the Netflix API - OSCON 2014
Top 10 Lessons Learned from the Netflix API - OSCON 2014
 
About MetaCast Inc.
About MetaCast Inc.About MetaCast Inc.
About MetaCast Inc.
 
Building your First Application with Cassandra
Building your First Application with CassandraBuilding your First Application with Cassandra
Building your First Application with Cassandra
 
Building Social Tools
Building Social ToolsBuilding Social Tools
Building Social Tools
 
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017
NEW LAUNCH! Introducing Amazon Kinesis Video Streams - ABD216 - re:Invent 2017
 
Scaling the Netflix API - OSCON
Scaling the Netflix API - OSCONScaling the Netflix API - OSCON
Scaling the Netflix API - OSCON
 

Youtube API data retrieval

  • 1. Youtube API Ashok Basnet Nepsquare Technologies Pvt. Ltd. mail@ashokbasnet.com.np 5/1/2013
  • 2. Agenda • Introduction • Youtube APIs • Getting Youtube data • Use Case ( videosanjal.com )
  • 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. 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. Youtube APIs • Player API • Data API
  • 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. 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. 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. 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
  • 11.
  • 13. { "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" } ],
  • 14. "media$description": { "$t": "PSY - Gangnam Style (강남스타일) n App Store: http://goo.gl/l9TU6nGoogle Play: http://goo.gl/UiEn1nn© YG Entertainment Inc. All rights reserved.", }, "yt$duration": { "seconds": "253" } }, "yt$statistics": { "favoriteCount": "0", "viewCount": "1121801092" }, "yt$rating": { "numDislikes": "523231", "numLikes": "6549910" } } }
  • 16.
  • 17. Interface for adding videos http://www.youtube.com/watch?v=9bZkp7q19f0
  • 18.
  • 19. • For more info https://developers.google.com/youtube/ • Use case example site http://videosanjal.com