How to fetch feed from YouTube API

Put this script in head of the page <script type=”text/javascript”> function showMyVideos(data){ var output =”; for(var i=0;i < data.feed.entry.length; i++){ var title = data.feed.entry[i].title.$t; var thumbnail = data.feed.entry[i].media$group.media$thumbnail[0].url; var id = data.feed.entry[i].id.$t.substring(38); output += ‘<h3>’ + title + ‘</h3>’; output…