Skip to main content
Entity Search results are read from an asynchronous task. The server does not return pages or cursors. Your client tracks a numeric position, pts, and advances it by the count returned from each fetch.

Lifecycle

done means no more results will be produced. It does not mean your client has already read every available result. Finish only after status is done and your local pts is greater than or equal to ready_count.

Fetch positions

Use GET /v1/entity-search/fetch with: Each response includes: To fetch the next batch, set the next pts to the previous pts + count.

Read loop

Practical rules

  • limit controls the total number of deduplicated leads the task can produce.
  • num controls only the maximum number of results returned by one fetch call.
  • A fetch response can return fewer than num entities.
  • If ready_count is 0, wait and poll again unless the task is done.
  • If fetch returns 416, call status and resume from a valid pts within 0 <= pts < ready_count.
  • Store leads_search_id with your own job record. It is required for status checks, fetches, support, and later dedup_lev8_leads requests.