Pagination in REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-13-2019 05:23 AM
A very good explanation of how to implement pagination in REST API in this below blog post:
When I try to implement the same(I am extracting data from survey monkey api), I have noticed that when the āNext URLā is executing it is ignoring the query parameters provided.As shown in below image, when service URL is executing itās getting right records considering all input query parameters i.e total:3043 but when āNext URLā is hitting it is extracting all records i.e. total : 61896
How to include query parameters in āNext URLā to get required data?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-13-2019 09:41 AM
Please share your configuration of the Snapās settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2019 02:39 AM
below is configuration of Snapās settings.
service URL: https://api.surveymonkey.net/v3/collectors/xxxxx/responses/bulk
In the āNext URLā i have replaced āoffsetā with āpageā api is throwing error as bad request, may be api donāt accept parameter as offset.error below

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2019 08:41 AM
I canāt see the entire expression for Next URL in your screen capture, but it seems more complicated than it needs to be. Try this: āhttps://api.surveymonkey.net/v3/collectors/xxxxx/responses/bulk?per_page=ā + ($entity.per_page) + ā&page=ā + ($entity.page + 1)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2019 09:02 AM
Actually, after looking at the Survey Monkey API docs, I think itās even easier. Try this:
Has next: ānextā in $entity.links
Next URL: $entity.links.next
