Search code examples
jsonyoutube

Search Youtube and return JSON


Is there a url I can use the search for 'foo' on YouTube, and return JSON with a list of videos?


Solution

  • As their API docs clearly state, just add ?alt=json:

    http://gdata.youtube.com/feeds/api/videos?q=foo&alt=json