Paginating Product Feeds
When working with product feeds that contain thousands of products, you may want to access only a portion of the products at a time. In addition to using our filtering options, you can also use our pagination functionality to retrieve specific portions of the data.
* Product feed Pagination only works when you’re retrieving a single campaign / program.
How to Use Pagination
To paginate a product feed, you can add the option &records=100
to the request URL. This will provide the first 100 products in the response. The response will also include an "X-Next-Url" header, which you can use to request the next 100 products. This process continues as long as an "X-Next-Url" header is included in the response, indicating there are additional pages available.
Additionally, the response includes a "X-Current-Count" header, which indicates the number of records returned (typically the value you requested, such as 100), except for the final page which may have fewer records. The "X-Total-Count" header displays the total number of products available.
Example of a Feed URL with Pagination
Here is an example of a request URL for paginating product feeds:
https://daisycon.io/datafeed/?media_id=22848&standard_id=4&language_code=nl&locale_id=1&type=xml&program_id=14591&records=100&html_transform=none&rawdata=true&encoding=utf8&item_tag=item
Example of Response Headers
The example response headers for the above request:
-
Request URL:
https://daisycon.io/datafeed/?media_id=22848&standard_id=4&language_code=nl&locale_id=1&type=xml&program_id=14591&records=100&html_transform=none&rawdata=true&encoding=utf8&item_tag=item
- Request Method: GET
- Status Code: 200 OK
- X-Current-Count: 100
-
X-Next-Url:
https://daisycon.io/datafeed/?media_id=22848&standard_id=4&language_code=nl&locale_id=1&type=xml&program_id=14591&records=100&html_transform=none&rawdata=true&encoding=utf8&item_tag=item&search_after=50e879b064d709ea380d114486ec9b9d
- X-Total-Count: 328
This example shows how to use pagination to retrieve parts of the product feed efficiently, ensuring that you can manage and display products as required without overloading your system.