Next page URL pagination method
Overview
This method is similar to the link header approach, except that the URL for the next page is included in the response body, rather than the header.
Next page URL options
Option
Summary
Next page field
Enter the location of the next page URL within the payload.
Example
Suppose we set the following options:
Option
Value
Next page field
links.next
...and we send a request to get the first page of data:
The response will include the first page of data, together with a URL that should be used to get the next page of results. For example:
Notice the links.next
section at the end of this response, which includes our next page URL. So, our request for the next page of results would be:
When does pagination stop?
Pagination continues until the next page URL is no longer included in the payload.
Last updated