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/partnerAlso included in Trade Partner 360 , which joins it with 4 other APIs in one call.
Query parameters
| Parameter | Description | Try value |
|---|---|---|
countrystring required | Country name or Census code | |
monthsnumber | Months of trend (default 13, max 60) | |
apikeystring 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).