Skip to main content

Paligo API

Pagination

All endpoints that return results in the form of lists provide the ability to paginate through the results. Here is an example of a paginated list response:

{
    "page": 1,
    "next_page": "https://example.paligoapp.com/api/v2/resource?page=2",
    "total_pages": 3,
    "resources": [...]
}

Where page describes the current page, next_page contains the URL to get more results, total_pages is the total number of pages for all results, and resources is the requested resource.

To request the next page, you could either manually include the page parameter in the request, or use the next_page URL.

The amount of results listed per page can be controlled using the per_page query parameter.