trade
Product trade series
https://docs.economicsapi.com/endpoints/getproducthistory
gethttps://api.economicsapi.com/v1/trade/products/{pid}/history
Annual trade series for one product, optionally filtered by reporter/partner and flow direction.
curl -X GET "https://api.economicsapi.com/v1/trade/products/example/history" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Path parameters
pidstringrequiredQuery parameters
reporterstring | nullpartnerstring | nullflowstring | nullfromstring | nulltostring | nullResponse
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