Indicators

Trading Economics forecasts are built using a proprietary global macro model that takes into account our analysts’ expectations, correlations between countries, and a set of logical relationships between different indicators.

By country

Get forecast indicator data by country

/forecast/country/{country}

te.getForecastData(country='mexico', output_type='df')
data = te.getForecasts(country = 'mexico').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/country/mexico?c=guest:guest");

/forecast/country/{countries}

te.getForecastData(country= ['mexico', 'sweden' ], output_type='df')
data = te.getForecasts(country = ['mexico','sweden']).then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/country/mexico,sweden?c=guest:guest");

By indicator

Get forecast indicator data by indicator

/forecast/indicator/{indicator}

te.getForecastData(indicator= 'gdp', output_type='df')
data = te.getForecasts(indicator = 'gdp').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/indicator/gdp?c=guest:guest");

/forecast/indicator/{indicators}

te.getForecastData(indicator= ['gdp', 'population'], output_type='df')
data = te.getForecasts(indicator = ['gdp','population']).then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/indicator/gdp,population?c=guest:guest");

By country and indicator

Get forecast indicator data by country and indicator

/forecast/country/{country}/indicator/{indicator}

te.getForecastData(country='mexico', indicator='gdp', output_type='df')
data = te.getForecasts(country = 'mexico', indicator = 'gdp').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/country/mexico/indicator/gdp?c=guest:guest");

/forecast/country/{countries}/indicator/{indicators}

te.getForecastData(country= ['mexico','sweden'],
 indicator= ['gdp','population'], output_type='df')
data = te.getForecasts(country = ['mexico','sweden'],
 indicator = ['gdp','population']).then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/country/mexico,sweden/indicator/gdp,population?c=guest:guest");

By ticker

Get forecast indicator data by ticker

/forecast/ticker/{ticker}

te.getForecastByTicker(ticker= 'usurtot', output_type='df')
data = te.getForecasts(ticker = 'usurtot').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/ticker/usurtot?c=guest:guest");

/forecast/ticker/{tickers}

te.getForecastByTicker(ticker= ['usurtot', 'wgdpchin'], output_type='df')
data = te.getForecasts(ticker = ['usurtot','wgdpchin']).then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/forecast/ticker/usurtot,wgdpchin?c=guest:guest");

Response fields

FieldTypeDescriptionExample
Country*stringCountry name“Mexico”
CategorystringName of the indicator“Auto Exports”
TitlestringCombination of country and indicator name“Mexico Auto Exports”
LatestValuenumberLast released value272.69
LatestValueDatestringDate of the last released value“2023-03-31T00:00:00”
ForecastValue1Q**numberForecast value for the next quarter257.00
ForecastValue2Q**numberForecast value for the quarter following ForecastValue1Q250.00
ForecastValue3Q**numberForecast value for the quarter following ForecastValue2Q239.00
ForecastValue4Q**numberForecast value for the quarter following ForecastValue3Q274.00
ForecastValue1**numberForecast value for the year end239.00
ForecastValue2**numberForecast value for the year end following ForecastValue1242.00
ForecastValue3**numberForecast value for the year end following ForecastValue2232.00
q1_datestringDate for ForecastValue1Q“2023-06-30T00:00:00”
q2_datestringDate for ForecastValue2Q“2023-09-30T00:00:00”
q3_datestringDate for ForecastValue3Q“2023-12-31T00:00:00”
q4_datestringDate for ForecastValue4Q“2024-03-31T00:00:00”
FrequencystringFrequency of the indicator“Monthly”
UnitstringUnit of the forecasted values“Thousand Units”
HistoricalDataSymbolstringUnique symbol used by Trading Economics“MEXICOAUTEXP”

*Country only appears in the packages or when using ‘&f=json’ on endpoints.

**Forecast response fields can be diferent from HTML response fields:

Python/NodeHTML
yearendForecastValue1
yearend2ForecastValue2
yearend3ForecastValue3
q1ForecastValue1Q
q2ForecastValue2Q
q3ForecastValue3Q
q4ForecastValue4Q