Skip to content
Docs
Get API key
Forecast

Forecasts Latest Updates

Use the following API endpoints to obtain the latest updates on forecast data.

List all forecast updates with their related country, category, and ticker.

Updates

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/updates?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
import tradingeconomics as te
te.login('your_api_key')
te.getForecastUpdates()

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/forecasts/updates?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Albania",
    "Category": "CPI Transportation",
    "Ticker": "ALBANIACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Albania",
    "Category": "Gasoline Prices",
    "Ticker": "AlbaniaGasPri",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Angola",
    "Category": "CPI Transportation",
    "Ticker": "ANGOLACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  }
]

By date

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/updates?start_date=2024-10-30&c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getForecastUpdates(init_date = '2024-10-30')

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/forecasts/updates?c={your_api_key}&start_date={yyyy-mm-dd}&f=json
JSON
[
  {
    "Country": "Albania",
    "Category": "CPI Transportation",
    "Ticker": "ALBANIACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Albania",
    "Category": "Gasoline Prices",
    "Ticker": "AlbaniaGasPri",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Angola",
    "Category": "CPI Transportation",
    "Ticker": "ANGOLACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  }
]

By country

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/forecast/updates?country=albania&c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getForecastUpdates(country = 'albania')

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/forecasts/updates?c={your_api_key}&country={country}&f=json
JSON
[
  {
    "Country": "Albania",
    "Category": "CPI Transportation",
    "Ticker": "ALBANIACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Albania",
    "Category": "Gasoline Prices",
    "Ticker": "AlbaniaGasPri",
    "LastUpdate": "2024-12-02T18:15:00"
  },
  {
    "Country": "Angola",
    "Category": "CPI Transportation",
    "Ticker": "ANGOLACPITRA",
    "LastUpdate": "2024-12-02T18:15:00"
  }
]

Response fields

FieldTypeDescriptionExample
CountrystringName of the country associated with the indicator.“Albania”
CategorystringName of the economic indicator.“CPI Transportations”
TickerstringUnique ticker used by Trading Economics“ANGOLACPITRA”
LastUpdatestringTimestamp of the most recent update to the data (insert or change), in UTC.“12/2/2024 6:15:00 PM”