---
name: orthogonal-data-legion-person-data-base-with-contact-data
description: "Call Data Legion Person Data (Base with Contact Data) through Orthogonal's pay-per-use Run API: Person enrichment, search and plain-English discovery over Data Legion's person database, returning profiles with work history, education, skills, social profiles and contact data (emails, phones, location, age)."
---

# Data Legion Person Data (Base with Contact Data) — Orthogonal API

> Pay-per-use API on Orthogonal. Each call is billed to your Orthogonal balance.
> Base API: `https://api.orthogonal.com/v1/run` · [llms.txt](https://www.orthogonal.com/llms.txt) · [browse all APIs](https://www.orthogonal.com/catalog)

Person enrichment, search and plain-English discovery over Data Legion's person database, returning profiles with work history, education, skills, social profiles and contact data (emails, phones, location, age).

**Verified:** no

## Access

**Run API:** `POST https://api.orthogonal.com/v1/run`
**Auth:** `Authorization: Bearer $ORTHOGONAL_API_KEY`
Get an API key at https://www.orthogonal.com/account/keys

No account or key yet? Set up Orthogonal first with https://www.orthogonal.com/skill.md: it covers the CLI, the MCP server, the TypeScript SDK and sign-up, including an agent sign-up without a password (https://www.orthogonal.com/agent-signup.md).

Every call goes through the unified Run API: send the API `slug`, the endpoint `path`, and the `query`/`body` parameters. The response is `{ "success": true, "priceCents": <US cents>, "requestId": "...", "data": { ... } }`.

Quote first, free: the same request with `"dryRun": true` returns the price without calling the API or charging anything. On a retry after a timeout, send the same `Idempotency-Key` header so the call runs and bills once.

## Endpoints

### Person enrichment

Find the best matching person based on provided parameters. Requires a primary identifier (email, phone, social_url, linkedin_id, legion_id, email_hash, npi) OR a first and last name + context (location, company, school, job_title, birth_date). Supports fuzzy matching and confidence levels (high, moderate, low). Inputs are automatically cleaned and normalized.

`POST /person/enrich`

**Cost:** $0.0545 per call. Fixed: every call costs the same. You aren't charged for failed calls. A wallet payment for a failed call is refunded.

**Page:** https://www.orthogonal.com/api/data-legion-person-data-base-with-contact-data/person-enrichment

**Docs:** https://www.datalegion.ai/docs/api-reference/person-enrichment

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `email` | string | No | Email address (will be normalized) |
| `email_hash` | string | No | SHA-256 (64 chars), SHA-1 (40 chars), or MD5 (32 chars) hash of normalized email address (for privacy) |
| `phone` | string | No | Phone number (will be normalized to E.164) |
| `linkedin_id` | string | No | LinkedIn numeric ID |
| `social_url` | string | No | Social profile URL (LinkedIn, Twitter/X, GitHub, Facebook - will be normalized and detected) |
| `legion_id` | string | No | Legion ID (exact match) |
| `npi` | string | No | NPI (National Provider Identifier): a US healthcare provider's 10-digit ID (exact match). Needs npi in your contract |
| `full_name` | string | No | Full name (will be normalized) |
| `first_name` | string | No | First name (will be normalized) |
| `last_name` | string | No | Last name (will be normalized) |
| `address` | string | No | Full address string (will be parsed to extract city, state, postal_code, and country) |
| `city` | string | No | City name |
| `state` | string | No | State name or code |
| `country` | string | No | Country name or code |
| `postal_code` | string | No | Postal/ZIP code |
| `job_title` | string | No | Job title |
| `company` | string | No | Company name, website, or social URL |
| `school` | string | No | School name, website, or social URL |
| `birth_date` | string | No | Birth date for matching or narrowing name-based results (YYYY-MM-DD, YYYY-MM, or YYYY). Can be used as name + birth_date lookup or as a qualifier on other name-based combos. |
| `min_confidence` | string | No | Minimum match confidence level to include in results: 'high', 'moderate', or 'low'. Matches below this threshold will be filtered out. |
| `titlecase` | boolean | No | If true, format text fields in title case (names, job titles, company names, locations, skills, headlines). Raw fields, IDs, URLs, codes, and confidence fields are excluded. |
| `required_fields` | string | No | Fields a match must have, else it is filtered out (and not billed). Top-level fields ('work_email'), a non-empty subfield of a list item ('emails.type'), or a subfield equal to a value ('emails.type:personal', 'phones.type:mobile', 'socials.network:linkedin'). Combine them with AND, OR and parentheses: '(work_email OR mobile_phone) AND job_title'. Put a value holding the word "and" or "or", a comma or a parenthesis in double quotes: 'company_industry:"oil and energy"'. |
| `include_fields` | string | No | Comma-separated list of fields to include in response. If omitted, all fields are returned. |
| `exclude_fields` | string | No | Comma-separated list of fields to exclude from response. Applied after include_fields filter. |
| `pretty_print` | boolean | No | If true, pretty-print JSON response with indentation. |

```bash
curl -X POST 'https://api.orthogonal.com/v1/run' \
  -H 'Authorization: Bearer $ORTHOGONAL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"api":"data-legion-person-data-base-with-contact-data","path":"/person/enrich","body":{"email":"<string>","email_hash":"<string>","phone":"<string>","linkedin_id":"<string>","social_url":"<string>","legion_id":"<string>","npi":"<string>","full_name":"<string>","first_name":"<string>","last_name":"<string>","address":"<string>","city":"<string>","state":"<string>","country":"<string>","postal_code":"<string>","job_title":"<string>","company":"<string>","school":"<string>","birth_date":"<string>","min_confidence":"<string>","titlecase":"<boolean>","required_fields":"<string>","include_fields":"<string>","exclude_fields":"<string>","pretty_print":"<boolean>"}}'
```

### Person search

Execute a SQL query against the database and return person results. The query must not contain LIMIT or OFFSET clauses - use the 'limit' and 'offset' parameters for pagination. Supports titlecase formatting and field filtering.

`POST /person/search`

**Cost:** $0.0545 per match returned. Response-based: you pay for what comes back, never more than the price shown before you run. You aren't charged for failed calls. A wallet payment for a failed call is refunded.
- $0.0545 per match returned
- Up to 100 results per call
- A call that returns nothing costs $0
- At most $5.45 per call
- If you pay with a wallet (x402, MPP or Nanopayments), you pay this request's price before the call, not the final price from the response

Use `"dryRun": true` in the Run API request to see a request's price before calling.

**Page:** https://www.orthogonal.com/api/data-legion-person-data-base-with-contact-data/person-search

**Docs:** https://www.datalegion.ai/docs/api-reference/person-search

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | No | Deprecated: send sql or es_query. A SQL SELECT statement when text, a query object when an object (or text starting with "{"); still accepted as before. |
| `sql` | string | No | A SQL SELECT statement (no LIMIT or OFFSET clause: use limit and offset). |
| `es_query` | object | No | A query object in the Elasticsearch query DSL, naming the response's field paths (bool, term, terms, match, match_phrase, range, exists, prefix, wildcard, nested). A GET may send it as JSON text. |
| `filters` | object | No | The person record's own field names; every one given must hold. |
| `limit` | integer | No | Maximum number of results to return (replaces LIMIT in query) (default: 1, max: 100) |
| `offset` | integer | No | Number of results to skip for pagination (0-10000). Stable within a build; ordering may change across builds. |
| `cursor` | string | No | Continue a search from the previous page's next_cursor: the next page in the same order, past offset's 10,000-row reach, for deep pages and exports. Send the same query, and no offset. A cursor works for the dataset build it came from; after a new build, start again. |
| `titlecase` | boolean | No | If true, format text fields in title case (names, job titles, company names, locations, skills, headlines). Raw fields, IDs, URLs, codes, and confidence fields are excluded. |
| `include_fields` | string | No | Comma-separated list of fields to include in response (e.g., 'full_name,emails,phones'). If omitted, all fields are returned. |
| `exclude_fields` | string | No | Comma-separated list of fields to exclude from response (e.g., 'skills,education'). Applied after include_fields filter. |
| `pretty_print` | boolean | No | If true, pretty-print JSON response with indentation. |

```bash
curl -X POST 'https://api.orthogonal.com/v1/run' \
  -H 'Authorization: Bearer $ORTHOGONAL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"api":"data-legion-person-data-base-with-contact-data","path":"/person/search","body":{"query":"<string>","sql":"<string>","es_query":"<object>","filters":"<object>","limit":"<integer>","offset":"<integer>","cursor":"<string>","titlecase":"<boolean>","include_fields":"<string>","exclude_fields":"<string>","pretty_print":"<boolean>"}}'
```

### Person discovery

Describe who you're looking for in plain English. AI translates your description into precise database queries.

`POST /person/discover`

**Cost:** $0.0545 per match returned. Response-based: you pay for what comes back, never more than the price shown before you run. You aren't charged for failed calls. A wallet payment for a failed call is refunded.
- $0.0545 per match returned
- Up to 100 results per call
- A call that returns nothing costs $0
- At most $5.45 per call
- If you pay with a wallet (x402, MPP or Nanopayments), you pay this request's price before the call, not the final price from the response

Use `"dryRun": true` in the Run API request to see a request's price before calling.

**Page:** https://www.orthogonal.com/api/data-legion-person-data-base-with-contact-data/person-discovery

**Docs:** https://www.datalegion.ai/docs/api-reference/person-discovery

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Natural language description of who you're looking for |
| `limit` | integer | No | Maximum number of results to return (default 1, max 100). |
| `offset` | integer | No | Number of results to skip (0-10000). Each request with an offset reads the query again and may word the search differently, so pages can overlap or skip records: page with cursor instead. |
| `cursor` | string | No | Continue from the previous page's next_cursor: the next page of the same search, without asking the model again (it may word the same query differently), and past offset's 10,000-row reach. Send the same query, and no offset, in a POST body (a long cursor won't fit in a GET's URL). A cursor works for the dataset build it came from. |
| `titlecase` | boolean | No | If true, format text fields in title case (names, company names, locations). Raw fields, IDs, URLs, codes, and confidence fields are excluded. |
| `include_fields` | string | No | Comma-separated list of fields to include in response. If omitted, all fields are returned. |
| `exclude_fields` | string | No | Comma-separated list of fields to exclude from response. Applied after include_fields filter. |
| `pretty_print` | boolean | No | If true, pretty-print JSON response with indentation. |

```bash
curl -X POST 'https://api.orthogonal.com/v1/run' \
  -H 'Authorization: Bearer $ORTHOGONAL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"api":"data-legion-person-data-base-with-contact-data","path":"/person/discover","body":{"query":"<string>","limit":"<integer>","offset":"<integer>","cursor":"<string>","titlecase":"<boolean>","include_fields":"<string>","exclude_fields":"<string>","pretty_print":"<boolean>"}}'
```

---

Full details and an interactive quickstart: https://www.orthogonal.com/publisher/data-legion-person-data-base-with-contact-data
