Get video duration with YouTube Data API?
Basically, I'm trying to get the video duration of each video that shows up in the results when they search. I have a neat little demo set up for you to mess with! ALSO - When I say duration I mean the length of the video in M/S format (0:00).. DEMO http://codepen.io/mistkaes/pen/6b6a347c7d24edee15b3491420db4ecd jQuery: var apikey = '<API KEY>'; $(function() { var searchField = $('#search-input'); $('#search-form').submit(function(e) { e.preventDefault(); }); }); function search() { $('#results').html(''); q = $('#search-input').val(); $.get( "https://www.googleapis.com/youtube/v3/search", {