Skip to content

Instantly share code, notes, and snippets.

@ricardodantas
Created September 5, 2014 16:03
Show Gist options
  • Select an option

  • Save ricardodantas/719dc0a09830452dfced to your computer and use it in GitHub Desktop.

Select an option

Save ricardodantas/719dc0a09830452dfced to your computer and use it in GitHub Desktop.
Getting a list of videos from a YouTube channel using JSON - From http://stackoverflow.com/questions/16632945/getting-a-list-of-videos-from-a-youtube-channel-using-json
$.getJSON('https://gdata.youtube.com/feeds/api/videos?q=googledevelopers&max-re‌​sults=5&v=2&alt=jsonc&orderby=published', function(data) {
console.log(data);
for(var i=0; i<data.data.items.length; i++) {
console.log(data.data.items[i].title); // title
console.log(data.data.items[i].description); // description
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment