Pagination
List endpoints return paginated results. The response includes a meta object with pagination details.
Request parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number (default: 1) |
Response meta object
Paginated responses include a meta object:
| Field | Description |
|---|---|
pagination.page |
Current page number |
pagination.items |
Number of items per page |
pagination.pages |
Total number of pages |
pagination.count |
Total number of records |
{
"meta": {
"lookup_mode": "live",
"pagination": {
"page": 1,
"items": 20,
"pages": 5,
"count": 100
}
}
}
Example
For any API request that needs to be paginated, simply add a page parameter.
# Fetch page 2 of orders
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
"https://api.staging.pro.tito.io/{account_slug}/{event_slug}/orders?page=2"