Skip to main content

One post tagged with "pagination"

View All Tags

Matt Carter

The initial pagination paradigm utilized by the API, while functional was lightweight but could be improved.

Old Payload

For page 10

{
"data": [],
"page": 10
}

New Payload

For page 10, limit 100. Keep in mind that page 0 is the first page so our totalNumPages will be 1 less.

{
"data": [],
"page": 10,
"totalCount": 4200,
"totalNumPages": 41,
"nextPage": 11,
"prevPage": 9
}

Read more about pagination in Overview.