Pagination is essential when dealing with large datasets to:1.
Improve Performance: Retrieving large amounts of data in a single request can overload servers and increase latency. Pagination distributes data retrieval across multiple requests, improving performance.
2.
Enhance User Experience: Users can navigate through data efficiently, reducing the time and resources required to find specific information.
When an endpoint returns an array, we automatically implement pagination. The response includes the total number of results, as well as the current page, page size, and total number of pages.{
"pagination": {
"totalResults": 690,
"pageNumber": 4,
"pageSize": 100,
"totalPages": 7
}
}
You can adjust the desired page and page size using the query parameters pageNumber
and pageSize
.The default value of pageSize
is 100, and this value must range between 10 and 100. Modified at 2024-04-08 11:08:37