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:

FieldTypeDescription
dataarrayItems on the current page.
links.firststringURL of the first page.
links.lastnullAlways null because the API uses simple pagination.
links.prevstring or nullURL of the previous page.
links.nextstring or nullURL of the next page. null marks the last page.
meta.current_pageintegerCurrent page number.
meta.current_page_urlstringURL of the current page.
meta.frominteger or nullOne-based position of the first item on this page.
meta.pathstringEndpoint URL without the page query parameter.
meta.per_pageintegerMaximum page size; currently 20.
meta.tointeger or nullOne-based position of the last item on this page.
Example Response — Empty First 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
    }
}
Wallpaper

Begin your journey

Discover how AvaroAI can streamline your day, surface insights faster, and give you more time to focus on what really matters — closing deals.