Bilateral trade
Aggregated trade metrics
https://docs.importexportapi.com/endpoints/gettradesummary
gethttps://api.importexportapi.com/trade/summary
Total value, quantity, growth, unit value, top partners and partner concentration (HHI) for any reporter/partner/product/period selection.
curl -X GET "https://api.importexportapi.com/trade/summary" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your importexportapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Query parameters
reporterstring | nullpartnerstring | nullproductstring | nullflowstring | nullfromstring | nulltostring | nullResponse
200Successful Response
application/jsondataTradeSummaryrequiredrequest_idstringdefault ""duration_msintegerdefault 0401Missing or invalid API key
application/jsonerrorstringmessagestringrequest_idstring422Validation Error
application/jsondetailValidationError[]429Rate limit exceeded
application/jsonerrorstringmessagestringrequest_idstring