My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
youtubefeeds  
This wiki page offers some pointers on creating youtube feeds for use with OSTV
Featured
Updated Feb 4, 2010 by manzanit...@gmail.com

Youtube Feeds

Youtube has an extensive api to generate xml for its content. If you want to get into the guts of it, go here:

http://code.google.com/apis/youtube/2.0/reference.html#Video_Feeds

A Basic primer

adapted from:

http://googlesystem.blogspot.com/2008/01/youtube-feeds.html

1. Search feeds

http://gdata.youtube.com/feeds/api/videos?vq=mapreduce

(replace mapreduce with your query)

2. Search in a category

http://gdata.youtube.com/feeds/api/videos/-/Film/?vq=michel%20gondry&orderby=published

or

http://gdata.youtube.com/feeds/api/videos?vq=michel%20gondry&orderby=published&category=Film

(Film is the category, while michel gondry is the query - you need to replace the space with %20. Other categories: Music, Comedy, News, Sports, Autos, Howto.)

3. The latest videos from a channel

http://gdata.youtube.com/feeds/api/users/radiohead/uploads?orderby=published

(replace radiohead with your channel)

...or only the videos that match your keywords:

http://gdata.youtube.com/feeds/api/users/radiohead/uploads?orderby=published&vq=jigsaw

4. Feeds for favorite videos

http://gdata.youtube.com/feeds/api/users/lonelygirl15/favorites

(replace lonelygirl15's favorite videos)

Order your results

add to the query:

&orderby=published

or one of these values:

relevance(default), published, viewCount or rating

Get the amount of feed items you want

add to the query:

 &max-results=10

or another number

A couple of things that won't work with OSTV

If your feed has this:

&alt=rss

Remove it! That will generate a RSS feed. OSTV works with Youtube xml feeds.

If your feed looks like this:

 http://gdata.youtube.com/feeds/base/...

or if there is anything else there besides api

change it to this:

http://gdata.youtube.com/feeds/api/...

Interactive Feed Creator

Google has an Interactive Feed Creator at:

http://gdata.youtube.com/demo/index.html


Sign in to add a comment
Powered by Google Project Hosting