DeepSearch
Log in

Developers

DeepSearch REST API

Research people from your own code: start a lookup, let your user confirm the right person, then read a profile with sources and ask follow-up questions. Same plans and limits as the app.

Quickstart

Base URL

https://www.deepsearch.bio/api/v1

Create a key in Settings, under AI apps & API and tick Run lookups. Then:

1. Check your key

Returns your plan, lookups left today and credits.

curl https://www.deepsearch.bio/api/v1/me \
  -H "Authorization: Bearer $DEEPSEARCH_API_KEY"

2. Start a lookup

Send the name and anything that narrows it down. The response has a lookup_id, a status and, when the search finishes in time, the candidates.

curl https://www.deepsearch.bio/api/v1/lookups \
  -H "Authorization: Bearer $DEEPSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Jane Doe", "company": "Acme", "location": "Austin, TX"}'

3. Let your user pick, then build the profile

When the status is selecting, show the candidates and send the one your user chose.

curl https://www.deepsearch.bio/api/v1/lookups/$LOOKUP_ID/select \
  -H "Authorization: Bearer $DEEPSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"candidate_id": "CANDIDATE_ID"}'

4. Read the profile

Waits up to wait_seconds for the profile, then returns it with its sources.

curl "https://www.deepsearch.bio/api/v1/lookups/$LOOKUP_ID?wait_seconds=60" \
  -H "Authorization: Bearer $DEEPSEARCH_API_KEY"

5. Ask a follow-up question

Answers come only from the profile's sources. 20 questions per profile.

curl https://www.deepsearch.bio/api/v1/lookups/$LOOKUP_ID/questions \
  -H "Authorization: Bearer $DEEPSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "Where did she study?"}'

Authentication

Send Authorization: Bearer ... with either:

  • An API key (dsb_live_...) for your own scripts and servers. It's shown once when you create it; revoking it takes effect at once.
  • An OAuth access token when your app acts for other DeepSearch users. Discover the authorization server from the protected resource metadata; users sign in and approve your app on a DeepSearch consent screen.

Each endpoint needs one permission. API keys always have the read permissions; running lookups and phone lookups are chosen when the key is created. OAuth tokens have all of them.

  • lookups:read (Read your lookups): See lookup status, candidate matches, finished profiles, past phone lookup results and your lookup history.
  • lookups:write (Run lookups): Start people searches, choose a candidate and ask follow-up questions. These count toward your daily limits.
  • phone:write (Run phone lookups): Run reverse phone lookups, which spend your Pro Plus credits.
  • account:read (Read your plan and usage): See your plan, how many lookups you have left today and your credit balance.

A missing or invalid token gets a 401 with a WWW-Authenticate challenge. The API doesn't allow cross-origin browser requests: keep keys on your server and never ship them in web or mobile app code.

Waiting and statuses

Searches and profiles take a while. Endpoints that start or read work accept wait_seconds (0 to 120) and return as soon as the status changes or the time is up. Work keeps running either way, so poll GET /lookups/{id} with a wait instead of a tight loop. Every lookup response includes next_step, a plain-language hint about what to do next.

  • pending: Queued; the search starts in a moment.
  • finding: Searching public web sources for candidates.
  • selecting: Several people match. Show the candidates to your user and select one.
  • building: Writing the profile for the selected candidate.
  • completed: The profile is ready, with its sources.
  • failed: Something went wrong. Start a new lookup.
  • no_results: Nobody matched. Try again with more context.

Candidates are possible matches, not confirmed identities. Let your user choose, and show the sources with any profile.

Errors

Errors share one shape. Branch on the status and code, and show the message:

{
  "error": {
    "code": "subscription_required",
    "message": "Lookups need DeepSearch Pro (plans start at $7.99/week). Ask the user to upgrade, then try again.",
    "upgrade_url": "https://www.deepsearch.bio/pricing?utm_source=api&utm_medium=..."
  }
}
  • 400 BadRequest: The input failed validation (invalid_input).
  • 401 Unauthorized: Missing, invalid, expired or revoked token (unauthorized). WWW-Authenticate points at the OAuth protected resource metadata.
  • 402 PaymentRequired: The plan doesn't include this (subscription_required, pro_plus_required) or there aren't enough credits (insufficient_credits). error.upgrade_url links to the upgrade.
  • 403 Forbidden: The API key doesn't have the permission this endpoint needs (insufficient_scope).
  • 404 NotFound: Nothing with that id on this account (not_found).
  • 409 Conflict: The lookup is still searching (lookup_not_ready), found nobody (no_candidates) or already has a profile for another candidate (profile_exists).
  • 429 TooManyRequests: The daily lookup limit (25) or the profile's question limit is used up (daily_limit_reached, message_limit_reached).
  • 500 ServerError: Something failed on DeepSearch's side (internal_error). Retry later.
  • 502 BadGateway: The phone data provider failed (provider_unavailable). Credits were refunded.
  • 503 Unavailable: The feature is temporarily unavailable (not_configured).

