API Reference
Pagination
How to paginate through collections
Pagination
The items endpoint returns paginated results.
Parameters
| Parameter | Default | Max | Description |
|---|---|---|---|
limit | 100 | 100 | Items per page |
offset | 0 | - | Items to skip |
Example
# First page
curl "https://bunmori.com/api/public/my-domain/collections/posts/items?limit=10&offset=0"
# Second page
curl "https://bunmori.com/api/public/my-domain/collections/posts/items?limit=10&offset=10"Response
{
"items": [...],
"pagination": {
"total": 156,
"limit": 10,
"offset": 0,
"hasMore": true
}
}