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

市场简报

从官方进口、货运记录、搜索量和电商在售看一个商品在各国的需求。按有数据的国家计费。

从进口、搜索和购买三方面看一个商品在最多 10 个国家的需求。official 是统计机构公布的各国该 HS 编码的进口:最近 12 个月与之前 12 个月的对比、货物来自哪些国家,以及两年里每个月的数字。某国没有公布近期的本国统计时,用其贸易伙伴报告的数字相加;停止报告的伙伴和没有公布的月份会单独列出,comparable_change_12m 在两年里都去掉停报的伙伴,缺失的数字就不会被误读为下滑。shipments 需要在 sections 里指定才返回,是我们最近 12 个月的货运记录,以及它们占官方金额的比例,用来判断在哪里能找到进口商;对于我们的记录月份很少的国家,改为统计该国自己的进口申报条数,不含金额和来源国(counts_only)。search 是人们在 Google 上用当地语言搜索这个商品的月度搜索量:最近 12 个月及其高峰月和低谷月、各搜索词的占比,许多国家还有主要搜索词多年的数据,用来区分趋势和季节性。不传 terms 时,系统会替你找出搜索词,data.terms 列出了它们。marketplace 是该国 Amazon 站点上 product 的第一页搜索结果:以当地货币计的价格区间、商品显示的过去一个月销量,以及卖得最好的商品。estimates 需要在 sections 里指定才返回,是市场研究网页公布的该商品在该国的市场规模,每个都附带链接、换算成美元,并与该国该 HS 编码的进口和出口对照:在一个大部分进口都留在本国的国家,超过进口 10 倍或不到进口五分之一的规模会被标出,同一市场的规模相差 3 倍以上时为 conflict。不传 hs_code 时,使用描述与 product 最匹配的六位编码,data.hs_code 写明是哪个。每个有货运记录的国家收取 $0.10,只有官方统计或货运件数的国家收取 $0.02,每个有搜索数据的国家收取 $0.15,每个有在售数据的国家收取 $0.03,每个有市场规模的国家收取 $0.05;没有找到数据的国家免费,同一组搜索词的同一批搜索量、没有变化的同一页商品,以及同一批市场规模,30 天内再次返回也免费。搜索量衡量的是兴趣而不是销量,bought_last_month 只是第一页商品的下限。最长约一分半钟返回。下一步:用 POST /trade/companies/search 加上 hs_code 和国家查找它的进口商。

  • 计费: trade_stats $0.10:一次有结果的市场统计查询。trade_official_stats $0.02:一次仅用官方统计、或只用不带金额的货运件数作答的市场统计查询。market_search $0.15:一个国家的一份搜索需求:搜索词 12 个月的搜索量,有存档的国家附带多年数据。market_listings $0.03:一个国家主要电商平台上一个商品的第一页在售商品。market_estimates $0.05:网上公布的一个商品在一个国家的市场规模,并与该国的贸易对照核查。
  • 数据模式: waterfall (各模式的含义)

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

POST
/trade/markets/brief

鉴权

apiKey
headerAuthorizationBearer <API key>

Authorization: Bearer won_live_..., a key from the console.

请求头参数

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

长度length <= 255

请求体

application/json
  1. body
product*string

The product in English, such as ice machine. The marketplaces are searched for it, and the search terms people use for it are found from it.

长度2 <= length <= 80
hs_code?string

The HS code of official and shipments, and of the trade estimates are held against, 6 to 10 digits, such as 841869. Official statistics use its first six digits. Default: the six-digit code whose description best matches product.

长度length <= 20
countries*array<>

The countries to brief, 1 to 10. Each one is charged on its own.

元素1 <= items <= 10
terms?array<>

Your own search terms, in any language and script, such as ["ice machine", "ماكينة ثلج"], up to 30. Default: product and the terms people in these countries use for it.

元素1 <= items <= 30
sections?array<>

Which parts to return. Default: official, search and marketplace. Add shipments for our shipment records, which show where importers can be found, and estimates for the market sizes web pages publish.

元素1 <= items <= 5
默认值
[  "official",  "search",  "marketplace"]
marketplace_query?string

What to search the marketplaces for, when it is not product, such as a narrower ice maker 15 kg.

长度2 <= length <= 100
max_cost?number

Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.

范围0 < value
dry_run?boolean

If true, only return the maximum cost of this call. Nothing runs, nothing is charged.

默认值false

响应体

The result. With dry_run, only the maximum cost.

application/json
  1. response
data*

