$(function() { $.getJSON("http://cpabuild.com/public/offers/feed.php?user_id=163503&api_key=633698c7e019af813037406fa2c4f916&s1=&s2=&callback=?", function(offers){ var html = ''; var numOffers=5; //Change to trim offers. Max is 10. offers=offers.splice(0,numOffers); $.each(offers, function(key, offer){ html += ''; }); $("#offerContainer").append(html); }); });