数据补全 API
公司招聘信息
公司在招的职位,按发布时间倒序,附带在招职位总数。按返回的招聘信息计费。
POST https://api.won.dev/v1/enrich/companies/jobs/search
按发布时间倒序列出一家公司在招的职位:职位名称、链接、地点、是否远程、用工类型、级别,以及公开的薪资,并给出在招职位总数。如果公司正在招采购、寻源或新仓库的人手,正是联系它的好时机。每返回一条收取 $0.003,没有结果免费。按网站查询;如果该网站下没有招聘信息,会改用 name 查询,因为公司可能以母公司的网站发布职位,此时只返回登记在这个名称下的职位。可以用 titles 和 country 缩小范围。
- 计费:
job_posting$0.003:返回的一条招聘信息。 - 数据模式:
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, as it writes it. Asked when the website has no postings, or alone when you do not know the website. |
titles | string[] | 否 | Job title words, such as buyer or sourcing: postings whose title has any of them. Up to 10. |
country | string | 否 | Only postings in this country. An ISO code such as US, or an English name such as United States. |
limit | integer | 否 | How many postings to return, 1 to 50. You pay for the postings returned. 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[] | The postings, newest first. |
data[].id | string | Job ID, such as job_6t2m9x4p1q8w. |
data[].title | string | |
data[].url | string | null | Where to read the posting and apply. |
data[].location | string | null | Where the job is, as the posting says. |
data[].countries | string[] | The countries of its places, as English names. |
data[].workplace | remote | hybrid | on_site | null | Whether the job is remote, hybrid or on site. |
data[].employment | full_time | part_time | contract | internship | null | The kind of contract. |
data[].seniority | string | null | The level the posting asks for. |
data[].posted_at | string | null | Date it was posted, YYYY-MM-DD. |
data[].salary | object | null | Pay as the posting states it. Null when it states none. |
data[].salary.min | number | null | |
data[].salary.max | number | null | |
data[].salary.currency | string | null | |
data[].salary.period | string | null | Such as year or hour. |
total | integer | null | How many postings match in all, beyond this answer. Null when not known. |
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.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.records | integer | How many were returned and charged. |
usage.already_paid | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
usage.cost | number | What this call 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/jobs/search \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "northfield-home.example",
"titles": [
"buyer",
"sourcing"
],
"limit": 2
}'{
"data": [
{
"id": "job_6t2m9x4p1q8w",
"title": "Senior Buyer, Upholstery",
"url": "https://careers.northfield-home.example/senior-buyer-upholstery",
"location": "Charlotte, NC",
"countries": [
"United States"
],
"workplace": "hybrid",
"employment": "full_time",
"seniority": "Senior",
"posted_at": "2026-11-12",
"salary": {
"min": 85000,
"max": 110000,
"currency": "USD",
"period": "year"
}
},
{
"id": "job_3k8n1v5c7x2z",
"title": "Sourcing Manager, Vietnam",
"url": "https://careers.northfield-home.example/sourcing-manager-vietnam",
"location": "Ho Chi Minh City, Vietnam",
"countries": [
"Vietnam"
],
"workplace": "on_site",
"employment": "full_time",
"seniority": "Mid-Level",
"posted_at": "2026-11-03",
"salary": null
}
],
"total": 2,
"query": {
"domain": "northfield-home.example",
"titles": [
"buyer",
"sourcing"
],
"limit": 2
},
"notice": null,
"usage": {
"unit": "job_posting",
"records": 2,
"already_paid": 0,
"cost": 0.006,
"balance": 48.994,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会返回同一家样例公司和同一批样例人员,不收费。