> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seekout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search

> Find people across public, GitHub, academic, healthcare, nursing, ATS, and internal talent sources, then read a full profile.

Search finds people across public, GitHub, academic, healthcare, nursing, and authorized ATS or internal talent sources in one request. A preview without requested `facets` is free. Full profiles use credits.

## Preview search

`POST /v2/candidates/search` takes `schema_version` (`public_developer_candidate_search_request.v2`) and a `searches` array. Each member names one `source` and a `query` of free text and typed filters. Public searches need at least one criterion beyond `regions`. Set `include` to `preview` and leave out `facets` so the call does not spend credits.

| `include` | What each row carries | Charge |
| - | - | - |
| `preview` (default) | Keys only: the master `key`, `related_keys`, and `candidate` | Free |
| `summary` | The same keys, plus the person's name, title, company, and location, and `match_evidence` | Free |
| `full_profile` | The full profile beside the keys | Charged for each delivered person |

The `Idempotency-Key` header is required. `include: full_profile` requires the Profiles V1:Unlock access set (scope `profiles.v1:unlock`). Optional `page_size` (1 to 25) sets the most people each page returns, for this page and every continuation. With `include: full_profile` it is also how many credits are held before the search runs. Omit it for the default page of 25.

```bash theme={null}
curl --request POST "https://developer-api.seekout.io/v2/candidates/search" \
  --header "Authorization: Bearer $SEEKOUT_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $(uuidgen)" \
  --data '{
    "schema_version": "public_developer_candidate_search_request.v2",
    "searches": [
      {
        "source": "public",
        "query": {
          "current_titles": ["Software Engineer"],
          "regions": ["north_america"]
        }
      }
    ],
    "include": "preview"
  }'
```

