Pagination

Most collection endpoints in the Dashdoc API are paginated. By default, results are returned in pages of 20 or 100 items, depending on the endpoint.

Requesting Pages

To navigate through paginated data, use the page query parameter:

GET /api/v4/transports/?page=2

If the page parameter is not specified, the API will return the first page (?page=1 by default).


Response Format

Paginated responses follow a consistent schema:

{
  "count": 100,
  "next": "https://api.dashdoc.com/api/v4/transports/?page=3",
  "previous": "https://api.dashdoc.com/api/v4/transports/?page=1",
  "results": [
    ...
  ]
}

Fields

  • count: Total number of items matching your request, across all pages.

  • next: URL to retrieve the next page of results (or null if you are on the last page).

  • previous: URL to retrieve the previous page of results (or null if you are on the first page).

  • results: The list of objects contained in the current page.

Last updated

Was this helpful?