Xola

Pagination

By default, all API endpoints return a maximum of 20 records per page. You can change the number of records returned by passing a limit parameter in the request URL parameters (up to a max of 100).

Every paginated response is in the following format:

{
  "data": [
    // Array of objects
  ],
  "paging": {
    "next": "/api/purchases?seller=584f61efcb2256a6132c6e04&limit=50&skip=50",
    "total": 500,
  }
}

The data attribute contains all the objects being requested. The paging objects contains two attributes: next and total. You can get further data by following the next attribute, stopping when it is is null.