economics
Indicator forecasts
https://docs.economicsapi.com/endpoints/getforecast
gethttps://api.economicsapi.com/v1/forecast
Predicted indicator values by date. Use country=mexico&indicator=inflation. Lower and upper show the 80% prediction interval. An empty result means no published forecast is available.
curl -X GET "https://api.economicsapi.com/v1/forecast?country=mexico&indicator=inflation" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Query parameters
countrystring | nullCountry name, ISO2/ISO3, slug or group; comma-listable
Example: "mexico"
indicatorstring | nullCommon name (inflation, unemployment), slug, or KPI ID; comma-listable
Example: "inflation"
groupstring | nullindicator group, e.g. prices
horizoninteger | nullonly steps up to this many periods ahead
min 1 · max 12
Response
200Successful Response
application/jsondataForecastCard[]required401Missing or invalid API key
application/jsonerrorstringmessagestringrequest_idstring422Validation Error
application/jsondetailValidationError[]429Rate limit exceeded
application/jsonerrorstringmessagestringrequest_idstring