Pagination

List endpoints in the Products Manager API return paginated results. By default, pages contain 20 items. You can request up to 100 items per page.

Page-based pagination

Most list endpoints support page and per_page query parameters:

Paginated request

GET
/products
curl "https://api.productsmanager.app/api/v1/products?page=2&per_page=50" \
  -H "Authorization: Bearer {api_key}"

Pagination metadata

Every list response includes a meta object:

Paginated response

{
  "data": [...],
  "meta": {
    "page": 2,
    "per_page": 50,
    "total": 1234,
    "total_pages": 25
  }
}
FieldDescription
pageCurrent page number (1-indexed)
per_pageNumber of items per page
totalTotal number of items matching the query
total_pagesTotal number of pages

Iterating all pages

To retrieve all results, loop until you reach the last page:

Fetch all pages

# Page 1
curl "https://api.productsmanager.app/api/v1/products?page=1&per_page=100" \
  -H "Authorization: Bearer {api_key}"

# Page 2
curl "https://api.productsmanager.app/api/v1/products?page=2&per_page=100" \
  -H "Authorization: Bearer {api_key}"

# Continue until page == total_pages

Was this page helpful?