Pagination

Pagination is employed to manage large datasets returned by API endpoints, ensuring efficient retrieval and navigation of results. In this API, pagination is facilitated using the "searchAfter" parameter, which serves as a pointer to the next set of results. After making an initial request, the API response includes this "searchAfter" value, which corresponds to the last item from the current page of results. To retrieve the subsequent page of results, users include this "searchAfter" value in the subsequent API request as a parameter. The API then returns the next page of results, starting from the item immediately after the one indicated by the provided "searchAfter" value. This mechanism enables users to iteratively retrieve paginated data without duplication or omission, allowing for efficient navigation through large datasets. Additionally, users can control the size of each page of results by specifying the desired number of items per page in their API requests. Note that there is a maximum limit on the number of items per page, which is specified in the API documentation for each endpoint.