BEA — US International Trade Balance
bea.international.trade_balanceRetrieve US international trade balance data from the BEA International Transactions Accounts (ITA) dataset. Covers balance on goods and services, current account balance, goods imports/exports, services imports/exports, and 800+ additional ITA indicators. Filter by country (China, Canada, Mexico, EU, etc.) or use AllCountries for world totals. Values in millions of USD. Annual or quarterly frequency. Official BEA government data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year(s) to retrieve. Single year (e.g. "2023"), comma-separated list ("2021,2022,2023"), "LAST5" for latest 5 years, "LAST10" for latest 10, or "X"/"ALL" for all years. Defaults to LAST5. | |
| frequency | No | Data frequency: A=Annual (default), Q=Quarterly. | |
| indicator | No | BEA ITA indicator code. Common values: "BalGdsServ" (balance on goods and services, default), "BalGds" (goods only), "BalServ" (services only), "BalCurrAcct" (current account balance), "ExpGds" (goods exports), "ImpGds" (goods imports). See BEA ITA documentation for all 889 available indicators. | |
| area_or_country | No | Country or area filter. "AllCountries" (default) for world totals, or a specific country name such as "China", "Canada", "Mexico", "Germany", "Japan". Use "AreaAll" for regional groupings. |
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. |