> For clean Markdown of any page on these docs, append `.md` to the page URL
> Full documentation index: https://you.com/docs/llms.txt
> Search over these docs using a free, read-only MCP server (it is the best way to pick the right API(s) for the job and understand how to use them): https://you.com/docs/_mcp/server
> Access web search, web fetch, and deep research tools using our product MCP server: https://api.you.com/mcp (use `/mcp/research` and `/mcp/finance` paths for Research and Finance Research respectively)
> Call live Web Search for free: https://api.you.com/mcp/free
> OpenAPI spec index: https://you.com/docs/openapi.json
> How to authenticate: https://you.com/docs/using-the-api/authentication
> Changelog: https://you.com/docs/changelog
> Full onboarding instructions for agents: https://you.com/SKILL.md

# Enrich

POST https://ydc-index.io/v1/enrich
Content-Type: application/json

Enriches person records (`pe_...`) or company records (`co_...`) returned by `POST /v1/search` with `knowledge: {"mode": "pro"}`.

Each returned person or company record uses the same fields as its search list row, plus `enrich_status`, `attribution`, and delivered values under `enriched`. Send 1–25 record IDs per request—all people (`pe_...`) or all companies (`co_...`). Mixing person and company IDs in `ids`, or passing a list ID (`pl_...` or `cl_...`), returns `422`. One ID failing does not fail the rest of the batch.

Set a client timeout of at least 60 seconds to accommodate the 55-second server timeout budget for larger batches. The server automatically retries safe, unbilled upstream `429` and `503` responses; retry transient `429` or `502` responses from this endpoint with exponential backoff.

