跳到正文
Won.dev
海关数据 API

公司详情

公司档案和贸易概况,可按需附带贸易伙伴、最近货运记录、联系人和公开渠道。

GET https://api.won.dev/v1/trade/companies/{id}

返回一家公司的信息:所在地、进口商还是出口商、贸易概况(货运记录数、供应商和买家数量、HS 编码、最近一次出货),以及已知的公开联系渠道。收取 $0.04。include 可以在同一次调用中追加以下内容,各自按对应单位计费,按实际返回的数量收费:partners(前 10 大供应商,以出口为主的公司则为买家;每家 $0.01)、recent_shipments(最近 10 条记录;每条 $0.005)、contacts(最多 5 位采购和管理层联系人,附带验证过的工作邮箱;每位 $0.03)和 channels(读取公司官网上的公共邮箱、电话、WhatsApp 等即时通讯账号和社交媒体主页;官网上有才收取 $0.02)。加载失败的部分返回 null,不收费。如需其他筛选条件或更多结果,请调用该公司的 partners、shipments 和 contacts 接口。

  • 计费: trade_company_profile $0.04:一份公司档案。trade_company $0.01:买家、供应商或贸易伙伴列表中的一家公司,或一条线索中的公司。trade_record $0.005:一条货运记录。person_email $0.03:一位联系人,附带公司自有域名下、已通过验证的工作邮箱。company_channels $0.02:从一家公司官网上找到的公共邮箱、电话或即时通讯账号,不论数量多少。
  • 数据模式: merge (各模式的含义)

参数

id 放在路径中,其余参数放在查询字符串里,多个值用英文逗号分隔。

参数类型必填说明(API 原文)
idstring是Company ID, such as co_8f3k2m9x4p1q. Search results carry it; GET /trade/companies/lookup?q= finds it by name.
include(partners | recent_shipments | contacts | channels)[]否Parts to add: partners, recent_shipments, contacts, channels. Each is billed by its own unit.
max_costnumber否Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
dry_runboolean否If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: false.

响应

传入 dry_run: true 时不执行查询,data 中只返回本次调用的最高费用,见预估费用。错误说明见错误码。

