Paging

Results are newest first. Page with cursors: they never skip or repeat a job, even while the index changes.

  1. 1
    Call search with a limit (1-100).
  2. 2
    If next_cursor is not null, call again with cursor=<next_cursor> and the same filters.
  3. 3
    Stop when next_cursor is null.
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:
        break
offset (up to 5,000) also works, for clients built around it, but can’t be combined with cursor.