Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube API: How to get videos from channel X with tag Y?

For example, how could I get a JSON response of all the videos from channel "http://www.youtube.com/nba" that are tagged "playoffs"?

like image 776
edt Avatar asked May 03 '11 17:05

edt


People also ask

What is snippet in YouTube API?

The snippet object contains basic details about the video, such as its title, description, and category. The date and time that the video was published.


2 Answers

YouTube calls tags as categories.

The following URL shows videos from NBA channel with tags playoffs and sports (you can add more obviously) in JSON.

http://gdata.youtube.com/feeds/api/users/nba/uploads/-/sports/playoffs?v=2&alt=json

like image 171
ahmet alp balkan Avatar answered Sep 17 '22 14:09

ahmet alp balkan


Try something like this:

http://gdata.youtube.com/feeds/api/users/nba/uploads?q=playoffs

but this is xml format, look the api document and do it as json by yourself.

like image 23
yuli chika Avatar answered Sep 17 '22 14:09

yuli chika