Ploi API
Ploi API

Pagination

When you are using a list API route, we will most likely display this with pagination routes. (This is also visible on the documentation page itself)

You can use the query parameter ?per_page= to determine how much results you want on 1 page, the maximum is 50 results. If you exceed this result then it will default back to 15 automatically.

Pagination will look like this:

{
    "data": [
        ... data objects ...
    ],
    "links": {
        "first": "http://ploi.io/api/{route}?page=1",
        "last": "http://ploi.io/api/{route}?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://ploi.io/api/{route}",
        "per_page": 15,
        "to": 3,
        "total": 3
    }
}