本文へスキップ
Won.dev
ドキュメントAPIリファレンス
貿易データAPI

リードを探す

ある商品の買い手やサプライヤーを、それぞれへの連絡手段つきで一度に返します。返ったリードごとに課金。

ある商品の買い手(role: importer)またはサプライヤー(role: exporter)を、それぞれへの連絡手段つきで一度に返します。POST /trade/companies/search と同じように企業をランキングし、各社のWebサイトを探してから、確認済みの仕事用メールアドレスを持つ連絡すべき人を探します。支払うのは返ったリードの分だけです。企業に $0.01 と、連絡先1人ごとに $0.03。Webサイトにある共有メールボックス、電話番号、メッセージアプリの連絡先(WhatsAppの番号など)、またはWebサイトのない企業でその社名の地図の店舗情報とSNSのページにあるものしか見つからなかったリードは、$0.01 と $0.02 です。連絡手段のない企業は飛ばされ、費用はかかりません。ランキングを順にたどり、最大で limit の5倍の企業を調べ、最長45秒動きます。調べた企業の数は query.scanned でわかり、next_cursor は最後に調べた企業の次から続けます。require: person_email を指定すると、連絡先が見つかった企業だけを返します。1回の呼び出しで返るのは最大10件です。もっと必要なら next_cursor でページを進めるか、POST /tasks でバックグラウンドで最大500件を探してください。

  • 課金: trade_company $0.01:買い手、サプライヤー、取引先のリストに含まれる企業1社、またはリード1件の企業。person_email $0.03:企業の自社ドメインで確認済みの仕事用メールアドレスを持つ連絡先1人。company_channels $0.02:1社について、そのWebサイト、またはその社名の地図の店舗情報とSNSのページで見つかった共有メールボックス、電話番号、メッセージアプリの連絡先。件数は問いません。
  • モード: composite (各モードの意味)

テストキー(won_test_...)でこのリクエストを送ると、同じサンプル企業が無料で返ります。

POST
/trade/leads/find

認証

apiKey
headerAuthorizationBearer <APIキー>

Authorization: Bearer won_live_..., a key from the console.

ヘッダーパラメータ

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

長さlength <= 255

リクエストボディ

application/json
  1. body
role*string

importer returns the companies that buy the product: buyers. exporter returns the companies that sell it: suppliers.

取りうる値"importer""exporter"
hs_code?string

HS code, digits only, 6 to 10 digits. Six digits are the same in every country; a longer code is one country's own tariff line, matched by prefix. Find the code of a product with GET /trade/hs-codes.

長さlength <= 20
product?string

Product keywords in English, such as office chair. A fuzzy match on the goods description. Use it when you do not know the HS code; an hs_code is more precise.

長さ2 <= length <= 100
importer_country?string

Country the goods are imported into: an ISO code such as US, or an English name such as United States.

長さlength <= 80
exporter_country?string

Country the goods are exported from: an ISO code such as VN, or an English name such as Vietnam.

長さlength <= 80
trading_with?string

Only companies that trade with this one: its co_ ID, or its name. With role: importer these are the buyers of that exporter, with role: exporter the suppliers of that importer. Either way it is matched by its name as it stands in the records, so companies that share the name count together.

長さ2 <= length <= 200
exclude_forwarders?boolean

Leave out freight forwarders and logistics companies, which stand on bills of lading in place of the real buyer or seller.

デフォルトtrue
sort?string

shipments ranks by number of records. recorded_value ranks by declared value; only records that carry a value count, so it favors routes whose exporting country publishes values.

デフォルト"shipments"
取りうる値"shipments""recorded_value"
since?string

First day of the date range, YYYY-MM-DD. Default: the first day of the month 12 months before until.

長さlength <= 10
until?string

Last day of the date range, YYYY-MM-DD. Default: up to the latest records.

長さlength <= 10
seniority?array<>

Only people of these levels: owner, c_level, executive (VP, director, head), manager, senior (a senior individual role, such as Senior Buyer), staff (any other role). Default: any level.

要素items <= 6
デフォルト[]
department?array<>

Only people in these departments. Default: purchasing and management first, which is whom a seller approaches. To reach a supplier, ask for sales.

