Created
September 5, 2014 16:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.getJSON('https://gdata.youtube.com/feeds/api/videos?q=googledevelopers&max-results=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