Divide large sets of response data into manageable and easy-to-process pages
Pagination improves resource consumption and performance by sending only the necessary data, when it's needed.
A single large response message might be inefficient to exchange and process, especially when returning data for human consumption. Pagination reduces the individual message size by dividing it into smaller pages. It can significantly reduce response time, shrink payload size, and provide a more consumable data presentation format.
Pagination Parameters
| PARAMETER | EXPLANATION | Default | Min | Max |
|---|---|---|---|---|
| PageNumber | Specify the page number. | 1 | 1 | 9999 |
| PageSize | Indicates the number of instances to return on each page. | 100 | 10 | 500 |
Example
A sample request looks like:
https://app.upswot.com/admin/api/v1/normalized-data/companies?PageNumber=1&PageSize=100
Every endpoint that supports pagination returns a pagination object:
{
"pageNumber": 1,
"pageSize": 100,
"count": 2,
"data": [
...
]
}