Skip to main content
An offer is on sale when the merchant gives an old_price above price. To build a deals page, page through every product of the channel and keep those offers.

Page through the catalog

GET /v0/channels/{channelId}/products returns up to limit products (at most 200) ordered by GTIN. Pass next_cursor from a response as cursor to get the next page; it is null on the last one.

Collect the discounts

Show the top of deals as “−25% at Nordic Pet”, linking to link.

Run it on a schedule

Walking the whole catalog takes one request per 200 products. Run it from a scheduled job (every hour is plenty), store the result, and serve the deals page from that, not from the API on every view.