Consultar estatísticas de mercado
Tamanho de mercado, participação por país e tendências mensais, a partir de registros de embarque e estatísticas oficiais.
Mede um mercado e mostra onde ele está e como se move: totais, os países dos dois lados e uma série mês a mês, para um produto ou para uma empresa. A resposta mantém separados dois tipos de números. records conta nossos registros de embarque e soma os valores declarados: serve para tendências e para o ritmo de compras de uma empresa, mas não é o total do mercado, porque a cobertura varia por país e os conhecimentos de embarque dos EUA não trazem valor. official é o que os órgãos de estatística publicam: use para o tamanho do mercado e a participação de cada país. Existe quando há um hs_code e a consulta indica o país importador ou o exportador, para mais de 200 países e territórios: as estatísticas do próprio país quando ele publica, e, se não, o que os parceiros informam sobre o comércio com ele, marcado como mirror. Fica uns dois meses atrás do mês atual para os Estados Unidos, a UE e o Reino Unido, e muitas vezes mais em outros lugares. coverage.recorded_value_share diz quanto do valor oficial os valores registrados representam. Custa US$ 0,10 por consulta com resultados, ou US$ 0,02 quando só official é pedido ou encontrado; sem resultados é grátis. Meses marcados como partial ainda estão sendo completados: não os leia como queda. O período pode cobrir até 36 meses.
- Cobrança:
trade_statsUS$ 0,10: Uma consulta de estatísticas de mercado com resultados.trade_official_statsUS$ 0,02: Uma consulta de estatísticas de mercado respondida só com estatísticas oficiais, ou com contagens de embarques sem valores. - Modo:
merge(o que cada modo significa)
Uma chave de teste (won_test_...) responde a esta requisição com as mesmas empresas de exemplo, sem custo.
apiKeyAuthorizationBearer <chave 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
hs_code?stringHS code, digits only. 6 to 10 digits for shipment records. Official statistics alone (basis: ["official"]) also take a 2-digit chapter or a 4-digit heading, such as 9401.
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 <= 100company?stringOnly the records of this company: its co_ ID, or its name. Shows what one buyer or seller trades over time. Needs role. An ID with no hs_code, product or country, over the last 12 months (the default range), counts the company itself by its ID. Otherwise it is matched by its name as it stands in the records, so companies that share the name count together. records.company_match says which. Official statistics do not exist by company.
2 <= length <= 200role?stringWith company: count what it imports, or what it exports.
"importer""exporter"importer_country?stringCountry the goods are imported into: an ISO code such as US, or an English name such as United States. EU is the European Union as a whole, in official statistics only.
length <= 80exporter_country?stringCountry the goods are exported from: an ISO code such as VN, or an English name such as Vietnam. EU is the European Union as a whole, in official statistics only.
length <= 80since?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 <= 10basis?array<>Which numbers to return. Default: both. official alone is cheaper and answers from official statistics only.
1 <= items <= 2[ "records", "official"]top?integerHow many countries each breakdown lists, 1 to 50.
1 <= value <= 5020max_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*The statistics, one part for each kind of number.
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/stats/query' \ -H 'Content-Type: application/json' \ -d '{ "hs_code": "940161", "importer_country": "US"}'{ "data": { "records": { "shipments": 1165783, "recorded_value_usd": 2620186000, "by_importer_country": [ { "country": "US", "shipments": 1021440 } ], "by_exporter_country": [ { "country": "VN", "shipments": 932019 }, { "country": "MY", "shipments": 104871 }, { "country": "MX", "shipments": 58330 } ], "by_month": [ { "month": "2026-07", "shipments": 118420, "recorded_value_usd": 251340118.2, "partial": false }, { "month": "2026-08", "shipments": 121077, "recorded_value_usd": 259871402.75, "partial": false }, { "month": "2026-09", "shipments": 126295, "recorded_value_usd": 270019576.35, "partial": false }, { "month": "2026-10", "shipments": 98114, "recorded_value_usd": 204118330.1, "partial": true }, { "month": "2026-11", "shipments": 5526, "recorded_value_usd": 3393700.19, "partial": true } ] }, "official": { "reporter": "US", "flow": "import", "period": { "since": "2025-11", "until": "2026-09" }, "value_usd": 4813000000, "value_basis": "customs", "cif_value_usd": 5102000000, "by_partner_country": [ { "country": "VN", "value_usd": 2888000000, "share": 0.6 }, { "country": "MX", "value_usd": 722000000, "share": 0.15 }, { "country": "CN", "value_usd": 481000000, "share": 0.1 } ], "by_month": [ { "month": "2026-07", "value_usd": 428000000 }, { "month": "2026-08", "value_usd": 417000000 }, { "month": "2026-09", "value_usd": 401000000 } ], "source": "official_statistics" }, "coverage": { "recorded_value_share": 0.6321 } }, "query": { "hs_code": "940161", "importer_country": "US", "since": "2025-11-01", "until": "2026-11-20", "basis": [ "records", "official" ], "top": 20, "data_through": "2026-11-11" }, "notice": null, "usage": { "unit": "trade_stats", "records": 1, "already_paid": 0, "cost": 0.1, "balance": 47.98, "replayed": false }}Última atualização em
Encontrar leads
Compradores ou fornecedores de um produto com um jeito de falar com cada um, numa única chamada. Cobrado por lead retornado.
Panorama de um mercado
A demanda de um produto por país, a partir de importações oficiais, registros de embarque, buscas e anúncios em marketplaces. Cobrado por país com dados.