# Company Enrichment API

Enrich a company domain, name or LinkedIn URL into a full firmographic profile with funding, technology and headcount data.

**Pricing:** $0.052 per company

**Endpoint:** `POST /v1/data/companies/enrichment/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domains` | array | No | Company website domains to look up, without scheme or www, one call per domain. |
| `names` | array | No | Company names to look up when a domain is not available; less accurate for common names. |
| `linkedinUrls` | array | No | Company LinkedIn profile URLs to look up. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/companies/enrichment/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/companies/enrichment/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `domain` | Domain | text |
| `companyName` | Company Name | text |
| `website` | Website | url |
| `linkedinUrl` | Linkedin Url | url |
| `logo` | Logo | image |
| `description` | Description | text |
| `foundedYear` | Founded Year | integer |
| `employeeCount` | Employee Count | integer |
| `industry` | Industry | text |
| `secondaryIndustries` | Secondary Industries | array |
| `hqStreet` | Hq Street | text |
| `hqCity` | Hq City | text |
| `hqState` | Hq State | text |
| `hqCountry` | Hq Country | text |
| `hqPostalCode` | Hq Postal Code | text |
| `phone` | Phone | phone |
| `annualRevenue` | Annual Revenue | currency |
| `totalFunding` | Total Funding | currency |
| `latestFundingStage` | Latest Funding Stage | text |
| `latestFundingDate` | Latest Funding Date | date |
| `parentCompany` | Parent Company | object |
| `technologies` | Technologies | object_array |
| `subsidiaryCount` | Subsidiary Count | integer |
| `headcountGrowth6m` | Headcount Growth 6m | percentage |
| `headcountGrowth12m` | Headcount Growth 12m | percentage |
| `headcountGrowth24m` | Headcount Growth 24m | percentage |
