SlideShare a Scribd company logo
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
Youtube api at Glance
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
Youtube api at Glance
Interface for adding videos

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

• Use case example site
  http://videosanjal.com
Youtube api at Glance

More Related Content

PPTX
Software testing and process
PPT
Path testing, data flow testing
PPT
Spiral model
PPT
Unified Modeling Language
DOCX
Software engineering
PPT
Automation
PDF
Black Box Testing
PPTX
Session tracking in servlets
Software testing and process
Path testing, data flow testing
Spiral model
Unified Modeling Language
Software engineering
Automation
Black Box Testing
Session tracking in servlets

What's hot (20)

PPT
Use case Diagram
PPTX
Mc call's software quality model
PPTX
Validation testing
PPTX
Writing Test Cases in Agile
PPTX
Waterfall model
PDF
Types of software testing
PPTX
Lecture - 2 Environment setup & JDK, JRE, JVM
PPTX
Software Engineering Methodologies
PPT
Unit 5 usability and satisfaction test
PPT
Social and cultural issues in requirements engineering
PPT
Software Process in Software Engineering SE3
PDF
Control Flow Graphs
PPTX
SOFTWARE TESTING UNIT-4
PPT
Software Testing Fundamentals
PPTX
MULTI THREADING IN JAVA
PPTX
DaKiRY_BAQ2016_QADay_Денис Геращенко "How we use Zephyr for Jira in e-commerce"
ODP
Presentation on Agile Testing
PPT
Software Engineering (Process Models)
PPTX
S.D.L.C (Software Development Life Cycle.)
Use case Diagram
Mc call's software quality model
Validation testing
Writing Test Cases in Agile
Waterfall model
Types of software testing
Lecture - 2 Environment setup & JDK, JRE, JVM
Software Engineering Methodologies
Unit 5 usability and satisfaction test
Social and cultural issues in requirements engineering
Software Process in Software Engineering SE3
Control Flow Graphs
SOFTWARE TESTING UNIT-4
Software Testing Fundamentals
MULTI THREADING IN JAVA
DaKiRY_BAQ2016_QADay_Денис Геращенко "How we use Zephyr for Jira in e-commerce"
Presentation on Agile Testing
Software Engineering (Process Models)
S.D.L.C (Software Development Life Cycle.)
Ad

Viewers also liked (20)

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

Similar to Youtube api at Glance (20)

PDF
Google API
PPT
YouTube for Developers
PPTX
Case study of youtube
PDF
Joshfire Framework 0.9 Technical Overview
PPTX
3 things your app API is doing WRONG
PDF
You tube api overview
PPTX
The-YouTube-Website popular video streaming platform
PPTX
API Design - When to buck the trend (Webcast)
PDF
Manual Jtag Youtube
PDF
thepowerofapisinmobThe Power of APIs in Mobile App Developmentileappdevelopme...
PDF
Web Based APIs
DOCX
KEY
Rewrapping your data – Providing a tech savvy interface to your data
DOCX
PPSX
YOUTUBE
PDF
Frank Mantek Google G Data
PDF
Google Back To Front: From Gears to App Engine and Beyond
PDF
Using the Google AJAX APIs
PPTX
You tube ppt
PDF
HTML5 APIs - native multimedia support and beyond - University of Leeds 05.05...
Google API
YouTube for Developers
Case study of youtube
Joshfire Framework 0.9 Technical Overview
3 things your app API is doing WRONG
You tube api overview
The-YouTube-Website popular video streaming platform
API Design - When to buck the trend (Webcast)
Manual Jtag Youtube
thepowerofapisinmobThe Power of APIs in Mobile App Developmentileappdevelopme...
Web Based APIs
Rewrapping your data – Providing a tech savvy interface to your data
YOUTUBE
Frank Mantek Google G Data
Google Back To Front: From Gears to App Engine and Beyond
Using the Google AJAX APIs
You tube ppt
HTML5 APIs - native multimedia support and beyond - University of Leeds 05.05...

Youtube api at Glance

  • 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
  • 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" } } }
  • 17. Interface for adding videos http://www.youtube.com/watch?v=9bZkp7q19f0
  • 19. • For more info https://developers.google.com/youtube/ • Use case example site http://videosanjal.com