Buscar una empresa
Encuentra una empresa por nombre o sitio web y obtén su ID. Se cobra solo cuando encuentra algo.
Encuentra una empresa por nombre o por sitio web y devuelve su ID, que aceptan todos los endpoints de empresas. Cuesta USD 0.02 por una búsqueda que encuentra algo, sin importar cuántos candidatos vuelvan; si no encuentra nada, es gratis. Los nombres se comparan tal como aparecen en los documentos de embarque, así que una empresa puede volver como varios candidatos con distintos países o grafías: elige por country y shipments. Un sitio web solo encuentra empresas que una búsqueda ya devolvió antes; si no encuentra nada, busca la empresa por nombre.
- Cobro:
trade_lookupUSD 0.02: Una búsqueda por nombre o sitio web que encuentra al menos una empresa. - Modo:
waterfall(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.
q*stringA company name, such as Acme Furniture, or its website, such as acme.com.
2 <= length <= 200country?stringOnly companies in this country. An ISO code such as US, or an English name such as United States.
length <= 80limit?integerHow many candidates to return, 1 to 10.
1 <= value <= 105max_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 candidates, best match first.
query*The request as it was understood: country names as codes, the default dates filled in.
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 GET 'https://api.won.dev/v1/trade/companies/lookup?q=northfield+home+furnishings&country=US'{ "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 }}Última actualización: