Learn how pagination works in live, async, and schedule execution modes.
live
mode: You handle pagination manually using page parameters and headersasync
/schedule
modes: Pagination is automatic - you just specify how many results you wantasync
and schedule
modes, pagination is completely automated:
max_results
parameter - Specify how many total results you wantmax_results
has a default value for each action (see API Reference).
There’s also a maximum limit you cannot exceed (0 <= x <= max_value
).max_results: 100
in your requestpage_size
status: RUNNING
until the final SUCCEEDED
callbacklive
mode, you control pagination manually for real-time responses:
null
if you’re on the first pagenull
if you’re on the last pageX-Pagination-Next
header to navigate pages. While you could manually construct URLs with page numbers, using the provided headers ensures compatibility with future pagination systems.X-Pagination-Previous
: null
(first page)X-Pagination-Next
: https://api.captaindata.com/v4/actions/salesnavigator-search-company-employees/run/live?page=2
X-Pagination-Next
:
X-Pagination-Next
returns null
, indicating you’ve reached the last page.