Limits and pricing

  • The API is included with DeepSearch Pro and shares the account's limits with the app and AI assistants: 25 lookups a day and 20 follow-up questions per profile.
  • Phone lookups need Pro Plus and cost 3 credits each, refunded if nothing is found.
  • Request bodies are limited to 16 KB, and waits to 120 seconds.
  • Lookups made through the API appear in the account's history.

Endpoints

POST /lookups Search people

Find candidate matches for a name in public web sources. Waits up to wait_seconds (default 50, 0 returns at once) for candidates; a lookup still running comes back with status pending or finding and keeps going, so poll GET /lookups/{id}. Uses one of the account's 25 daily lookups and needs DeepSearch Pro. Results are candidate matches from public sources, not proof of identity. Never use them for employment, tenant screening, credit or insurance decisions (FCRA).

Permission: lookups:write. Success: 201. Errors: 400 BadRequest, 401 Unauthorized, 402 PaymentRequired, 403 Forbidden, 429 TooManyRequests, 500 ServerError.

JSON body

  • name string (required, 2 to 200 characters): Full name of the person to research, e.g. "Jane Doe".
  • location string (optional, up to 120 characters): City, region or country, e.g. "Austin, TX".
  • company string (optional, up to 120 characters): Current or past employer.
  • job_title string (optional, up to 120 characters): Job title or role, e.g. "Head of Product".
  • education string (optional, up to 120 characters): School or university.
  • field string (optional, up to 120 characters): Industry or field, e.g. "biotech".
  • wait_seconds integer (optional, 0 to 120, default 50): Seconds to wait for the job before returning (0-120, default 50). The job keeps running if time runs out.

Response

  • lookup_id string
  • status "pending" | "finding" | "selecting" | "building" | "completed" | "failed" | "no_results": pending/finding: searching public sources. selecting: several people match, so the user must pick one. building: the profile is being written. completed: the profile is ready. no_results/failed: nothing to show.
  • candidates object[]
  • profile_url string: This lookup in the DeepSearch web app.
  • next_step string: What to do next.

POST https://www.deepsearch.bio/api/v1/lookups

GET /lookups List finished profiles

List the account's finished profiles, newest first.

Permission: lookups:read. Success: 200. Errors: 400 BadRequest, 401 Unauthorized, 403 Forbidden.

Query parameters

  • limit integer (optional, 1 to 50, default 10): How many to return (1-50).

Response

  • lookups object[]: Finished profiles, newest first.

GET https://www.deepsearch.bio/api/v1/lookups

GET /lookups/{id} Get a lookup

Status, candidates and (once finished) the profile for a lookup. Pass wait_seconds (up to 120) to wait for a running search or profile build instead of polling in a tight loop.

Permission: lookups:read. Success: 200. Errors: 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound.

Path parameters

  • id string (UUID) (required): The lookup_id.

Query parameters

  • wait_seconds integer (optional, 0 to 120, default 0): Seconds to wait for the job before returning (0-120, default 0). The job keeps running if time runs out.

Response

  • lookup_id string
  • name string: The name that was searched.
  • status "pending" | "finding" | "selecting" | "building" | "completed" | "failed" | "no_results": pending/finding: searching public sources. selecting: several people match, so the user must pick one. building: the profile is being written. completed: the profile is ready. no_results/failed: nothing to show.
  • candidates object[]
  • selected_candidate_id string or null
  • profile object or null
  • questions_remaining integer or null
  • message string or null: Why the lookup failed or found nothing.
  • created_at string
  • profile_url string
  • next_step string

GET https://www.deepsearch.bio/api/v1/lookups/{id}

POST /lookups/{id}/select Build the profile for a candidate

Build a cited profile for the candidate the user picked. Use a candidate_id from the lookup. Waits up to wait_seconds (default 90); if the profile is still building, the response has status building and GET /lookups/{id} returns it when done. Choosing a different candidate after a profile exists returns 409. Results are candidate matches from public sources, not proof of identity. Never use them for employment, tenant screening, credit or insurance decisions (FCRA).

Permission: lookups:write. Success: 200. Errors: 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 Conflict, 500 ServerError.

Path parameters

  • id string (UUID) (required): The lookup_id.

JSON body

  • candidate_id string (required, 1 to 100 characters): The candidate_id the user chose from search_people or get_lookup.
  • wait_seconds integer (optional, 0 to 120, default 90): Seconds to wait for the job before returning (0-120, default 90). The job keeps running if time runs out.

