Encontrar compradores o proveedores
Ordena las empresas que importan o exportan un producto. Se cobra por empresa devuelta.
Ordena las empresas que importan o exportan un producto: compradores con role: importer, proveedores con role: exporter. Cuesta USD 0.01 por cada empresa devuelta; un resultado vacío es gratis. shipments cuenta registros aduaneros y recorded_value_usd suma solo los registros que declaran un valor, así que ninguno de los dos es una participación de mercado: para el tamaño del mercado, usa POST /trade/stats/query. country es donde se declaró la mercancía, no siempre donde está registrada la empresa. Las filas de una misma empresa se fusionan, así que una página puede traer menos de limit. Más o menos una de cada tres empresas tiene website; POST /trade/leads/find y el endpoint de contactos buscan el resto. Siguiente paso: GET /trade/companies/{id} para el perfil de una empresa, o POST /trade/leads/find para obtener esta lista con contactos en una sola llamada.
- Cobro:
trade_companyUSD 0.01: Una empresa en una lista de compradores, proveedores o socios, o la empresa de un lead. - Modo:
proxy(qué significa cada modo)
Una clave de prueba (won_test_...) responde esta solicitud con las mismas empresas de muestra, sin costo.
apiKeyAuthorizationBearer <clave de API>Authorization: Bearer won_live_..., a key from the console.
Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
role*stringimporter returns the companies that buy the product: buyers. exporter returns the companies that sell it: suppliers.
"importer""exporter"hs_code?stringHS 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 <= 20product?stringProduct 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 <= 100importer_country?stringCountry the goods are imported into: an ISO code such as US, or an English name such as United States.
length <= 80exporter_country?stringCountry the goods are exported from: an ISO code such as VN, or an English name such as Vietnam.
length <= 80trading_with?stringOnly 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 <= 200exclude_forwarders?booleanLeave out freight forwarders and logistics companies, which stand on bills of lading in place of the real buyer or seller.
truesort?stringshipments 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?stringFirst day of the date range, YYYY-MM-DD. Default: the first day of the month 12 months before until.
length <= 10until?stringLast day of the date range, YYYY-MM-DD. Default: up to the latest records.
length <= 10limit?integerHow many results to return, 1 to 100. You pay for the results returned.
1 <= value <= 10010cursor?stringTo get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.
length <= 200max_cost?numberSpending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
0 < valuedry_run?booleanIf true, only return the maximum cost of this call. Nothing runs, nothing is charged.
falseThe result. With dry_run, only the maximum cost.
application/json- response
data*array<>The results of this page.
total*integerHow many results match in all. Use it to decide between paging on and narrowing the query.
has_more*booleanWhether more results follow this page.
next_cursor*|Pass it as cursor to get the next page. Null on the last page.
query*The request as it was understood: country names as codes, the default dates filled in. data_through says how recent the records behind the answer 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/companies/search' \ -H 'Content-Type: application/json' \ -d '{ "role": "importer", "hs_code": "940161", "importer_country": "US", "limit": 2}'{ "data": [ { "id": "co_8f3k2m9x4p1q", "name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC", "role": "importer", "country": "US", "shipments": 1840, "recorded_value_usd": 21480350.4, "website": "northfield-home.example", "sample_product": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER" }, { "id": "co_3d9t6w1b7n5z", "name": "SAMPLE HARBORSIDE SEATING CO", "role": "importer", "country": "US", "shipments": 962, "recorded_value_usd": 9310772.15, "website": "harborside-seating.example", "sample_product": "RECLINER SOFA SET, LEATHER, 3 SEATER" } ], "total": 4087, "has_more": true, "next_cursor": "cur_Zx81kQp4b2JtMW0uMXJ6ZzQ", "query": { "role": "importer", "hs_code": "940161", "importer_country": "US", "exclude_forwarders": true, "sort": "shipments", "since": "2025-11-01", "until": "2026-11-20", "data_through": "2026-11-11" }, "notice": null, "usage": { "unit": "trade_company", "records": 2, "already_paid": 0, "cost": 0.02, "balance": 48.08, "replayed": false }}Última actualización: