WITS Trade Flow Statistics
wits-trade.trade.get_statsGet international trade statistics from the World Bank WITS (UN Comtrade data): export/import value, trade share and partner indicators for a reporter country, partner (default World), product/sector and one or more years. Values in US$ thousand for value indicators. Data: wits.worldbank.org, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Year or comma-separated years, max 10 (e.g. "2020" or "2018,2019,2020"). | |
| partner | No | Partner country/region ISO3 code (default "wld" = World). E.g. "chn", "mex". | |
| product | No | Product/sector code (default "Total"). Sector codes like "16-24_FoodProd", "27-27_Fuels", "Food", or HS codes. | |
| reporter | Yes | Reporting country ISO3 code (e.g. "usa", "chn", "deu"). | |
| indicator | No | Trade indicator code (default "XPRT-TRD-VL" = export value, US$ thousand). Others: "MPRT-TRD-VL" (import value), "TRD-VL" (total trade), "XPRT-PRTNR-SHR". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |