Next page URL pagination method
Last updated
Last updated
This method is similar to the approach, except that the URL for the next page is included in the response body, rather than the header.
Next page field
Enter the location of the next page URL within the payload.
Suppose we set the following options:
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:
Pagination continues until the next page URL is no longer included in the payload.