PCX uses cursor-based pagination throughout. There is no offset-based (page=2) pagination.
How it works
- Make your first request — optionally pass
limit to control page size
- If there are more results, the response includes a
last_evaluated_key (or lastEvaluatedKey) field
- Pass that value back as a query parameter on your next request to get the next page
- When
last_evaluated_key is null (or absent), you have reached the last page
Request
Response
Pagination cursors are opaque tokens. Do not attempt to parse, modify, or construct them manually — they are base64-encoded and will cause a 400 if malformed.
Key naming inconsistency
Different services use slightly different field names for the pagination cursor — this is a known inconsistency: