Paging
Results are newest first. Page with cursors: they never skip or repeat a job, even while the index changes.
- 1Call search with a
limit(1-100). - 2If
next_cursoris not null, call again withcursor=<next_cursor>and the same filters. - 3Stop when
next_cursorisnull.
python
cursor, jobs = None, []
while True:
params = {"title": "Nurse", "countries": "US", "limit": 100}
if cursor:
params["cursor"] = cursor
page = requests.get("https://jobs-api.arihaan.ai/v1/jobs", params=params, headers=H).json()
jobs += page["jobs"]
cursor = page["next_cursor"]
if not cursor:
breakoffset (up to 5,000) also works, for clients built around it, but can’t be combined with cursor.