Groupon api - do not receive all transactions

when I run groupon api in apigee for a division equal to los angeles, thousands of transactions appear, but when I run my code below, I get only 50? please, help

var $result = $('#container') $.ajax({ type: 'GET', url: 'https://api.groupon.com/v2/deals.json? client_id=b252ad3634a4ab2985b79d230ccc4e49a3ea9d19&show=all&division_id=los-angeles', dataType: 'jsonp', }).done(function(data){ console.log(data) $.each(data.deals, function(idx, deal){ var html = '<div class="dealSmall"><div class="image"><div class="merchant">' + deal.merchant.name + '<img src="' + deal.grid4ImageUrl + '"/></div></div><div class="dealDetail"><div class="dealName">' + deal.announcementTitle+ '</div><div class="price">' + deal.options[0].price.formattedAmount + '</div></div></div>' $result.append(html) }) }); }); 
+4
source share
1 answer

Use this URL for your request, and you can format it in the same way as with this API documentation .

 https://partner-api.groupon.com/deals.json?tsToken=US_AFF_0_201236_212556_0&division_id=los-angeles&offset=0&limit=1000 
0
source

Source: https://habr.com/ru/post/1497109/


All Articles