Posted By

rowntreerob on 08/06/09


Tagged

api YouTube


Versions (?)

youtube call 5 - Get videoFeed(video_id)


 / Published in: Bash
 

call for the feed using the video_id and get the xml response. see "yt:status"

  1. http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y
  2.  
  3. <entry>
  4. <id>
  5. http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y
  6. </id>
  7. <published>2009-07-31T09:45:17.000Z</published>
  8. <updated>2009-08-06T13:07:11.000Z</updated>
  9. <app:control>
  10. <yt:state name="restricted" reasonCode="limitedSyndication">
  11. Syndication of this video was restricted by its owner.
  12. </yt:state>
  13. </app:control>
  14. <category scheme="http://schemas.google.com/g/2005#kind" term="http://gdata.youtube.com/schemas/2007#video"/>
  15. <category scheme="http://gdata.youtube.com/schemas/2007/categories.cat" term="Sports" label="Sports"/>
  16. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="After+the+Flag"/>
  17. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="MotoGP"/>
  18. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Jorge+Lorenzo"/>
  19. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Valentino+Rossi"/>
  20. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Colin+Edwards"/>
  21. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Andrea+Dovizioso"/>
  22. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Randy+de+Puniet"/>
  23. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Repsol+Honda"/>
  24. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Fiat+Yamaha"/>
  25. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Casey+Stoner"/>
  26. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Ducati+Marlboro"/>
  27. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Donington+Park"/>
  28. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="Great+Britain"/>
  29. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="motorcycle"/>
  30. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="road+racing"/>
  31. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="motograndprix"/>
  32. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="motorcycles"/>
  33. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="bike"/>
  34. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="speed"/>
  35. <category scheme="http://gdata.youtube.com/schemas/2007/keywords.cat" term="crash"/>
  36. <title type="text">After the Flag at the British Grand Prix</title>
  37. <content type="text">
  38. The seventh edition of After the Flag for 2009, the official MotoGP Video Podcast is brought to you by host Gavin Emmett from Donington Park after the British Grand Prix was held at the East Midlands circuit for the last time.
  39. </content>
  40. <link rel="alternate" type="text/html" href="http://www.youtube.com/watch?v=qPznjRKcM7Y"/>
  41. <link rel="http://gdata.youtube.com/schemas/2007#video.responses" type="application/atom+xml" href="http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y/responses"/>
  42. <link rel="http://gdata.youtube.com/schemas/2007#video.related" type="application/atom+xml" href="http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y/related"/>
  43. <link rel="self" type="application/atom+xml" href="http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y"/>
  44. <author>
  45. <name>MotoGP</name>
  46. <uri>http://gdata.youtube.com/feeds/api/users/motogp</uri>
  47. </author>
  48. <gd:comments>
  49. <gd:feedLink href="http://gdata.youtube.com/feeds/api/videos/qPznjRKcM7Y/comments" countHint="24"/>
  50. </gd:comments>
  51. <media:group>
  52. <media:category label="Sports" scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Sports</media:category>
  53. <media:description type="plain">
  54. The seventh edition of After the Flag for 2009, the official MotoGP Video Podcast is brought to you by host Gavin Emmett from Donington Park after the British Grand Prix was held at the East Midlands circuit for the last time.
  55. </media:description>
  56. <media:keywords>
  57. After+the+Flag, MotoGP, Jorge+Lorenzo, Valentino+Rossi, Colin+Edwards, Andrea+Dovizioso, Randy+de+Puniet, Repsol+Honda, Fiat+Yamaha, Casey+Stoner, Ducati+Marlboro, Donington+Park, Great+Britain, motorcycle, road+racing, motograndprix, motorcycles, bike, speed, crash
  58. </media:keywords>
  59. <media:player url="http://www.youtube.com/watch?v=qPznjRKcM7Y"/>
  60. <media:thumbnail url="http://i.ytimg.com/vi/qPznjRKcM7Y/2.jpg" height="90" width="120" time="00:11:00"/>
  61. <media:thumbnail url="http://i.ytimg.com/vi/qPznjRKcM7Y/1.jpg" height="90" width="120" time="00:05:30"/>
  62. <media:thumbnail url="http://i.ytimg.com/vi/qPznjRKcM7Y/3.jpg" height="90" width="120" time="00:16:30"/>
  63. <media:thumbnail url="http://i.ytimg.com/vi/qPznjRKcM7Y/0.jpg" height="240" width="320" time="00:11:00"/>
  64. <media:title type="plain">After the Flag at the British Grand Prix</media:title>
  65. <yt:duration seconds="1320"/>
  66. </media:group>
  67. <yt:noembed/>
  68. <gd:rating average="4.6969695" max="5" min="1" numRaters="66" rel="http://schemas.google.com/g/2005#overall"/>
  69. <yt:statistics favoriteCount="29" viewCount="16357"/>
  70. </entry>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: rowntreerob on August 6, 2009

'yt:state' element will not be present in the feed if the status is OK

You need to login to post a comment.