How a search works
A search runs in the background and takes about two to three minutes. The API gives you a request_id
straight away, and you ask for the outcome when you are ready.
The three steps
Submit
POST /searches takes your objective and an
Idempotency-Key. It charges the search fee and answers 202 with the request_id. The response
also carries a Location header with the URL to poll.
Poll
GET /searches/{request_id} tells you where the search is.
Wait 10 seconds between reads. The Retry-After header says so while the search is running.
Buy
POST /results returns the full, unmasked phone
numbers of a DONE search and charges for them once.
Statuses
DONE and FAILED never change. A failed search is a successful read, so the HTTP status is 200.
What a finished search shows
- Phone numbers show their first and last three digits. A number that cannot be masked safely comes
back
nullor fully starred, never in the clear. results_cost_tomanis what Buy results will charge.results_chargedturnstrueonce you have bought the results.- A search that matched nobody is a real answer:
matched_countis0and the fee is not refunded.
What a failed search shows
refunded is true once your fee is back in the wallet. If it is false, the refund is not confirmed
yet: read the search again.
One search at a time
An account runs one search at a time. Submitting a second one while the first is IN_PROGRESS answers
409 with code 4092, and nothing is charged. Wait for the first to finish.
How long results are kept
A finished search can be read and bought for 7 days. After that, both calls answer 404 (code 4043).