A 200 response lists ranked people. Every row carries `key` (the person's master key), `related_keys`, and `candidate`, the key that names that person in contacts and person matches. `related_keys` are keys for matching against your own records, filtered to the sources you may use and capped at 50. `results[].link_status: "failed"` marks a person whose keys could not be linked.

```json theme={null}
{
  "schema_version": "candidate_search_response.v1",
  "search_id": "sset_example",
  "include": "preview",
  "results": [
    {
      "rank": 1,
      "key": "example_master_key",
      "related_keys": [
        { "source": "public", "key": "example_profile_key" }
      ],
      "candidate": { "source": "public", "key": "example_profile_key" },
      "sources": ["public"],
      "matched_sources": ["public"]
    }
  ],
  "source_counts": [
    { "source": "public", "region": "north_america", "count": 4210, "count_kind": "exact" }
  ],
  "pagination": { "cursor": "ucur_example", "has_more": true },
  "billing": { "charge_units": 0, "include": "preview" }
}
```

`source_counts` gives one count per source and per public region, before exclusions. It is free, and it is never a total: the counts are not added together, because one person can match several sources. `count_kind: "approximate"` marks a count that can move while the search is paged.

Summary facets run only when you ask for them. A preview that omits `facets`, or sends `facets: null`, returns no facets and is not charged for them. Send a `facets` object (`mode: summary`) to request source-scoped facet counts. That is a separate paid option, needs facet summary access, and is checked against your balance before the search runs. If the facet call fails or takes longer than 20 seconds, the search still returns its people, `facets` is null, `facet_status` is `unavailable`, and the facet summary is not charged.

To see the price first, send `quote_only: true`: the answer is a worst-case quote and nothing is held or charged. To cap a search, send `max_credits`. A quote above it is refused with `422` `credit_limit_too_low` before any hold.

Search returns at most `page_size` people and an opaque cursor when more results are available. Send that cursor to [`GET /v1/candidates/search/pages?cursor=…`](https://docs.seekout.com/developer-platform/api-reference/page-candidate-search). The request carries the cursor and nothing else: the `page_size` and detail level you chose are recorded on the cursor, so every later page has the same size and row shape. The server keeps one stable ranked snapshot.

Use `GET /v1/search/sources` with the same key to read your effective pagination limits. A preview search delivers at most 200 people. When that limit ends the search, the last page has `has_more: false`, a null `cursor`, and `preview_limit_reached: true`. A new search starts a new allowance of 200. `include: full_profile` is a separate paid search, not a continuation of the preview.

With `include: full_profile`, only the people delivered on each page are read and settled. Later people do not spend credits until their page is requested. A page can hold fewer people than `page_size`: a person whose profile came back empty, or whose profile would take the response past the 2 MiB delivery limit, is released. That person is not returned, not charged, and counted in `billing.released_units`. The cursor still moves past them.

ATS filters include nested application criteria and tags. Internal talent filters include department, manager, internal skills, and organization size. Both use the authenticated organization's setup, and neither accepts a request-supplied organization as authority. An ATS member searches your organization's active ATS connection, so you do not choose one. Omit `connection_id`: a value other than the active connection is refused with `403` `invalid_source_binding`.

## Find profiles by key

In a source member's `query`, `profile_keys` accepts up to 25 exact source profile keys, including keys returned in `related_keys`. Select the matching source. ATS members also accept original `ats_candidate_ids`. If both key lists are provided, a result must match both. Other query filters still apply.

```bash theme={null}
curl --request POST "https://developer-api.seekout.io/v2/candidates/search" \
  --header "Authorization: Bearer $SEEKOUT_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $(uuidgen)" \
  --data '{
    "schema_version": "public_developer_candidate_search_request.v2",
    "searches": [{
      "source": "ats",
      "query": {"profile_keys": ["example_ats_profile_key"]}
    }],
    "include": "preview"
  }'
```

## Where people worked, and who to leave out

Company and title names take a scope. `current_companies` is the current role. `most_recent_past_companies` is the role just before it. `any_past_companies` is any past role. `current_or_past_companies` is any role at all. Each has an `excluded_` form that leaves those people out, and titles work the same way (`current_titles`, `most_recent_past_titles`, `any_past_titles`, `current_or_past_titles`). `past_companies` and `past_titles` keep their meaning, the most recent past role only. They are deprecated in favor of the `most_recent_past_` names.

Former employees of a company are `current_or_past_companies` with the same name in `excluded_current_companies`. To exclude places, name the area to search with `states` or `countries` and the places to leave out with `excluded_locations`. `locations` beside `excluded_locations` is refused with `400 invalid_request` and `reason: location_include_and_exclude`.

Every name is bound to one company, title, or place. An excluded place that matches no place is refused with `reason: location_not_resolved` and the name in `unresolved_names`. Other names that match nothing are searched as text by default and listed in `entity_resolution.fallback`. Send `name_resolution: exact` to refuse them instead (`reason: entity_filter_not_honored`). To search on exact entities rather than names, see [Entity resolution](https://docs.seekout.com/developer-platform/guides/entity-resolution.md).

```bash theme={null}
curl --request POST "https://developer-api.seekout.io/v2/candidates/search" \
  --header "Authorization: Bearer $SEEKOUT_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $(uuidgen)" \
  --data '{
    "schema_version": "public_developer_candidate_search_request.v2",
    "searches": [
      {
        "source": "public",
        "query": {
          "regions": ["north_america"],
          "current_titles": ["Software Engineer"],
          "current_or_past_companies": ["Example Corp"],
          "excluded_current_companies": ["Example Corp"],
          "states": ["California"],
          "excluded_locations": ["Los Angeles"],
          "name_resolution": "exact"
        }
      }
    ],
    "include": "preview"
  }'
```

## Leave people out with exclude

`exclude` lists searches whose matches are removed from your results. Each item has `kind: inline`, a `label` that is unique in the request, and a `search` in the same shape as an entry of `searches`. A person who matches any item is removed, including when the match is through a known link to another source. Removed people are not shown and are claimed on nothing: they use no preview quota and no delivery quota, and they are never charged.

The response reports what the exclusions did. `exclusions.removed` counts removals across every page of the search, not distinct people. `exclusions.items` lists each label as `complete`, or `partial` once any check on it has failed. Each person carries `exclusion_checks`, one `checked` or `not_checked` verdict per label. A request without `exclude` has neither field.

* When a check fails, everyone on that page is `not_checked` for that exclusion and is shown unless another exclusion removes them.
* Pages can be short. A page may return fewer people than `page_size` with `has_more: true`, because removed people leave gaps the search keeps filling on the next request.
* Limits: 10 exclusions and 10 exclusion units in a request, and the 64 KiB body limit. A public item with `regions` omitted counts as six units, so name a region.
* Refused with `422` `candidate_search_unsupported`: `include: full_profile`, an `ats` or `internal_talent` item, and an item that sets `profile_keys`.
* Facet counts and `source_counts` are before exclusions.

## Add profile sections with enrich

A person can hold a profile in more than one source. `enrich` lists the sources whose sections to add to each person the page delivers: `public`, `github`, `academic`, `healthcare` and `nursing`. There is no separate enrichment call. It needs `include: full_profile`.

Each added section arrives apart from the profile the person matched: `results[].enriched_sources` names the sources and `results[].sections` holds them. A section is read by a key the person already has in that source, so a person with no key in a source gets no section for it.

Enrichment is free. A section already delivered stays free inside the 14-day profile window, so enrichment adds no charge line and does not count against `max_credits`. The page's `enrichment` object reports `status` (`complete`, `partial`, `unavailable` or `pending`), `sections_delivered` and, when a source was not read or not shown, `sources_unavailable`. A source your key is not entitled to is refused with `403` `source_not_entitled`.

These are refused with `422` before anything is held: `enrich` on a preview, on a search that cannot be paged, and on any search with an ATS or internal talent source; and `ats` or `internal_talent` in `enrich`.

Without `enrich`, a `full_profile` person carries only the sections of the sources they matched.

## Pages prepared ahead with prefetch

The next pages are prepared in the background while you read the current one, so the next page request is usually faster. It is on by default. Send `prefetch: false` to turn it off for that search. A profile prepared ahead is charged only when a page delivers it, through the same quote and settlement as any other profile on that page. A person who is prepared and never delivered is not charged.

Every page carries a `prefetch` object. `served` says what this page took from prepared rows: `none`, `keys`, `profiles`, or `partial`. `next` says whether the page after this one is being prepared: `scheduled`, `off`, `budget_exhausted`, or `not_applicable`. Clients that do not read the object can ignore it.

## From search to a full profile

Copy `results[0].candidate` into `POST /v2/person-matches` with `enrich_open: true`. See the [quickstart](https://docs.seekout.com/developer-platform/quickstart.md) and the [API reference overview](https://docs.seekout.com/developer-platform/api-overview.md).

## Sources

`GET /v1/search/sources` lists the indexes this key may use and the filters each one accepts. ATS and internal talent need a separate entitlement and are off by default.

## From search to contacts

The row's `candidate` is what `POST /v1/contacts` accepts, and it is required. The reply echoes `candidate` as sent. An unknown key, an `ats` candidate, or a person with no public profile is `404` `person_not_found`. Retrieve one person's email or phone from [contacts](https://docs.seekout.com/developer-platform/guides/contacts.md), or a batch of them from [contact jobs](https://docs.seekout.com/developer-platform/guides/contact-jobs.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.