Country trade
Country product mix
https://docs.importexportapi.com/endpoints/getcountryproducts
gethttps://api.importexportapi.com/countries/{cid}/products
What a country trades, grouped by HS6 product and ranked by value, for either flow direction.
curl -X GET "https://api.importexportapi.com/countries/example/products" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your importexportapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Path parameters
cidstringrequiredQuery parameters
flowstring | nullfromstring | nulltostring | nulllimitintegerdefault 50min 1 · max 500
Response
200Successful Response
application/jsondataGroupedPoint[]requiredrequest_idstringdefault ""duration_msintegerdefault 0401Missing or invalid API key
application/jsonerrorstringmessagestringrequest_idstring422Validation Error
application/jsondetailValidationError[]429Rate limit exceeded
application/jsonerrorstringmessagestringrequest_idstring