title: Trying to get data from a video using YouTube's API and Jquery
body: <p>I'm using this snippet of jquery, but it's not working. I'm trying to get data from a video usign YouTube's API.</p>
  
  <pre><code>$(document).ready(function() {
  
  
  var qid = 'cggNqDAtJYU';    
  var youtubeAPI = 'http://gdata.youtube.com/feeds/api/videos?v=2&amp;alt=jsonc';
  $.get(youtubeAPI,{'q' : qid},function(response)){
  
         //data is the reponse
         var data = response.data;
  
        alert(data.duration);
     }
  
  });
  </code></pre>