Paging

With paging query parameters you can change the size of response data array and iterate response loading.

Paging query parameters

page=1 page=1&limit=20

Query parameter

Description

Default

Range

page

Selected page

1

(1, ...)

limit

Max items on a page (step).

20

(1, 100)

Paging response structure

// page=1 limit=10
{
"currentPage": 1,
"perPage": 10, //= limit max items on page
"totalItemsOnPage": 10, // number of items on actual page
"totalItemsCount": 25, // total items count for whole data
"firstPage": 1,
"lastPage": 3,
"nextPage": 2,
"prevPage": null,
"data": [
...
]
}

Paging examples

Description

Page query parameters

Page 2, data per 20 items

page=2&limit=20

Page 3, default limit

page=3