要素items <= 11
デフォルト[]
min_email_status?string

verified (default) returns only mailboxes that were confirmed to exist. risky also returns addresses on domains that accept every address, which cannot be confirmed. Same price.

デフォルト"verified"
取りうる値"verified""risky"
contacts_per_company?integer

The most contacts to return for each company, 1 to 3.

範囲1 <= value <= 3
デフォルト1
require?string

any_contact (default): every lead has the best way to reach the company that was found, a person's email if there is one, otherwise the shared mailboxes, phone numbers and messaging contacts of its website. person_email: only companies where a person with a verified email was found.

デフォルト"any_contact"
取りうる値"any_contact""person_email"
limit?integer

How many results to return, 1 to 10. You pay for the results returned.

範囲1 <= value <= 10
デフォルト5
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

長さlength <= 200
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.

範囲0 < value
dry_run?boolean

If true, only return the maximum cost of this call. Nothing runs, nothing is charged.

デフォルトfalse

レスポンスボディ

The result. With dry_run, only the maximum cost.

application/json
  1. response
data*array<>

The leads, in the order of the ranked list.

total*integer

How many companies the ranked list has in all.

has_more*boolean

Whether the ranked list goes on after the last company looked at.

next_cursor*|

Pass it as cursor to go on after the last company that was looked at.

query*

The request as it was understood, with the default dates filled in. scanned says how many companies were looked at for this page, passed_over why the ones without a lead gave none, and data_through how recent the records are.

notice*|

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*

What this call was charged, and the balance left.

リクエストの例
curl -X POST 'https://api.won.dev/v1/trade/leads/find' \  -H 'Content-Type: application/json' \  -d '{  "role": "importer",  "hs_code": "940161",  "importer_country": "US",  "limit": 2}'
レスポンスの例
{  "data": [    {      "company": {        "id": "co_8f3k2m9x4p1q",        "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",        "country": "US",        "shipments": 1840,        "recorded_value_usd": 21480350.4,        "website": "northfield-home.example"      },      "contacts": [        {          "id": "per_4m7q2x9k1c8d",          "name": "Jordan Lee",          "title": "Director of Global Sourcing",          "seniority": "executive",          "department": "purchasing",          "email_status": "verified",          "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",          "email": "jordan.lee@northfield-home.example"        }      ],      "channels": null    },    {      "company": {        "id": "co_3d9t6w1b7n5z",        "name": "SAMPLE HARBORSIDE SEATING CO",        "country": "US",        "shipments": 962,        "recorded_value_usd": 9310772.15,        "website": "harborside-seating.example"      },      "contacts": [],      "channels": {        "emails": [          "info@harborside-seating.example",          "sales@harborside-seating.example"        ],        "phones": [          "+15550100142"        ],        "messaging": [          {            "app": "whatsapp",            "value": "+15550100142"          }        ],        "social": {          "linkedin": "https://www.linkedin.com/company/harborside-seating",          "facebook": null,          "twitter": null,          "instagram": null,          "youtube": null,          "tiktok": null,          "pinterest": null        }      }    }  ],  "total": 4087,  "has_more": true,  "next_cursor": "cur_TGVhZHMtMi4xcnpnNA",  "query": {    "role": "importer",    "hs_code": "940161",    "importer_country": "US",    "exclude_forwarders": true,    "sort": "shipments",    "since": "2025-11-01",    "until": "2026-11-20",    "min_email_status": "verified",    "contacts_per_company": 1,    "require": "any_contact",    "limit": 2,    "scanned": 2,    "passed_over": {      "no_website": 0,      "nobody": 0,      "incomplete": 0    },    "data_through": "2026-11-11"  },  "notice": null,  "usage": {    "cost": 0.07,    "breakdown": [      {        "unit": "trade_company",        "records": 2,        "already_paid": 0,        "cost": 0.02      },      {        "unit": "person_email",        "records": 1,        "already_paid": 0,        "cost": 0.03      },      {        "unit": "company_channels",        "records": 1,        "already_paid": 0,        "cost": 0.02      }    ],    "balance": 48.01,    "replayed": false  }}

最終更新日