API reference/International Trade/US Trade with a Country

US Trade with a Country

US goods trade with any partner country: monthly imports, exports and balance, and the top products traded each way.

GET/api/v1/trade/us/partner
Also included in Trade Partner 360 , which joins it with 4 other APIs in one call.

Query parameters

ParameterDescriptionTry value
country
string required
Country name or Census code
months
number
Months of trend (default 13, max 60)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504. Add format= for JSON Lines, CSV, TSV, Excel, XML or YAML (how it works).