Br Trade Flows
br_trade_flowsBrazil exports/imports over a date range, from MDIC Comex Stat — Brazil’s own customs trade statistics, PROXIED LIVE (not a bulk copy). Monthly granularity at NCM8 (Brazil’s 8-digit national tariff code, finer than the HS6 that UN Comtrade reports for Brazil), with an optional breakdown by Brazilian state of origin/destination — a dimension Comtrade does not have. Filter by a specific NCM product code, an NCM/HS chapter (2-digit), a partner country, and/or a Brazilian state; any combination, or none (totals). Returns value in USD FOB and net weight in kg, with every code resolved to its name. Use for "Brazil’s soybean exports to China by month in 2025" (ncm="12019000", country="China", from="2025-01", to="2025-12") or "Mato Grosso’s exports in Q1 2025" (state="MT", from="2025-01", to="2025-03").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End of period: "YYYY" or "YYYY-MM" (e.g. "2025" or "2025-12"). Inclusive. | |
| ncm | No | Full 8-digit NCM product code (e.g. "12019000" = soybeans, other than for sowing). Omit for all products. | |
| flow | No | Trade direction: "export" or "import". Defaults to "export". | |
| from | Yes | Start of period: "YYYY" or "YYYY-MM" (e.g. "2025" or "2025-01"). | |
| state | No | Brazilian state name or two-letter UF abbreviation (e.g. "Mato Grosso" or "MT"). Omit for all of Brazil. | |
| chapter | No | 2-digit NCM/HS chapter code (e.g. "12" = oilseeds and grains, "27" = mineral fuels/oils). Omit for all chapters. Use this OR ncm, not both. | |
| country | No | Partner country name (e.g. "China", "United States") or Comex Stat country id. Omit for all countries (world total). | |
| monthly | No | true (default) returns one row per month; false collapses the whole period into a single total. |