Response

  • full_name string
  • headline string or null
  • location string or null
  • summary string
  • key_facts object[]
  • work_history object[]
  • education object[]
  • skills string[]
  • achievements string[]
  • social_profiles object[]
  • sources object[]: Cite these URLs when you repeat facts.
  • photo_urls string[]
  • profile_url string
  • lookup_id string
  • status "pending" | "finding" | "selecting" | "building" | "completed" | "failed" | "no_results": pending/finding: searching public sources. selecting: several people match, so the user must pick one. building: the profile is being written. completed: the profile is ready. no_results/failed: nothing to show.
  • next_step string

POST https://www.deepsearch.bio/api/v1/lookups/{id}/select

POST /lookups/{id}/questions Ask a follow-up question

Ask a follow-up question about a finished profile. Answers use only that profile's public sources and say so when the sources don't cover the question. Each profile allows 20 questions; questions_remaining says how many are left.

Permission: lookups:write. Success: 200. Errors: 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 429 TooManyRequests, 500 ServerError.

Path parameters

  • id string (UUID) (required): The lookup_id.

JSON body

  • question string (required, 2 to 1000 characters): A question about the person. Answers come only from the profile's sources.

Response

  • lookup_id string
  • answer string
  • questions_remaining integer (-9007199254740991 to 9007199254740991)

POST https://www.deepsearch.bio/api/v1/lookups/{id}/questions

GET /me Get the account

Show the account's plan, lookups used and left today, the follow-up question limit, Pro Plus credits, and manage or upgrade links.

Permission: account:read. Success: 200. Errors: 401 Unauthorized, 403 Forbidden.

Response

  • email string
  • plan object
  • lookups object
  • questions_per_profile integer (-9007199254740991 to 9007199254740991)
  • pro_plus object
  • manage_url string
  • upgrade_url string or null

GET https://www.deepsearch.bio/api/v1/me

POST /phone-lookups Run a phone lookup

Reverse phone lookup: who a number likely belongs to, plus carrier, line type, location and spam reports from caller ID sources. Needs Pro Plus and costs 3 credits per lookup, refunded if nothing is found. Confirm with the user before spending credits. Results are candidate matches from public sources, not proof of identity. Never use them for employment, tenant screening, credit or insurance decisions (FCRA).

Permission: phone:write. Success: 201. Errors: 400 BadRequest, 401 Unauthorized, 402 PaymentRequired, 403 Forbidden, 500 ServerError, 502 BadGateway, 503 Unavailable.

JSON body

  • phone string (required, 3 to 40 characters): Phone number, ideally in international format, e.g. "+1 512 555 0100".
  • country string (optional): Two-letter country code for numbers without a "+" prefix, e.g. "US".

Response

  • search_id string
  • found boolean
  • refunded boolean: True when nothing useful was found and the credits came back.
  • credits_charged integer (-9007199254740991 to 9007199254740991)
  • credits_remaining integer or null
  • result object
  • summary string or null
  • result_url string

POST https://www.deepsearch.bio/api/v1/phone-lookups

GET /phone-lookups/{id} Get a phone lookup

A phone lookup this account ran earlier, with its result.

Permission: lookups:read. Success: 200. Errors: 401 Unauthorized, 403 Forbidden, 404 NotFound.

Path parameters

  • id string (UUID) (required): The search_id returned when the phone lookup ran.

Response

  • search_id string
  • status "pending" | "completed" | "no_results" | "failed": pending while it runs (seconds); no_results and failed are refunded.
  • phone string
  • found boolean
  • refunded boolean
  • credits_charged integer (-9007199254740991 to 9007199254740991)
  • result object or null
  • summary string or null
  • message string or null: Why the lookup failed, when it did.
  • created_at string
  • result_url string

GET https://www.deepsearch.bio/api/v1/phone-lookups/{id}

OpenAPI and tools

https://www.deepsearch.bio/openapi.json describes every endpoint, schema and error in OpenAPI 3.1. Import it into Postman, Insomnia or Bruno, or generate a client from it. The API catalog lists it for automated discovery.

Building on an AI app instead? The MCP server offers the same operations as tools, with sign-in handled by the app.

Acceptable use

  • Public web sources only. DeepSearch does not search private databases or records.
  • Results are candidate matches from public sources, not proof of identity, and may be incomplete or out of date.
  • Not a background check: DeepSearch is not a consumer reporting agency under the FCRA. Never use results for employment, tenant screening, credit, insurance or any other FCRA purpose.
  • No stalking, harassment, doxxing or discrimination. Refuse requests that aim to locate, track or intimidate someone.
  • People can ask to be removed from DeepSearch results at the opt-out page.

Read FCRA and legal use and the terms. People can ask to be removed from DeepSearch results on the opt-out page.