Skip to content

Pagination

Klozeo uses cursor-based (keyset) pagination — not offset-based. This prevents duplicate or skipped results when data changes between pages.

ParameterDefaultMaxDescription
limit501000Results per page
cursorOpaque token from previous response
{
"leads": [...],
"next_cursor": "eyJpZCI6ImNsXzAxMjM...",
"has_more": true,
"count": 50
}
FieldDescription
next_cursorPass as cursor in next request. Null if no more pages.
has_moretrue if there are more results
countNumber of results in this page
Terminal window
# First page
curl "https://api.klozeo.com/api/v1/leads?limit=50" \
-H "X-API-Key: sk_live_your_key"
# Next page
curl "https://api.klozeo.com/api/v1/leads?limit=50&cursor=eyJpZCI6ImNsXzAxMjM..." \
-H "X-API-Key: sk_live_your_key"
  • The cursor is opaque — do not parse or construct it manually.
  • Cursors encode the current sort position. Changing sort_by or sort_order invalidates the cursor.
  • Filters are preserved across pages — pass the same filter params with each request.
  • For complete dataset export without pagination, use the Export endpoint instead.