x402
Country Trade Data (x402)
Get trade data for a country: top exports/imports, trade balance, trading partners. World Bank API + embedded data.
get/x402/v2/country-trade-data
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/country-trade-data
- Auth: none required
Query parameters
yearnumber
country_codestring required
Response
Success
Example response
{
"note": "Product breakdown and partner data are estimates based on 2023 published trade statistics.",
"year": 2025,
"data_source": "embedded-trade-data",
"top_exports": [
{
"product": "Refined petroleum",
"value_usd": 14000000000,
"share_percent": 7.2
},
{
"product": "Automobiles (Volvo)",
"value_usd": 12000000000,
"share_percent": 6.2
},
{
"product": "Pharmaceuticals",
"value_usd": 11000000000,
"share_percent": 5.6
},
{
"product": "Iron and steel",
"value_usd": 8000000000,
"share_percent": 4.1
},
{
"product": "Telecommunications equipment (Ericsson)",
"value_usd": 8000000000,
"share_percent": 4.1
}
],
"top_imports": [
{
"product": "Crude petroleum",
"value_usd": 12000000000,
"share_percent": 6.2
},
{
"product": "Automobiles",
"value_usd": 11000000000,
"share_percent": 5.6
},
{
"product": "Pharmaceuticals",
"value_usd": 5500000000,
"share_percent": 2.8
},
{
"product": "Broadcasting equipment",
"value_usd": 5000000000,
"share_percent": 2.6
},
{
"product": "Computers",
"value_usd": 4500000000,
"share_percent": 2.3
}
],
"country_code": "SE",
"country_name": "Sweden",
"top_partners": [
{
"type": "export",
"country": "Germany",
"trade_value_usd": 20000000000
},
{
"type": "export",
"country": "Norway",
"trade_value_usd": 18000000000
},
{
"type": "import",
"country": "Germany",
"trade_value_usd": 30000000000
},
{
"type": "import",
"country": "Netherlands",
"trade_value_usd": 15000000000
},
{
"type": "import",
"country": "China",
"trade_value_usd": 12000000000
}
],
"total_exports_usd": 195000000000,
"total_imports_usd": 195000000000,
"trade_balance_usd": 0
}Changes
No recorded changes to this operation across all 1 revision of this API.