Guides

Pagination

Understand paginated SellApp API responses.

SellApp API list responses are paginated. By default, responses limit results to fifteen items. You can increase that limit up to one hundred by adding a limit query parameter to your request.

Whenever an API response returns a list of objects, pagination is supported. Use the page query parameter to browse result pages.

Example using invoices

In this example, we request page 10 with a limit of 20 results per page. The response returns twenty invoices and the last_page attribute tells us we have not yet reached the end of the result set.

Name
limitinteger
Description

The response limit of the API resource you are accessing.

Name
pageinteger
Description

The page number you are attempting to access.

Manual pagination using cURL
curl --request GET \
  --url 'https://sell.app/api/v1/invoices?page=10&limit=20' \
  --header 'Authorization: Bearer {ApiKeyHere}' \
  --header 'Content-Type: application/json'
Paginated response
{
  "data": [
    {
      "id": "1"
    },
    {
      "id": "2"
    },
    {
      "id": "3"
    }
  ],
  "meta": {
    "current_page": 10,
    "from": 181,
    "last_page": 42,
    "links": [
      // ...
    ]
  }
}

On this page