Pagination
List endpoints are page-based. The server caps per_page
at 100 and always returns the total row count so
iterators can stop cleanly. SDKs expose both the raw page and a
lazy iterator.
Page shape
Every paginated list returns this envelope:
Iterate, don't paginate manually
In every language, the SDK ships a lazy iterator that fetches the next page only when the current one is exhausted. Use it by default — you stop getting surprised by off-by-one boundaries and you can early-exit without caring about cleanup.
When you want the raw page
If you need the envelope itself — the total count for
a progress bar, or deterministic page numbers for
caching — call laws.list(country, page=N, per_page=M)
directly. Same with webhooks.deliveries(endpoint_id, page=N).
laws.list and
laws.search. reforms.list returns a
bounded array for a single law (usually < 30). Webhook
deliveries are paginated but short-lived (default window 30 days).