Skip to Content
Won.dev

Look up a company

Find a company by name or website and get its ID. Billed only when something is found.

GET https://api.won.dev/v1/trade/companies/lookup

Finds a company by name or by website and returns its ID, which every company endpoint takes. Costs $0.02 for a lookup that finds something, however many candidates come back; finding nothing is free. Names are matched as they appear on shipping documents, so one company can come back as several candidates with different countries or spellings: pick by country and shipments. A website only finds companies that a search has returned before; when it finds nothing, look the company up by name.

  • Billing: trade_lookup $0.02: One lookup by name or website that finds at least one company.
  • Mode: waterfall (what the modes mean)

Parameters

Parameters go in the query string, lists comma-separated.

ParameterTypeRequiredDescription
qstringyesA company name, such as Acme Furniture, or its website, such as acme.com.
countrystringnoOnly companies in this country. An ISO code such as US, or an English name such as United States.
limitintegernoHow many candidates to return, 1 to 10. Default: 5.
max_costnumbernoSpending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
dry_runbooleannoIf true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: false.

Response

With dry_run: true nothing runs and data holds only the most the call can cost, see Dry runs. Errors are described in Errors.

FieldTypeDescription
dataobject[]The candidates, best match first.
data[].idstringCompany ID, such as co_8f3k2m9x4p1q.
data[].namestringName as written on shipping documents.
data[].countrystring | nullISO 3166-1 alpha-2 country code, such as US.
data[].websitestring | nullBare domain, such as example.com. Often null.
data[].shipmentsinteger | nullAll shipment records of the company, when known.
data[].last_shipmentstring | nullDate of its latest record, YYYY-MM-DD.
queryobjectThe request as it was understood: country names as codes, the default dates filled in.
noticestring | nullA plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.
usageobjectWhat this call was charged, and the balance left.
usage.unittrade_record | trade_company | trade_company_profile | trade_lookup | person_email | company_channels | trade_stats | trade_official_statsWhat is counted.
usage.recordsintegerHow many were returned and charged.
usage.already_paidintegerHow many more were returned for free, because this organization paid for them in the last 30 days.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue when this is a repeat of a request from the last 24 hours. Repeats are free.

Example

curl "https://api.won.dev/v1/trade/companies/lookup?q=northfield%20home%20furnishings&country=US" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": [
    {
      "id": "co_8f3k2m9x4p1q",
      "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",
      "country": "US",
      "website": "northfield-home.example",
      "shipments": 1840,
      "last_shipment": "2026-11-11"
    }
  ],
  "query": {
    "q": "northfield home furnishings",
    "country": "US",
    "limit": 5
  },
  "notice": null,
  "usage": {
    "unit": "trade_lookup",
    "records": 1,
    "already_paid": 0,
    "cost": 0.02,
    "balance": 48.08,
    "replayed": false
  }
}

A test key (won_test_...) answers this request with the same sample companies, free of charge.

On this page