# 补全已有名单

Source: https://won.dev/zh/docs/tutorials/enrich-your-list

你手上已经有一批公司：展会的参展商名录、从 CRM 导出的表格、一张网站列表。这篇教程先一步步补全其中一家，再把同样的步骤用到整份名单上。每一步只在找到东西时才收费，所以找不到任何信息的那一行不花钱。

**开始之前。** 测试 key 会在一家虚构的公司上跑完每一步，不花钱。每一步都写明了价格；一家公司跑完全程最多 $0.118，[下面有明细](#cost)。名单的每一行需要有公司网站；公司名称、LinkedIn 主页或公司里任何一个人的工作邮箱也可以。

## 1. 补全公司 [#company]

`POST /enrich/companies/find` 把一个网站变成公司档案：公司做什么、所属行业、规模、所在地和 LinkedIn 主页。`include: ["channels"]` 还会加上它公开的公共邮箱、电话和 WhatsApp 联系方式。

```bash
curl https://api.won.dev/v1/enrich/companies/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domain": "northfield-home.example", "include": ["channels"] }'
```

返回结果，只保留 `data`：

```json
{
  "data": {
    "company": {
      "name": "SAMPLE Northfield Home Furnishings",
      "domain": "northfield-home.example",
      "description": "Sample importer and retailer of upholstered furniture, sofas and dining chairs for homes in the south-eastern United States.",
      "industry": "Furniture and Home Furnishings Retail",
      "employees": "201-500",
      "founded": 1987,
      "location": "Charlotte, North Carolina, United States",
      "linkedin_url": "https://www.linkedin.com/company/sample-northfield-home"
    },
    "channels": {
      "emails": ["info@northfield-home.example", "sales@northfield-home.example"],
      "phones": ["+17045550100"],
      "messaging": [{ "app": "whatsapp", "value": "+17045550100" }],
      "social": {
        "linkedin": "https://www.linkedin.com/company/sample-northfield-home",
        "facebook": null,
        "twitter": null,
        "instagram": null,
        "youtube": null,
        "tiktok": null,
        "pinterest": null
      }
    }
  }
}
```

档案 $0.01，联系渠道 $0.02。先根据档案剔除不属于你目标市场的行，再为找人付费。`include` 还支持 `technologies`、`funding`、`news`、`jobs` 和 `similar`，各按各的价格计费。见[补全公司](/zh/docs/enrich/companies-find)。

## 2. 列出负责采购的人 [#people]

`POST /enrich/people/search` 按公司网站列出它的员工，并缩小到你要卖给的那个团队。它返回姓名、职位和 LinkedIn 主页，不含联系方式，每人 $0.005。

```bash
curl https://api.won.dev/v1/enrich/people/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "domain": "northfield-home.example",
  "department": ["purchasing"],
  "seniority": ["executive", "manager"],
  "limit": 5
}'
```

返回结果，只保留第一个人：

```json
{
  "data": [
    {
      "id": "per_4m7q2x9k1c8d",
      "name": "Jordan Lee",
      "first_name": "Jordan",
      "last_name": "Lee",
      "title": "Director of Global Sourcing",
      "seniority": "executive",
      "department": "purchasing",
      "company": "SAMPLE Northfield Home Furnishings",
      "company_domain": "northfield-home.example",
      "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
      "location": "Charlotte, North Carolina, United States"
    }
  ],
  "status": "ready",
  "retry_after_seconds": null
}
```

`status: "processing"` 表示这家公司还有数据源在查：等 `retry_after_seconds` 秒后再调用一次，已经返回过的人不会重复收费。见[找人](/zh/docs/enrich/people-search)。

## 3. 找工作邮箱 [#emails]

挑出值得联系的人，把每个人的 `id` 作为 `person_id` 传入。系统会使用记录里的姓名和雇主，只返回雇主自有域名下、返回前验证过的地址。

```bash
curl https://api.won.dev/v1/enrich/people/email/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "person_id": "per_4m7q2x9k1c8d" }'
```

返回结果，只保留邮箱：

```json
{
  "data": {
    "email": { "email": "jordan.lee@northfield-home.example", "status": "verified" }
  }
}
```

每找到一个邮箱 $0.03；找不到时不收费，`data.email` 为 `null`。`status: "verified"` 表示这个邮箱确实存在。邮箱会和 ID 一起保存，所以可以直接用 `contact_id` 把这个人加进发送活动。要找电话，`POST /enrich/people/phone/find` 接受同样的 `person_id`，每个号码 $0.10。见[找工作邮箱](/zh/docs/enrich/people-email-find)。

## 4. 检查你已有的地址 [#verify]

来自 CRM 或名片的地址可能已经失效。放进发送活动之前先检查一遍：一个发送活动里如果超过十分之一的地址没通过邮箱检查，发送活动会在给其余的人发信之前暂停。

```bash
curl https://api.won.dev/v1/enrich/email/verify \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "purchasing@northfield-home.example" }'
```

结论是 `verified`、`risky`（这个域名接受任何地址，所以无法确认这一个）、`invalid` 或 `unknown`，同时给出 `webmail` 和 `shared_mailbox` 标记。`verified`、`risky` 或 `invalid` 每个 $0.003；`unknown` 不收费，可以稍后再查。见[验证邮箱地址](/zh/docs/enrich/email-verify)。

## 5. 处理整份名单 [#task]

几行数据逐个调用就行。数量更多时，一个任务可以在后台跑最多 100 次邮箱查找或地址验证，每次都像单独调用一样计费：

```bash
curl https://api.won.dev/v1/tasks \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "enrich.people.email.find",
  "inputs": [
    { "person_id": "per_4m7q2x9k1c8d" },
    { "person_id": "per_7a0c3e6g9j2m" }
  ],
  "max_cost": 0.06
}'
```

请求会立即以 `202 Accepted` 返回任务的 `id`。用 `GET /tasks/{id}` 读取，直到 `status` 不再是 `running`，或者在 webhook 上等待 `task.completed` 事件。`dry_run: true` 可以在任务开始前告诉你它最多花多少钱。见[任务](/zh/docs/tasks)。

## 一家公司花多少钱 [#cost]

用正式 key，最多：

| 步骤                 | 计费                                         | 最多花费   |
| -------------------- | -------------------------------------------- | ---------- |
| 1. 补全公司          | `company_record` × 1，`company_channels` × 1 | $0.03      |
| 2. 列出 5 位采购人员 | `person_record` × 5                          | $0.025     |
| 3. 找 2 个工作邮箱   | `person_email` × 2                           | $0.06      |
| 4. 检查 1 个地址     | `email_verification` × 1                     | $0.003     |
| **合计**             |                                              | **$0.118** |

组织在过去 30 天内付过费的公司、联系人或邮箱再次返回都免费，所以修改名单后重新跑一遍，只为新增的行付费。见[定价与计费](/zh/docs/billing)。

## 下一步 [#next]

- 给找到的人发邮件序列：[找海外买家并发开发信](/zh/docs/tutorials/find-buyers-and-email-them#sender)的第 4 到第 8 步。
- 按谁现在有购买理由给名单排序：[按购买信号联系客户](/zh/docs/tutorials/buying-signals)。
- 对于海关数据中的进口商或出口商，`GET /trade/companies/{id}/contacts` 一次调用就完成第 2 步和第 3 步。见[数据补全 API](/zh/docs/enrich#flow)。