字段类型说明(API 原文)
dataobjectThe company, with the parts asked for in include.
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.typeimporter | exporter | both | nullWhether it imports, exports or both, by its records.
data.websitestring | nullBare domain, such as example.com. Null when not known.
data.addressstring | nullAddress as on its records.
data.channelsobjectWays to reach the company that it publishes itself. People are in contacts.
data.channels.emailsstring[]Shared addresses such as info@ and sales@.
data.channels.phonesstring[]Phone numbers the company publishes: in E.164, such as +4952112340, when the country can be told, else as printed. Fax numbers are left out.
data.channels.messagingobject[]WhatsApp, WeChat, Zalo, LINE, Skype and Telegram contacts the company gives.
data.channels.messaging[].appwhatsapp | wechat | zalo | line | skype | telegram
data.channels.messaging[].valuestringA number in E.164 for WhatsApp, else the ID or number as printed.
data.channels.socialobjectLinks to its public pages. Null where none is known.
data.channels.social.linkedinstring | null
data.channels.social.facebookstring | null
data.channels.social.twitterstring | null
data.channels.social.instagramstring | null
data.channels.social.youtubestring | null
data.channels.social.tiktokstring | null
data.channels.social.pintereststring | null
data.tradeobject | nullNull when no trade summary is known yet.
data.trade.shipmentsinteger | nullAll shipment records of the company.
data.trade.suppliersinteger | nullNumber of distinct suppliers.
data.trade.buyersinteger | nullNumber of distinct buyers.
data.trade.hs_codesstring[]HS codes it trades, digits only.
data.trade.last_shipmentstring | nullDate of its latest record, YYYY-MM-DD.
data.partnersobject[] | nullWith include=partners: the largest trading partners of the last 12 months. role says whether they are suppliers or buyers.
data.partners[].idstringCompany ID, such as co_8f3k2m9x4p1q.
data.partners[].namestringName as written on shipping documents.
data.partners[].rolesupplier | buyerWhat it is to the company asked about.
data.partners[].countrystring | nullISO 3166-1 alpha-2 country code, such as US.
data.partners[].shipmentsintegerNumber of shipment records. A count of records, not a market share: countries that publish every declaration are over-represented.
data.partners[].recorded_value_usdnumber | nullSum of the declared values of the records that have one, in US dollars. A lower bound: US bills of lading carry no value.
data.partners[].sharenumber | nullThis partner's part of the company's records in the same direction, from 0 to 1. Shows how concentrated its suppliers or buyers are.
data.partners[].websitestring | nullBare domain, such as example.com. Often null.
data.partners[].sample_productstring | nullA goods description from one of its records.
data.recent_shipmentsobject[] | nullWith include=recent_shipments: the latest records of the last 12 months.
data.recent_shipments[].idstringShipment ID, such as shp_5k2m8x1q9d3f.
data.recent_shipments[].datestring | nullDate of the record, YYYY-MM-DD.
data.recent_shipments[].importerobjectThe buyer on the record.
data.recent_shipments[].importer.idstring | nullCompany ID. Pass it to the company endpoints. Null when the party is not named.
data.recent_shipments[].importer.namestring | nullName as written on the record.
data.recent_shipments[].importer.countrystring | nullISO 3166-1 alpha-2 country code, such as US.
data.recent_shipments[].exporterobjectThe seller on the record.
data.recent_shipments[].exporter.idstring | nullCompany ID. Pass it to the company endpoints. Null when the party is not named.
data.recent_shipments[].exporter.namestring | nullName as written on the record.
data.recent_shipments[].exporter.countrystring | nullISO 3166-1 alpha-2 country code, such as US.
data.recent_shipments[].hs_codestring | nullHS code as declared, digits only.
data.recent_shipments[].descriptionstring | nullGoods description, at most 200 characters.
data.recent_shipments[].description_truncatedbooleanPresent and true when description was cut. Ask for description_full.
data.recent_shipments[].quantitynumber | nullQuantity as declared, in quantity_unit.
data.recent_shipments[].quantity_unitstring | nullUnit of quantity as declared.
data.recent_shipments[].weight_kgnumber | nullWeight in kilograms.
data.recent_shipments[].value_usdnumber | nullDeclared value. Null when the record has none, as on US bills of lading.
data.recent_shipments[].origin_countrystring | nullCountry of origin of the goods.
data.recent_shipments[].loading_portstring | nullPort where the goods were loaded.
data.recent_shipments[].unloading_portstring | nullPort where the goods were unloaded.
data.recent_shipments[].transportsea | air | road | rail | other | nullMode of transport.
data.recent_shipments[].reported_byobject | nullWhose customs declaration this record is. A US import can be recorded by a US bill of lading (US, import) and again by the exporter's declaration (VN, export).
data.recent_shipments[].reported_by.countrystringISO 3166-1 alpha-2 country code, such as US.
data.recent_shipments[].reported_by.flowimport | exportWhether that country recorded it as an import or as an export.
data.recent_shipments[].unit_price_usdnumber | nullDeclared value for one unit of quantity, in US dollars.
data.recent_shipments[].incotermstring | nullTrade term, such as FOB or CIF.
data.recent_shipments[].brandstring | nullBrand named on the record.
data.recent_shipments[].bill_of_ladingstring | nullBill of lading or declaration number, as on the customs record.
data.recent_shipments[].description_fullstring | nullThe whole goods description, however long.
data.contactsobject[] | nullWith include=contacts: people to approach, each with a verified work email.
data.contacts[].idstringPerson ID, such as per_4m7q2x9k1c8d. Kept for your account for 90 days after it was last returned, with the email: pass it as contact_id to add the person to a campaign.
data.contacts[].namestring | nullFull name.
data.contacts[].titlestring | nullJob title.
data.contacts[].seniorityowner | c_level | executive | manager | senior | staff | nullLevel, read from the title.
data.contacts[].departmentpurchasing | sales | management | operations | marketing | finance | engineering | quality | it | hr | legal | nullDepartment, read from the title.
data.contacts[].emailstringWork email on the company's own domain.
data.contacts[].email_statusverified | riskyverified: the mailbox exists. risky: the domain accepts every address, so the mailbox cannot be confirmed.
data.contacts[].linkedin_urlstring | nullThe person's LinkedIn profile, when known.
data.contacts[].other_emailstring | nullAnother email address listed for the person. Often on the company's domain too, but it can be a private address, and it is not verified.
data.contacts[].phonesstring[]Phone numbers listed for the person: a direct line, a mobile or the company's switchboard. Not verified.
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.costnumberWhat this call cost, in US dollars.
usage.breakdownobject[]Every billing unit that came back, charged or not. Empty when nothing did.
usage.breakdown[].unittrade_record | trade_company | trade_company_profile | trade_lookup | person_email | company_channels | trade_stats | trade_official_statsWhat is counted.
usage.breakdown[].recordsintegerHow many were returned and charged.
usage.breakdown[].already_paidintegerHow many more were returned for free, because this organization paid for them in the last 30 days.
usage.breakdown[].costnumberWhat they 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.

示例

curl "https://api.won.dev/v1/trade/companies/co_8f3k2m9x4p1q?include=contacts" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": {
    "id": "co_8f3k2m9x4p1q",
    "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",
    "country": "US",
    "type": "importer",
    "website": "northfield-home.example",
    "address": "1200 Sample Parkway, Charlotte, NC 28202, United States",
    "channels": {
      "emails": [
        "info@northfield-home.example",
        "sales@northfield-home.example"
      ],
      "phones": [
        "+15550100142"
      ],
      "messaging": [
        {
          "app": "whatsapp",
          "value": "+15550100142"
        }
      ],
      "social": {
        "linkedin": "https://www.linkedin.com/company/northfield-home",
        "facebook": null,
        "twitter": null,
        "instagram": null,
        "youtube": null,
        "tiktok": null,
        "pinterest": null
      }
    },
    "trade": {
      "shipments": 1840,
      "suppliers": 3,
      "buyers": 0,
      "hs_codes": [
        "940161",
        "940171",
        "940190"
      ],
      "last_shipment": "2026-11-11"
    },
    "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"
      }
    ]
  },
  "query": {
    "id": "co_8f3k2m9x4p1q",
    "include": [
      "contacts"
    ]
  },
  "notice": null,
  "usage": {
    "cost": 0.07,
    "breakdown": [
      {
        "unit": "trade_company_profile",
        "records": 1,
        "already_paid": 0,
        "cost": 0.04
      },
      {
        "unit": "person_email",
        "records": 1,
        "already_paid": 0,
        "cost": 0.03
      }
    ],
    "balance": 48.01,
    "replayed": false
  }
}

用测试 key(won_test_...)发送这个请求,会返回同一批样例公司,不收费。

本页内容