数据补全 API
读取公司官网
读取公司官网,获取公共邮箱、电话、即时通讯账号,以及网站上提到的人员和验证过的工作邮箱。
POST https://api.won.dev/v1/enrich/companies/website/read
像人工查找联系方式一样读取公司官网:先读首页,再读 Impressum(法定信息页)、联系我们、关于我们和团队页面,最多七页。返回公司公布的公共邮箱、电话、WhatsApp、微信、Zalo 账号和社交媒体主页,以及页面上提到的人员(比如 Impressum 中列出的总经理),能确认的每人附一个工作邮箱。读取一个网站需要 10 到 60 秒,所以首次调用只会启动读取,并免费返回 status: "processing";请在 retry_after_seconds 秒后再次调用。读取结果保留 30 天,所有用户共享。网站上有任何联系方式时收取 $0.02,每返回一个带邮箱的人另收 $0.03;没有任何联系方式的网站免费。公共邮箱按网站上的原样返回;写在某人名字旁边的邮箱,返回前会先验证。对于没有写出邮箱的人,会根据姓名和公司的邮箱格式(如 first.last@)推算地址,验证邮箱存在后才返回。读取时遵守 robots.txt,遇到人机验证即停止。
- 计费:
company_channels$0.02:从一家公司官网上找到的公共邮箱、电话或即时通讯账号,不论数量多少。person_email$0.03:在雇主域名下找到的一个工作邮箱,返回前已验证。 - 数据模式:
proxy(各模式的含义)
参数
参数放在 JSON 请求体里。POST 请求还支持 Idempotency-Key 请求头,见幂等。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
domain | string | 否 | The company's website, such as example.com. |
company_id | string | 否 | A company ID from the trade data API, such as co_8f3k2m9x4p1q, instead of domain: the company's website on record is used. |
name | string | 否 | The company's name. Tells an address made of it, such as acme@, for a shared one. |
country | string | 否 | Where the company is, to read phone numbers printed without a country code. By default the country of the website's ending, such as Germany for .de. An ISO code such as US, or an English name such as United States. |
min_email_status | verified | risky | 否 | verified (the default): only confirmed mailboxes. risky also returns addresses at domains that accept every address. Default: verified. |
limit | integer | 否 | How many people to return, 1 to 25. You pay for those returned with an email. Default: 10. |
max_cost | number | 否 | Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged. |
dry_run | boolean | 否 | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: false. |
响应
传入 dry_run: true 时不执行查询,data 中只返回本次调用的最高费用,见预估费用。错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object | |
data.status | processing | ready | processing: the website is being read; call again after retry_after_seconds. ready: this is the report. |
data.retry_after_seconds | integer | null | While processing: when to ask again. Null when ready. |
data.domain | string | The website that was read. |
data.read_at | string | null | When it was read, ISO 8601. Reports are kept 30 days. |
data.unreadable | unreachable | blocked | robots | elsewhere | empty | null | Why the website gave nothing to read, or null. unreachable: no answer. blocked: it asks for a bot check, which is never worked around. robots: its robots.txt asks us to stay out. elsewhere: it sends visitors to another website. empty: no page could be read. |
data.pages | object[] | The pages that were read: the home page, the imprint, contact, about and team pages. |
data.pages[].url | string | |
data.pages[].kind | home | imprint | contact | team | about | |
data.emails | object[] | Shared addresses on the company's own domain, such as info@ and sales@. A person's address is under people. |
data.emails[].email | string | |
data.emails[].page_url | string | null | The page it was found on. |
data.phones | object[] | Phone numbers the company publishes. Fax numbers are left out. |
data.phones[].number | string | null | In E.164, such as +4952112340. Null when the country cannot be told. |
data.phones[].printed | string | As the website prints it. |
data.phones[].page_url | string | null | The page it was found on. |
data.messaging | object[] | WhatsApp, WeChat, Zalo, LINE, Skype and Telegram contacts the website gives. |
data.messaging[].app | whatsapp | wechat | zalo | line | skype | telegram | |
data.messaging[].value | string | A number in E.164 for WhatsApp, else the ID or number as printed. |
data.messaging[].page_url | string | |
data.social | object | The company's own pages on social networks. Null where none is linked. |
data.social.linkedin | string | null | |
data.social.facebook | string | null | |
data.social.twitter | string | null | |
data.social.instagram | string | null | |
data.social.youtube | string | null | |
data.social.tiktok | string | null | |
data.social.pinterest | string | null | |
data.people | object[] | People the website names: managing directors and owners from the imprint, and the staff of contact and team pages. Leaders first. |
data.people[].id | string | Person ID, such as per_4m7q2x9k1c8d. Kept for your account for 90 days after it was last returned: pass it as contact_id to add the person to a campaign, or as person_id to look for an email. |
data.people[].name | string | Full name, as the website writes it. |
data.people[].title | string | null | Role, as the website gives it. Roles from an imprint are in English, such as Managing Director. |
data.people[].seniority | owner | c_level | executive | manager | senior | staff | null | Level, read from the title. |
data.people[].department | purchasing | sales | management | operations | marketing | finance | engineering | quality | it | hr | legal | null | Department, read from the title. |
data.people[].email | string | null | Work email on the company's own domain. Null when none could be confirmed. |
data.people[].email_status | verified | risky | null | verified: the mailbox exists. risky: the domain accepts every address, so the mailbox cannot be confirmed. |
data.people[].email_source | website | pattern | null | website: printed next to their name. pattern: made from their name and the company's address pattern, then checked. |
data.people[].page_url | string | The page that names them. |
data.email_pattern | first.last | first_last | first-last | firstlast | f.last | flast | first | last.first | null | How the company writes its people's addresses, such as first.last, when it shows. |
query | object | The request as it was understood: country names as codes, the default dates filled in. |
notice | string | null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
usage | object | What this call was charged, and the balance left. |
usage.cost | number | What this call cost, in US dollars. |
usage.breakdown | object[] | Every billing unit that came back, charged or not. Empty when nothing did. |
usage.breakdown[].unit | person_record | person_profile | person_email | person_phone | email_verification | company_listing | company_record | company_channels | company_technologies | company_funding | company_news | company_lookalikes | job_posting | What is counted. |
usage.breakdown[].records | integer | How many were returned and charged. |
usage.breakdown[].already_paid | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
usage.breakdown[].cost | number | What they cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |
示例
curl https://api.won.dev/v1/enrich/companies/website/read \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "northfield-home.example",
"limit": 5
}'{
"data": {
"status": "ready",
"retry_after_seconds": null,
"domain": "northfield-home.example",
"read_at": "2026-11-21T09:30:00.000Z",
"unreadable": null,
"pages": [
{
"url": "https://www.northfield-home.example/",
"kind": "home"
},
{
"url": "https://www.northfield-home.example/imprint",
"kind": "imprint"
},
{
"url": "https://www.northfield-home.example/contact",
"kind": "contact"
}
],
"emails": [
{
"email": "info@northfield-home.example",
"page_url": "https://www.northfield-home.example/"
},
{
"email": "sales@northfield-home.example",
"page_url": "https://www.northfield-home.example/contact"
}
],
"phones": [
{
"number": "+17045550100",
"printed": "+1 (704) 555-0100",
"page_url": "https://www.northfield-home.example/contact"
}
],
"messaging": [
{
"app": "whatsapp",
"value": "+17045550142",
"page_url": "https://www.northfield-home.example/contact"
}
],
"social": {
"linkedin": "https://www.linkedin.com/company/sample-northfield-home",
"facebook": null,
"twitter": null,
"instagram": null,
"youtube": null,
"tiktok": null,
"pinterest": null
},
"people": [
{
"id": "per_car9xn4yt1xg",
"name": "Sam Rivera",
"title": "Owner",
"seniority": "owner",
"department": "management",
"email": "sam.rivera@northfield-home.example",
"email_status": "verified",
"email_source": "pattern",
"page_url": "https://www.northfield-home.example/imprint"
},
{
"id": "per_gzbfmsxvm0n4",
"name": "Jordan Lee",
"title": "Director of Global Sourcing",
"seniority": "executive",
"department": "purchasing",
"email": "jordan.lee@northfield-home.example",
"email_status": "verified",
"email_source": "website",
"page_url": "https://www.northfield-home.example/contact"
}
],
"email_pattern": "first.last"
},
"query": {
"domain": "northfield-home.example",
"limit": 5
},
"notice": null,
"usage": {
"cost": 0.08,
"breakdown": [
{
"unit": "company_channels",
"records": 1,
"already_paid": 0,
"cost": 0.02
},
{
"unit": "person_email",
"records": 2,
"already_paid": 0,
"cost": 0.06
}
],
"balance": 48.92,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会返回同一家样例公司和同一批样例人员,不收费。