The brief, one entry for each country.

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 POST 'https://api.won.dev/v1/trade/markets/brief' \  -H 'Content-Type: application/json' \  -d '{  "product": "ice machine",  "countries": [    "SA"  ],  "sections": [    "official",    "shipments",    "search",    "marketplace",    "estimates"  ]}'
响应示例
{  "data": {    "product": "ice machine",    "hs_code": {      "code": "841869",      "description": "Refrigerators, freezers and other refrigerating or freezing equipment, electric or other; heat pumps, other than the air conditioning machines of heading 8415; parts thereof > Other refrigerating or freezing equipment; heat pumps > Other",      "origin": "matched"    },    "terms": [      {        "term": "ice machine",        "language": null      },      {        "term": "ماكينة ثلج",        "language": "ar"      },      {        "term": "صانعة ثلج",        "language": "ar"      }    ],    "countries": [      {        "country": "SA",        "official": {          "basis": "partners",          "value_basis": "fob",          "period": {            "since": "2024-10",            "until": "2026-09"          },          "imports_12m_usd": 192702701,          "prior_12m_usd": 274385528,          "change_12m": -0.2977,          "comparable_change_12m": -0.221,          "partial_months": 10,          "top_origins": [            {              "country": "IT",              "value_usd": 154139116,              "share": 0.33            },            {              "country": "DE",              "value_usd": 51379705,              "share": 0.11            },            {              "country": "US",              "value_usd": 42037941,              "share": 0.09            },            {              "country": "TR",              "value_usd": 32696176,              "share": 0.07            },            {              "country": "CN",              "value_usd": 27000000,              "share": 0.0578            }          ],          "by_month": [            {              "month": "2024-10",              "value_usd": 19399057            },            {              "month": "2024-11",              "value_usd": 17656709            },            {              "month": "2024-12",              "value_usd": 19206987            },            {              "month": "2025-01",              "value_usd": 20990493            },            {              "month": "2025-02",              "value_usd": 21511825            },            {              "month": "2025-03",              "value_usd": 24694698            },            {              "month": "2025-04",              "value_usd": 26327291            },            {              "month": "2025-05",              "value_usd": 27164167            },            {              "month": "2025-06",              "value_usd": 27438553            },            {              "month": "2025-07",              "value_usd": 26587958            },            {              "month": "2025-08",              "value_usd": 22856314            },            {              "month": "2025-09",              "value_usd": 20551476            },            {              "month": "2025-10",              "value_usd": 13624081            },            {              "month": "2025-11",              "value_usd": 12400419            },            {              "month": "2025-12",              "value_usd": 13489189,              "partial": true            },            {              "month": "2026-01",              "value_usd": 14741757,              "partial": true            },            {              "month": "2026-02",              "value_usd": 15107892,              "partial": true            },            {              "month": "2026-03",              "value_usd": 17343243,              "partial": true            },            {              "month": "2026-04",              "value_usd": 18489824,              "partial": true            },            {              "month": "2026-05",              "value_usd": 19077567,              "partial": true            },            {              "month": "2026-06",              "value_usd": 19270270,              "partial": true            },            {              "month": "2026-07",              "value_usd": 18672892,              "partial": true            },            {              "month": "2026-08",              "value_usd": 16052135,              "partial": true            },            {              "month": "2026-09",              "value_usd": 14433432,              "partial": true            }          ],          "stopped_reporting": [            {              "country": "CN",              "last_month": "2024-12",              "share": 0.0578            }          ]        },        "shipments": {          "basis": "partners",          "period": {            "since": "2025-11",            "until": "2026-10"          },          "shipments": 586,          "recorded_value_usd": 7034000,          "value_share": 0.0365,          "top_origins": [            {              "country": "CN",              "shipments": 212            },            {              "country": "IT",              "shipments": 88            },            {              "country": "TR",              "shipments": 61            },            {              "country": "AE",              "shipments": 40            },            {              "country": "DE",              "shipments": 33            }          ],          "by_month": [            {              "month": "2025-11",              "shipments": 52            },            {              "month": "2025-12",              "shipments": 47            },            {              "month": "2026-01",              "shipments": 55            },            {              "month": "2026-02",              "shipments": 49            },            {              "month": "2026-03",              "shipments": 51            },            {              "month": "2026-04",              "shipments": 44            },            {              "month": "2026-05",              "shipments": 50            },            {              "month": "2026-06",              "shipments": 48            },            {              "month": "2026-07",              "shipments": 53            },            {              "month": "2026-08",              "shipments": 46            },            {              "month": "2026-09",              "shipments": 47            },            {              "month": "2026-10",              "shipments": 44            }          ],          "counts_only": false        },        "search": {          "searches_12m": 230140,          "by_month": [            {              "month": "2025-11",              "searches": 9900            },            {              "month": "2025-12",              "searches": 8180            },            {              "month": "2026-01",              "searches": 9050            },            {              "month": "2026-02",              "searches": 11200            },            {              "month": "2026-03",              "searches": 14800            },            {              "month": "2026-04",              "searches": 19600            },            {              "month": "2026-05",              "searches": 25300            },            {              "month": "2026-06",              "searches": 28900            },            {              "month": "2026-07",              "searches": 30100            },            {              "month": "2026-08",              "searches": 27400            },            {              "month": "2026-09",              "searches": 24700            },            {              "month": "2026-10",              "searches": 21010            }          ],          "peak_month": "2026-07",          "low_month": "2025-12",          "peak_to_low": 3.68,          "terms": [            {              "term": "ماكينة ثلج",              "searches_12m": 101260,              "share": 0.44,              "variants": []            },            {              "term": "صانعة ثلج",              "searches_12m": 75950,              "share": 0.33,              "variants": []            },            {              "term": "ice machine",              "searches_12m": 52930,              "share": 0.23,              "variants": [                "ice machines"              ]            }          ],          "history": {            "terms": [              "ماكينة ثلج",              "صانعة ثلج",              "ice machine"            ],            "by_year": [              {                "year": 2021,                "searches": 87000,                "complete": true              },              {                "year": 2022,                "searches": 128400,                "complete": true              },              {                "year": 2023,                "searches": 176900,                "complete": true              },              {                "year": 2024,                "searches": 235200,                "complete": true              },              {                "year": 2025,                "searches": 196300,                "complete": true              },              {                "year": 2026,                "searches": 160500,                "complete": false              }            ],            "change_12m": -0.28          },          "data_through": "2026-10"        },        "marketplace": {          "store": "amazon.sa",          "query": "ice machine",          "results": 2715,          "read": 48,          "price": {            "currency": "SAR",            "median": 356,            "p25": 270,            "p75": 702,            "median_usd": 94.93,            "listings": 40,            "left_out": 8          },          "bought_last_month": {            "at_least": 850,            "listings": 9          },          "top": [            {              "title": "Countertop ice maker, 12 kg a day, self-cleaning",              "price": 279.99,              "currency": "SAR",              "ratings": 1840,              "bought_last_month": 400,              "url": "https://www.amazon.sa/dp/EXAMPLE0001"            },            {              "title": "Portable ice machine, 9 bullet ice cubes in 6 minutes",              "price": 329,              "currency": "SAR",              "ratings": 960,              "bought_last_month": 200,              "url": "https://www.amazon.sa/dp/EXAMPLE0002"            }          ]        },        "estimates": {          "figures": [            {              "figure": "USD 101.25 million",              "value_usd": 101250000,              "year": 2025,              "market": "Ice maker market",              "scope": "same",              "publisher": "Example Research",              "url": "https://example.com/reports/saudi-arabia-ice-maker-market",              "times_imports": 0.369,              "check": "consistent"            },            {              "figure": "$4.15 billion",              "value_usd": 4150000000,              "year": 2024,              "market": "Commercial ice makers and ice machines market",              "scope": "same",              "publisher": null,              "url": "https://example.com/pulse/saudi-arabia-commercial-ice-machines-market",              "times_imports": 15.1,              "check": "too_high"            },            {              "figure": "USD 350 million",              "value_usd": 350000000,              "year": 2024,              "market": "Granular ice makers market",              "scope": "narrower",              "publisher": null,              "url": "https://example.com/pulse/saudi-arabia-granular-ice-makers-market",              "times_imports": 1.28,              "check": "consistent"            }          ],          "imports_usd": 274385528,          "exports_usd": 9850000,          "agreement": null        }      }    ]  },  "query": {    "product": "ice machine",    "countries": [      "SA"    ],    "sections": [      "official",      "shipments",      "search",      "marketplace",      "estimates"    ]  },  "notice": "`official` and `shipments` are for HS 841869, the code whose description best matches `product` (see `data.hs_code`). Pass `hs_code` if it is not the right one. Saudi Arabia publishes no recent statistics of its own, so `official` adds up what partners report. Partners that publish nothing are missing, so it is a lower bound. China reported nothing after 2024-12 in the partners' numbers for Saudi Arabia, most likely because it has published nothing since, or publishes late, so the months after look lower than the trade was: read `comparable_change_12m`, which leaves it out of both years. Months marked `partial` in `official` still grow as late reports arrive, so `change_12m` reads lower than it will be. Saudi Arabia declares no shipment records, so `shipments` are the export records of partners that name it, and incomplete. `estimates` are what market research pages publish: unverified, often far apart, and sometimes for a wider or a narrower market (`scope`). Read `check` and `agreement` before using one. Some market sizes published for Saudi Arabia are more than 10 times the imports of the HS code, or under a fifth of them, though most of what is imported stays: `check` marks them as unlikely.",  "usage": {    "cost": 0.33,    "breakdown": [      {        "unit": "trade_stats",        "records": 1,        "already_paid": 0,        "cost": 0.1      },      {        "unit": "market_search",        "records": 1,        "already_paid": 0,        "cost": 0.15      },      {        "unit": "market_listings",        "records": 1,        "already_paid": 0,        "cost": 0.03      },      {        "unit": "market_estimates",        "records": 1,        "already_paid": 0,        "cost": 0.05      }    ],    "balance": 47.67,    "replayed": false  }}

最后更新于