Billing is per delivered record: records with `enriched` values bill as enriched people or enriched companies, and delivered records without `enriched` values (including `enrich_values: false` previews) bill as unenriched records. `not_found` and `empty` IDs are not billed. See [Pricing](https://you.com/pricing) for rates.

Reference: https://you.com/docs/api-reference/enrich/v1-enrich

## Authentication

- `X-API-Key` header (required) — A unique API Key is required to authorize API access. [Get your API Key with free credits](https://you.com/platform).

## Request

### Body (application/json)

This endpoint expects an EnrichRequest.

- `ids` (list of string, required) — One to 25 record identifiers returned by `POST /v1/search` with `knowledge: {"mode": "pro"}`: either all `enrich_person_id` (`pe_...`) values or all `enrich_company_id` (`co_...`) values. Mixing person and company IDs, or passing a list ID (`pl_...` or `cl_...`), returns `422`. Duplicate IDs are deduplicated before enrichment.
- `enrich_values` (boolean, optional, default: true) — When `true` (default), delivers available contact and company values under `enriched`. When `false`, returns the profile fields and `is_enrichable` availability flags without delivering paid values.

## Response

### 200

Enrichment results for the requested IDs, plus request metadata and unit usage counts.

- `results` (list of EnrichResponseResultsItems, required) — Enrichment results in the order of deduplicated `ids`. Each item is a person record or company record matching its ID prefix.
- `metadata` (EnrichMetadata, required)

## Errors

### 401 Unauthorized Error

Unauthorized. Problems with API key.

- `detail` (string, optional) — Error detail message.

### 403 Forbidden Error

Forbidden. API key lacks scope for this path.

- `detail` (string, optional) — Error detail message.

### 404 Not Found Error

Not Found. The Enrich API is not enabled for this API key.

- `error` (string, required) — Error message describing why the request failed.

### 422 Unprocessable Entity Error

Unprocessable Entity. The request body is invalid or could not be parsed (`error.code` is `invalid_request`, `retryable` is `false`, and `error.details.fields` lists each failing field and reason). Triggers when `ids` is empty or has more than 25 entries, an ID does not match `^(pe|co)_[A-Za-z0-9_-]{1,64}$`, a list ID (`pl_...` or `cl_...`) was sent, people (`pe_...`) and company (`co_...`) IDs were mixed in `ids`, an unknown field (such as `count` or `offset`) was sent, or the body is not valid JSON.

- `error` (EnrichValidationErrorDetail, required)

### 429 Too Many Requests Error

Too Many Requests. The API key exceeded its rate limit or plan quota. Retry rate-limit responses with exponential backoff. Requests that return `429` are not billed.

- `message` (string, optional) — Rate-limit error message.

### 502 Bad Gateway Error

Bad Gateway. Every requested ID failed upstream. Retry with exponential backoff. Requests that return `502` are not billed.

- `error` (string, required) — Error message describing why the request failed.

## Types

### EnrichResponseResultsItems

- EnrichPersonResult: EnrichPersonResult
- EnrichCompanyResult: EnrichCompanyResult

### EnrichMetadata

- `request_id` (string, required) — Unique identifier for this request.
- `usage` (EnrichUsage, required) — Record and billable-enrichment counts broken down by entity type. An entity type is omitted when no records of that type were returned.

### EnrichValidationErrorDetail

- `code` (enum, required) — Stable error code to branch on. New codes may be added, but existing codes are never renamed or removed.
  - Allowed values: `invalid_request`
- `message` (string, required) — Human-readable explanation. The wording can change, so don't parse it.
- `retryable` (boolean, required) — Whether sending the same request again can succeed.
- `request_id` (string, required, nullable) — The You.com ID for this request, or `null` if unavailable. Include it when you contact support.
- `details` (EnrichValidationErrorDetails, optional) — Extra context for `invalid_request` validation errors.

### EnrichPersonResult

Result for an individual `pe_...` person ID. Contains the person's profile fields, `enrich_status`, `attribution`, and either `enriched` (when `enrich_values: true`) or `is_enrichable` (when `enrich_values: false`). When `enrich_status` is not `enriched`, only `enrich_person_id` and `enrich_status` are returned.

- `enrich_person_id` (string, required) — Identifier for this person record (`pe_...`).
- `enrich_status` (enum, required) — Per-ID outcome. `enriched` means the record was returned. `not_found` means the ID was not found. `empty` means the record was found but held no fields to return. `error` means upstream retrieval failed for that ID while other IDs in the batch succeeded.
  - Allowed values: `enriched`, `not_found`, `empty`, `error`
- `name` (string, optional) — Full name.
- `description` (string, optional) — Short bio.
- `title` (string, optional) — Current job title.
- `department` (string, optional) — Department for the current role.
- `sub_role` (string, optional) — Sub-role classification.
- `business_area` (string, optional) — Broader business area for the current role.
- `seniority` (string, optional) — Seniority level (for example, `Senior`, `Director`, `CXO`).
- `occupation` (string, optional) — Standardized occupation classification.
- `employer` (string, optional) — Current employer.
- `in_role_since` (string, optional) — Start date of the current role (`YYYY` or `YYYY-MM`).
- `job_summary` (string, optional) — Summary of the current role.
- `job_verified_on` (string, optional) — Date the current role was last verified (`YYYY-MM-DD`).
- `skills` (string, optional) — Listed skills, separated by semicolons.
- `industry` (string, optional) — Industry the person works in.
- `location` (string, optional) — City, region, and country.
- `metro` (string, optional) — Metropolitan area.
- `linkedin_url` (string, optional) — LinkedIn profile URL.
- `twitter_url` (string, optional) — X / Twitter profile URL.
- `github_url` (string, optional) — GitHub profile URL.
- `experience` (list of EnrichPersonExperience, optional) — Work history, one entry per role.
- `education` (list of EnrichPersonEducation, optional) — Education history, one entry per school.
- `registry_seats` (list of map from string to any, optional) — Roles in official company registries, such as director seats.
- `enriched` (EnrichPersonValues, optional) — Delivered contact values for a person record. Only present when `enrich_values` is `true` and at least one contact field is available. Empty fields are omitted.
- `is_enrichable` (EnrichPersonEnrichable, optional) — Availability flags for contact fields. Returned when `enrich_values` is `false`.
- `attribution` (list of EnrichAttribution, optional) — Data providers for this record.

### EnrichCompanyResult

Result for an individual `co_...` company ID. Contains the company's profile fields, `enrich_status`, `attribution`, and either `enriched` (when `enrich_values: true`) or `is_enrichable` (when `enrich_values: false`). When `enrich_status` is not `enriched`, only `enrich_company_id` and `enrich_status` are returned.

- `enrich_company_id` (string, required) — Identifier for this company record (`co_...`).
- `enrich_status` (enum, required) — Per-ID outcome. `enriched` means the record was returned. `not_found` means the ID was not found. `empty` means the record was found but held no fields to return. `error` means upstream retrieval failed for that ID while other IDs in the batch succeeded.
  - Allowed values: `enriched`, `not_found`, `empty`, `error`
- `name` (string, optional) — Registered company name.
- `also_known_as` (string, optional) — Alternate or trading names.
- `status` (string, optional) — Registry status (for example, `Active`).
- `company_type` (string, optional) — Legal form (for example, `Private`, `Private Limited Company`).
- `description` (string, optional) — Summary of what the company does.
- `industry` (string, optional) — Primary industry.
- `tags` (string, optional) — Keywords associated with the company.
- `naics_codes` (string, optional) — NAICS industry classification codes.
- `sic_codes` (string, optional) — SIC industry classification codes.
- `headcount` (string, optional) — Estimated employee count.
- `headcount_range` (string, optional) — Employee count band (for example, `11-50`, `1001-5000`).
- `funding_stage` (string, optional) — Latest funding stage.
- `total_raised` (string, optional) — Total funding raised.
- `funding_round_count` (string, optional) — Number of recorded funding rounds.
- `funding_rounds` (list of EnrichCompanyFundingRound, optional) — Recorded funding rounds, one entry per round.
- `established` (string, optional) — Founding or incorporation year or date.
- `ticker` (string, optional) — Stock ticker, if public.
- `location` (string, optional) — City, region, and country.
- `street_address` (string, optional) — Street address.
- `postcode` (string, optional) — Postal code.
- `metro` (string, optional) — Metropolitan area.
- `website` (string, optional) — Primary website domain.
- `other_domains` (string, optional) — Additional domains associated with the company.
- `linkedin_url` (string, optional) — LinkedIn company page URL.
- `twitter_url` (string, optional) — X / Twitter profile URL.
- `facebook_url` (string, optional) — Facebook page URL.
- `enriched` (EnrichCompanyValues, optional) — Delivered company values. Only present when `enrich_values` is `true` and at least one field is available. Empty fields are omitted.
- `is_enrichable` (EnrichCompanyEnrichable, optional) — Availability flags for enrichable company fields. Returned when `enrich_values` is `false`.
- `attribution` (list of EnrichAttribution, optional) — Data providers for this record.

### EnrichUsage

Record and billable-enrichment counts broken down by entity type. An entity type is omitted when no records of that type were returned.

- `people` (EnrichEntityUsage, optional)
- `companies` (EnrichEntityUsage, optional)

### EnrichValidationErrorDetails

Extra context for `invalid_request` validation errors.

- `fields` (list of EnrichValidationErrorField, required) — One entry per validation problem.

### EnrichPersonExperience

A single role in a person's work history.

- `employer` (string, optional) — Employer name.
- `title` (string, optional) — Job title.
- `department` (string, optional) — Department.
- `sub_role` (string, optional) — Sub-role classification.
- `business_area` (string, optional) — Business area.
- `seniority` (list of string, optional) — Seniority levels for the role.
- `start_date` (string, optional) — Role start date (`YYYY` or `YYYY-MM`).
- `end_date` (string, optional) — Role end date (`YYYY` or `YYYY-MM`). Omitted for current roles.
- `is_current` (boolean, optional) — Whether this is a current role.

### EnrichPersonEducation

A single school in a person's education history.

- `school` (string, optional) — School name.
- `degrees` (list of string, optional) — Degrees earned.
- `degree_levels` (list of string, optional) — Normalized degree levels (for example, `doctorate`).
- `majors` (list of string, optional) — Fields of study.
- `start_date` (string, optional) — Start date (`YYYY` or `YYYY-MM`).
- `end_date` (string, optional) — End date (`YYYY` or `YYYY-MM`).

### EnrichPersonValues

Delivered contact values for a person record. Only present when `enrich_values` is `true` and at least one contact field is available. Empty fields are omitted.

- `work_email` (string, optional) — Verified work email address.
- `phone` (string, optional) — Phone number.
- `personal_email` (string, optional) — Personal email address.
- `all_emails` (string, optional) — All known email addresses for this person, separated by semicolons.
- `all_personal_emails` (string, optional) — All known personal email addresses for this person, separated by semicolons.

### EnrichPersonEnrichable

Availability flags for contact fields. Returned when `enrich_values` is `false`.

- `work_email` (boolean, optional)
- `phone` (boolean, optional)
- `personal_email` (boolean, optional)
- `all_emails` (boolean, optional)
- `all_personal_emails` (boolean, optional)

### EnrichAttribution

- `name` (string, required) — Data provider for the enriched record.

### EnrichCompanyFundingRound

A single funding round for a company.

- `date` (string, optional) — Round date (`YYYY-MM-DD`).
- `stage` (string, optional) — Funding stage (for example, `Seed`, `Series C`).
- `amount` (double, optional) — Amount raised in the round's currency.
- `currency` (string, optional) — Currency code (for example, `usd`).
- `investors` (list of string, optional) — Investors participating in the round.

### EnrichCompanyValues

Delivered company values. Only present when `enrich_values` is `true` and at least one field is available. Empty fields are omitted.

- `estimated_revenue` (string, optional) — Estimated annual revenue band.
- `linkedin_followers` (EnrichCompanyValuesLinkedinFollowers, optional) — LinkedIn follower count.
- `parent` (string, optional) — Parent company name.
- `subsidiaries` (string, optional) — Known subsidiary companies, separated by semicolons.

### EnrichCompanyEnrichable

Availability flags for enrichable company fields. Returned when `enrich_values` is `false`.

- `estimated_revenue` (boolean, optional)
- `linkedin_followers` (boolean, optional)
- `parent` (boolean, optional)
- `subsidiaries` (boolean, optional)

### EnrichEntityUsage

- `records` (integer, required) — Total records returned for this entity type.
- `enriched_records` (integer, required) — Records for which `enriched` values were delivered (the billable unit count for this entity type).

### EnrichValidationErrorField

- `field` (string, required) — Dot-delimited path to the invalid field (for example, `ids.0`, `ids`, `enrich_values`, or `body` when the body itself can't be parsed).
- `message` (string, required) — What is wrong with the field.

### EnrichCompanyValuesLinkedinFollowers

LinkedIn follower count.

- string
- integer

## Examples

### Enrich Person Records

**Request**

```json
{
  "ids": [
    "pe_01EXAMPLEPERSON00000"
  ],
  "enrich_values": true
}
```

**Response**

```json
{
  "results": [
    {
      "attribution": [
        {
          "name": "People Data Labs"
        }
      ],
      "employer": "Example Corp",
      "enrich_person_id": "pe_01EXAMPLEPERSON00000",
      "enrich_status": "enriched",
      "enriched": {
        "all_emails": "jane.roe@example.com;j.roe@example.org",
        "work_email": "jane.roe@example.com"
      },
      "linkedin_url": "linkedin.com/in/example-jane-roe",
      "location": "Austin, Texas, United States",
      "name": "Jane Roe",
      "title": "Staff Software Engineer"
    }
  ],
  "metadata": {
    "request_id": "942ccbdd-7705-4d9c-9d37-4ef386658e90",
    "usage": {
      "people": {
        "records": 1,
        "enriched_records": 1
      }
    }
  }
}
```

**SDK Code**

```python Enrich Person Records
import os

import requests

response = requests.post(
    "https://ydc-index.io/v1/enrich",
    headers={"X-API-Key": os.environ["YDC_API_KEY"]},
    json={
        "ids": ["pe_01EXAMPLEPERSON00000"],
        "enrich_values": True,
    },
    timeout=60,
)
response.raise_for_status()
payload = response.json()

for item in payload["results"]:
    print(item["enrich_status"], item.get("name"), item.get("enriched"))

```

```typescript Enrich Person Records
const response = await fetch("https://ydc-index.io/v1/enrich", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.YDC_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    ids: ["pe_01EXAMPLEPERSON00000"],
    enrich_values: true,
  }),
});

if (!response.ok) {
  throw new Error(`Enrich API error ${response.status}: ${await response.text()}`);
}

const payload = await response.json();
console.log(payload.results, payload.metadata.usage);

```

```javascript Enrich Person Records
const response = await fetch("https://ydc-index.io/v1/enrich", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.YDC_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    ids: ["pe_01EXAMPLEPERSON00000"],
    enrich_values: true,
  }),
});

if (!response.ok) {
  throw new Error(`Enrich API error ${response.status}: ${await response.text()}`);
}

const payload = await response.json();
console.log(payload.results, payload.metadata.usage);

```

```go Enrich Person Records
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://ydc-index.io/v1/enrich"

	payload := strings.NewReader("{\n  \"ids\": [\n    \"pe_01EXAMPLEPERSON00000\"\n  ],\n  \"enrich_values\": true\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java Enrich Person Records
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://ydc-index.io/v1/enrich")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"ids\": [\n    \"pe_01EXAMPLEPERSON00000\"\n  ],\n  \"enrich_values\": true\n}")
  .asString();
```

```csharp Enrich Person Records
using RestSharp;

var client = new RestClient("https://ydc-index.io/v1/enrich");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"ids\": [\n    \"pe_01EXAMPLEPERSON00000\"\n  ],\n  \"enrich_values\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Enrich Person Records
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "ids": ["pe_01EXAMPLEPERSON00000"],
  "enrich_values": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://ydc-index.io/v1/enrich")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Enrich Company Records

**Request**

```json
{
  "ids": [
    "co_01EXAMPLECOMPANY0000"
  ],
  "enrich_values": true
}
```

**Response**

```json
{
  "results": [
    {
      "attribution": [
        {
          "name": "People Data Labs"
        }
      ],
      "company_type": "Private",
      "enrich_company_id": "co_01EXAMPLECOMPANY0000",
      "enrich_status": "enriched",
      "enriched": {
        "estimated_revenue": "$100M-$500M",
        "linkedin_followers": "24500",
        "subsidiaries": "Example Labs;Example Cloud"
      },
      "funding_stage": "Series C",
      "headcount": "250",
      "industry": "Software development",
      "name": "Example Corp",
      "website": "example.com"
    }
  ],
  "metadata": {
    "request_id": "2a8f7c10-4b23-4d91-8a1e-7c5e12b34f09",
    "usage": {
      "companies": {
        "records": 1,
        "enriched_records": 1
      }
    }
  }
}
```

**SDK Code**

```python Enrich Company Records
import os

import requests

response = requests.post(
    "https://ydc-index.io/v1/enrich",
    headers={"X-API-Key": os.environ["YDC_API_KEY"]},
    json={
        "ids": ["co_01EXAMPLECOMPANY0000"],
        "enrich_values": True,
    },
    timeout=60,
)
response.raise_for_status()
payload = response.json()

for item in payload["results"]:
    print(item["enrich_status"], item.get("name"), item.get("enriched"))

```

```typescript Enrich Company Records
const response = await fetch("https://ydc-index.io/v1/enrich", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.YDC_API_KEY!,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    ids: ["co_01EXAMPLECOMPANY0000"],
    enrich_values: true,
  }),
});

