信号 API
检查公司信号
检查一家公司是否在招人、刚融资或进口变多,决定先联系谁。按找到的信号类别计费。
POST https://api.won.dev/v1/signals/find
检查一家公司有没有值得现在联系的信号:hiring(发布了招聘;$0.03)、funding(宣布了一轮融资;$0.20)和 import_surge(海关记录月均增长至少 30%;$0.05)。公司有哪类信号就返回哪类的一行,附带 why_now(可以直接用作邮件开头的一句话)和最多 5 条信号,按时间倒序。每类信号只在公司确实有时计费,什么都没有免费;同一批信号 30 天内再次返回免费。用 domain 或海关数据中的公司 company_id 指定公司;import_surge 需要 company_id,funding 需要官网。默认 hiring 读取最近 30 天,funding 读取最近 180 天;since 同时设置两者,最多往前 365 天。如需检查最多 100 家公司,请以任务方式运行:POST /tasks 并传入 operation: "signals.find"。如果要找有信号的公司,请用 POST /signals/hiring/search、POST /signals/funding/search 或 POST /signals/import-surge/search。
- 计费:
signal_hiring$0.03:在所选时段内发布了招聘的一家公司,不论职位多少。signal_funding$0.20:在所选时段内宣布了融资的一家公司。signal_import_surge$0.05:进口量增长的一家公司,附带前后月份的对比。 - 数据模式:
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. It finds the company in the job index when its website does not, and is enough alone for hiring. |
types | (hiring | funding | import_surge)[] | 否 | The kinds of signal to check: hiring, funding, import_surge. Default: hiring,funding,import_surge. |
since | string | 否 | First day of the period, YYYY-MM-DD, for hiring and funding. Default: 30 days ago for hiring, 180 for funding. At most 365 days back. |
titles | string[] | 否 | For hiring: only postings whose title has any of these words, such as buyer. Up to 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[] | A row for each kind of signal the company has, in the order of types. Empty when it has none. |
data[].company | object | The company the signals are about. |
data[].company.id | string | null | The company's ID in the trade data API, such as co_8f3k2m9x4p1q, for a company found in customs records: pass it as company_id. Null for the others. |
data[].company.name | string | Company name. |
data[].company.domain | string | null | Its website, such as example.com: pass it as domain to the company and people endpoints. Always set for hiring and funding; often null for import_surge, where id stands for the company. |
data[].company.country | string | null | ISO 3166 code: where the headquarters are, or for import_surge the country it imports into. |
data[].company.employees | string | null | Headcount or a range, such as 51-200, when known. |
data[].company.industry | string | null | Its industry, when known. |
data[].type | hiring | funding | import_surge | What kind of signal this company has. |
data[].why_now | string | One sentence on what happened, with numbers and dates, to open a message with or to decide whom to contact first. |
data[].matches | integer | How many signals of this kind the company has in the period. Up to 5 are listed. |
data[].signals | object[] | The newest first, up to 5. Each has the fields of its type: job, round or imports. |
data[].signals[].id | string | Signal ID, such as sig_3k8m2x9p4q1w. The same event keeps its ID, so you can tell new signals from ones you saw. |
data[].signals[].occurred_at | string | null | When it happened, YYYY-MM-DD: the day a job was posted or a round announced, or the last day of the latest month an import surge covers. |
data[].signals[].title | string | What happened, in a few words. |
data[].signals[].url | string | null | Where to read about it: the posting, or an article. |
data[].signals[].type | hiring | funding | import_surge | The kind of signal, as the row's type. |
data[].signals[].job | object | hiring only: the posting. |
data[].signals[].job.id | string | Job ID, such as job_6t2m9x4p1q8w. |
data[].signals[].job.title | string | |
data[].signals[].job.url | string | null | Where to read the posting and apply. |
data[].signals[].job.location | string | null | Where the job is, as the posting says. |
data[].signals[].job.countries | string[] | The countries of its places, as English names. |
data[].signals[].job.workplace | remote | hybrid | on_site | null | Whether the job is remote, hybrid or on site. |
data[].signals[].job.employment | full_time | part_time | contract | internship | null | The kind of contract. |
data[].signals[].job.seniority | string | null | The level the posting asks for. |
data[].signals[].job.posted_at | string | null | Date it was posted, YYYY-MM-DD. |
data[].signals[].job.salary | object | null | Pay as the posting states it. Null when it states none. |
data[].signals[].job.salary.min | number | null | |
data[].signals[].job.salary.max | number | null | |
data[].signals[].job.salary.currency | string | null | |
data[].signals[].job.salary.period | string | null | Such as year or hour. |
data[].signals[].job.department | purchasing | sales | management | operations | marketing | finance | engineering | quality | it | hr | legal | null | Department, read from the title. |
data[].signals[].round | object | funding only: the round. |
data[].signals[].round.stage | pre_seed | seed | series_a | series_b | series_c | series_d | series_e_plus | debt | grant | other | null | Such as seed or series_b. |
data[].signals[].round.amount_usd | number | null | Money raised, in US dollars. |
data[].signals[].round.valuation_usd | number | null | Valuation, in US dollars, when it was made public. |
data[].signals[].round.lead_investors | string[] | The investors who led the round, when named. |
data[].signals[].round.investors | string[] | Every investor named, the leads included. Empty when none is named. |
data[].signals[].imports | object | import_surge only: the customs records of the two periods compared. |
data[].signals[].imports.hs_code | string | null | The HS code the records were counted for. Null for all its imports. |
data[].signals[].imports.recent | object | The latest 3 complete months. |
data[].signals[].imports.recent.since | string | First month, YYYY-MM. |
data[].signals[].imports.recent.until | string | Last month, YYYY-MM. |
data[].signals[].imports.recent.shipments | integer | Shipment records in these months. |
data[].signals[].imports.baseline | object | The 6 months before them. |
data[].signals[].imports.baseline.since | string | First month, YYYY-MM. |
data[].signals[].imports.baseline.until | string | Last month, YYYY-MM. |
data[].signals[].imports.baseline.shipments | integer | Shipment records in these months. |
data[].signals[].imports.growth | number | null | How much more it imported a month in recent than in baseline: 0.44 is 44% more. Null when baseline has none: it started importing. |
data[].signals[].imports.by_month | object[] | null | Shipment records month by month, oldest first. Null in a search, which counts periods only. |
data[].signals[].imports.by_month[].month | string | YYYY-MM |
data[].signals[].imports.by_month[].shipments | integer | |
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 | signal_hiring | signal_funding | signal_import_surge | 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/signals/find \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "northfield-home.example",
"types": [
"hiring"
]
}'{
"data": [
{
"company": {
"id": null,
"name": "SAMPLE Northfield Home Furnishings",
"domain": "northfield-home.example",
"country": "US",
"employees": "201-500",
"industry": "Retail Furniture and Home Furnishings"
},
"type": "hiring",
"why_now": "Posted 2 jobs in the last 30 days, the newest \"Senior Buyer, Upholstery\" (Charlotte, NC) on 2026-11-12.",
"matches": 2,
"signals": [
{
"id": "sig_3k8m2x9p4q1w",
"type": "hiring",
"occurred_at": "2026-11-12",
"title": "Senior Buyer, Upholstery",
"url": "https://careers.northfield-home.example/senior-buyer-upholstery",
"job": {
"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"
},
"department": "purchasing"
}
},
{
"id": "sig_7c1v5n8b2m6t",
"type": "hiring",
"occurred_at": "2026-11-03",
"title": "Sourcing Manager, Vietnam",
"url": "https://careers.northfield-home.example/sourcing-manager-vietnam",
"job": {
"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,
"department": "purchasing"
}
}
]
}
],
"query": {
"domain": "northfield-home.example",
"types": [
"hiring"
],
"since": {
"hiring": "2026-10-24"
}
},
"notice": null,
"usage": {
"cost": 0.03,
"breakdown": [
{
"unit": "signal_hiring",
"records": 1,
"already_paid": 0,
"cost": 0.03
}
],
"balance": 48.97,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会返回同一批样例公司,不收费。