Pagination
Simple pagination returns up to twenty items per page, with links to the previous and next pages.
Pagination
Pagination
The API uses simple pagination: a response tells you whether a previous or next page exists, but it does not include a total count or final page number.
Follow links.next until it is null, or request a known page with ?page=2.
Paginated responses include these fields:
| Field | Type | Description |
|---|---|---|
data | array | Items on the current page. |
links.first | string | URL of the first page. |
links.last | null | Always null because the API uses simple pagination. |
links.prev | string or null | URL of the previous page. |
links.next | string or null | URL of the next page. null marks the last page. |
meta.current_page | integer | Current page number. |
meta.current_page_url | string | URL of the current page. |
meta.from | integer or null | One-based position of the first item on this page. |
meta.path | string | Endpoint URL without the page query parameter. |
meta.per_page | integer | Maximum page size; currently 20. |
meta.to | integer or null | One-based position of the last item on this page. |
{
"data": [],
"links": {
"first": "https://app.avaroai.com/api/v1/operations/listings?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"current_page_url": "https://app.avaroai.com/api/v1/operations/listings?page=1",
"from": null,
"path": "https://app.avaroai.com/api/v1/operations/listings",
"per_page": 20,
"to": null
}
}