if (!response.ok) {
  throw new Error(`Enrich API error ${response.status}: ${await response.text()}`);
}

const payload = await response.json();
console.log(payload.results, payload.metadata.usage);

```

```javascript Enrich Company Records
const response = await fetch("https://ydc-index.io/v1/enrich", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.YDC_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    ids: ["co_01EXAMPLECOMPANY0000"],
    enrich_values: true,
  }),
});

if (!response.ok) {
  throw new Error(`Enrich API error ${response.status}: ${await response.text()}`);
}

const payload = await response.json();
console.log(payload.results, payload.metadata.usage);

```

```go Enrich Company Records
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://ydc-index.io/v1/enrich"

	payload := strings.NewReader("{\n  \"ids\": [\n    \"co_01EXAMPLECOMPANY0000\"\n  ],\n  \"enrich_values\": true\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java Enrich Company Records
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://ydc-index.io/v1/enrich")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"ids\": [\n    \"co_01EXAMPLECOMPANY0000\"\n  ],\n  \"enrich_values\": true\n}")
  .asString();
```

```csharp Enrich Company Records
using RestSharp;

var client = new RestClient("https://ydc-index.io/v1/enrich");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"ids\": [\n    \"co_01EXAMPLECOMPANY0000\"\n  ],\n  \"enrich_values\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Enrich Company Records
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "ids": ["co_01EXAMPLECOMPANY0000"],
  "enrich_values": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://ydc-index.io/v1/enrich")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```