Basics
Pagination
Endpoints that return lists return them in pages.
Request a specific page with two query parameters:
| Parameter | Description |
|---|---|
page | The page number, starting at 1. |
page_size | How many results you want per page. Each endpoint has its own default and maximum. |
The pagination part of the response looks like this:
{
"metadata": {
"count": 42,
"next_cursor": "https://provider-api.flexy.gr/api/v1/...?page=2",
"previous_cursor": null,
"page_size": 20
},
"results": [
// the objects on this page
]
}
| Field | Description |
|---|---|
metadata.count | The total number of results, across all pages. |
metadata.next_cursor | The full URL of the next page, or null on the last page. |
metadata.previous_cursor | The full URL of the previous page, or null on the first page. |
metadata.page_size | The page size. |
results | The results on this page. |