---
name: orthogonal-data-legion-company-premium
description: "Call Data Legion Company Premium through Orthogonal's pay-per-use Run API: Company data from Data Legion's Premium tier: enrich a company by domain, name, ticker or social URL, search companies with filters, SQL or query objects, or discover them in plain English. Premium records add headcount history, hiring, attrition, tenure, growth and workforce breakdowns."
---

# Data Legion Company Premium — 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)

Company data from Data Legion's Premium tier: enrich a company by domain, name, ticker or social URL, search companies with filters, SQL or query objects, or discover them in plain English. Premium records add headcount history, hiring, attrition, tenure, growth and workforce breakdowns.

**Verified:** yes

## 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

### Company enrichment

Enrich company by multiple parameters: find the best matching company from a domain, name (with optional industry), LinkedIn ID, social URL, ticker symbol or Legion ID, returning the full Premium record (firmographics plus headcount history, hiring, attrition, tenure, growth and workforce breakdowns). Send at least one identifier. A lookup with no match answers 404 and is not charged.

`POST /company/enrich`

**Cost:** $0.0436 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.0436 per match returned
- A call that returns nothing costs $0
- At most $0.0436 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-company-premium/company-enrichment

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

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `legion_id` | string | No | Company Legion ID (exact match) |
| `domain` | string | No | Company website domain (e.g., google.com) |
| `name` | string | No | Company name (fuzzy matching) |
| `linkedin_id` | string | No | LinkedIn company numeric ID |
| `social_url` | string | No | Social profile URL (LinkedIn, Facebook, Crunchbase, X/Twitter, GitHub - will be normalized and detected) |
| `ticker_symbol` | string | No | Stock ticker symbol (e.g., GOOGL) |
| `industry` | string | No | Industry filter (used with name matching for better accuracy) |
| `min_confidence` | string | No | Minimum match confidence: 'high', 'moderate', or 'low' |
| `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. |
| `required_fields` | string | No | Fields a match must have, else it is filtered out (and not billed). Supports top-level fields ('domain'), a non-empty list subfield ('socials.network'), or a subfield equal to a value ('type:public', 'socials.network:linkedin'). Combine them with AND, OR and parentheses: '(domain OR socials) AND industry'. Put a value holding the word "and" or "or", a comma or a parenthesis in double quotes: '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-company-premium","path":"/company/enrich","body":{"legion_id":"<string>","domain":"<string>","name":"<string>","linkedin_id":"<string>","social_url":"<string>","ticker_symbol":"<string>","industry":"<string>","min_confidence":"<string>","titlecase":"<boolean>","required_fields":"<string>","include_fields":"<string>","exclude_fields":"<string>","pretty_print":"<boolean>"}}'
```

### Company search

Search companies using SQL query, an Elasticsearch-style query object, or filters on record fields (send exactly one). Returns up to limit Premium company records (default 1, max 100) with the total match count and a next_cursor for paging. Charged per company record returned.

`POST /company/search`

**Cost:** $0.0436 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.0436 per match returned
- Up to 100 results per call
- A call that returns nothing costs $0
- At most $4.36 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-company-premium/company-search

**Docs:** https://www.datalegion.ai/docs/api-reference/company-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 company 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 |
| `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-company-premium","path":"/company/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>"}}'
```

### Company discovery

Discover companies using natural language: describe the companies you want in plain English (3-1000 characters) and AI turns it into a database search. Returns up to limit Premium company records (default 1, max 100) with a next_cursor. Charged per company record returned; refused queries answer 400 and are not charged.

`POST /company/discover`

**Cost:** $0.0436 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.0436 per match returned
- Up to 100 results per call
- A call that returns nothing costs $0
- At most $4.36 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-company-premium/company-discovery

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

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Natural language description of companies 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-company-premium","path":"/company/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-company-premium
