UN Comtrade — Bilateral Trade Flows
globalpulse_trade_get_bilateral_flowsRetrieve bilateral trade flows (imports and exports) between country pairs using UN Comtrade data, filtered by year, commodity code, and flow direction.
Instructions
Bilateral trade data from UN Comtrade. Imports, exports by country pair and HS commodity code. Common HS codes: TOTAL (all), "27" (oil/fuel), "84" (machinery), "85" (electronics), "87" (vehicles), "30" (pharma), "10" (cereals). Args: reporter, partner (default "world"), year (2000-2023), flow ("all","X","M"), commodity_code, limit, response_format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | all | |
| year | No | ||
| limit | No | ||
| partner | No | world | |
| reporter | Yes | ||
| commodity_code | No | TOTAL | |
| response_format | No | markdown |