# 公司数据 公司画像 API (company_data.enrich)

- Canonical page: https://everyinfra.com/company-data-api/enrich
- Endpoint: POST /api/v1/social with {"platform": "company_data", "action": "enrich", "params": {...}}
- Price: $0.0104 per call ($10.4 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=company_data&action=enrich

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| domain | not declared | yes | not declared | 要查的公司域名或官网链接，例如 stripe.com；按域名精确匹配，返回匹配度最高的一家。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| domain | 公司主域名，例如 stripe.com。 |
| headline | 公司一句话口号（enrich），按数据商原样，多为小写。 |
| description | 简介或描述，通常比 text 短。 |
| industry | 行业（enrich），按数据商原样。 |
| company_type | 公司类型（enrich），例如 private、public。 |
| size | 员工规模区间（enrich），例如 5001-10000。 |
| founded | 成立年份（enrich）。 |
| linkedin_url | 公司 LinkedIn 主页链接（enrich）。 |
| socials | 公司社交账号（enrich），每项有 network（如 x、facebook、crunchbase）和 url。 |
| locations | 公司办公地点（enrich），每项有 street_address、city、state、country、country_code、postal_code、primary（是否总部）。 |
| match_confidence | 这家公司和所给域名的匹配度（enrich）：high、moderate、low。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "company_data",
  "action": "enrich",
  "params": {
    "domain": "stripe.com"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "company_data",
        "action": "enrich",
        "params": {
            "domain": "stripe.com",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "company_data",
  "action": "enrich",
  "results": {
    "name": …,
    "domain": …,
    "headline": …,
    "description": …,
    "industry": …,
    "company_type": …,
    "size": …,
    "founded": …,
    "linkedin_url": …,
    "socials": …,
    "locations": …,
    "match_confidence": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=company_data
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
