Some endpoints may return a large number of results, so pagination is available to help you request only a subset of the results at a time.Documentation Index
Fetch the complete documentation index at: https://developer.uphold.com/llms.txt
Use this file to discover all available pages before exploring further.
Types of pagination
There are two types of pagination used underneath:- Page-based pagination: This method uses a paging parameter to indicate the starting point of records to return.
- Cursor-based pagination: This method utilizes a unique identifier to determine the position in the data set.
Pagination in responses
When an endpoint supports pagination, the response will include apagination object with the following properties:
next: The URL to the next page. This property will be omitted if the result set is empty or if the next page has no results.previous: The URL to the previous page. This property will be omitted if the result set is empty or if there’s no previous page.first: The URL to the first page. This property will be omitted if the result set is empty.
pagination object may look like in the response:
Number of results per page
To control how many results are returned per page, you can use theperPage query parameter. For example, to request 100 results per page, you would add perPage=100 query parameter to the URL.
The perPage parameter will automatically be included in the URLs in the pagination object, so you don’t need to worry about it when following the pagination links.