Skip to content
Docs
Get API key
Indicators

Indicators Latest Updates

Use the API to obtain the latest indicator updates.

This section’s endpoints provide a list of the latest updates, additions, or revisions applied to datasets or other information.

Latest Updates

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/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.getLatestUpdates()

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

Text
https://api.tradingeconomics.com/updates?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Colombia",
    "Category": "Food Inflation",
    "HistoricalDataSymbol": "COLOMBIAFOOINF",
    "LastUpdate": "2023-10-09T19:06:33.953"
  },
  {
    "Country": "France",
    "Category": "Electricity Price",
    "HistoricalDataSymbol": "FRAELEPRI",
    "LastUpdate": "2023-10-09T18:00:18.223"
  },
  {
    "Country": "Tanzania",
    "Category": "Inflation Rate",
    "HistoricalDataSymbol": "TANZANIAIR",
    "LastUpdate": "2023-10-09T17:17:49.073"
  }
]

By date

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/updates/2021-10-18?c={your_api_key}&time=15:20'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getLatestUpdates(init_date='2018-01-01')

With datetime:

Python
te.getLatestUpdates(init_date='2021-10-18', time='15:20')
Text
https://api.tradingeconomics.com/updates/{date}?c={your_api_key}&time={hh:mm}&f=json
JSON
[
  {
    "Country": "Colombia",
    "Category": "Inflation Rate",
    "HistoricalDataSymbol": "COCPIYOY",
    "LastUpdate": "2023-10-09T19:12:11.61"
  },
  {
    "Country": "Colombia",
    "Category": "Food Inflation",
    "HistoricalDataSymbol": "COLOMBIAFOOINF",
    "LastUpdate": "2023-10-09T19:06:33.953"
  },
  {
    "Country": "France",
    "Category": "Electricity Price",
    "HistoricalDataSymbol": "FRAELEPRI",
    "LastUpdate": "2023-10-09T18:00:18.223"
  }
]

By country

Using Requests:

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

Or using our package:

Python
te.getLatestUpdates(country='portugal')

With multi countries

Python
te.getLatestUpdates(country = ['portugal', 'spain'])
Text
https://api.tradingeconomics.com/updates/country/{country}?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Portugal",
    "Category": "Credit Rating",
    "HistoricalDataSymbol": "",
    "LastUpdate": "2023-10-09T11:13:23.75"
  },
  {
    "Country": "Portugal",
    "Category": "Tourist Arrivals",
    "HistoricalDataSymbol": "PORTUGALTOUARR",
    "LastUpdate": "2023-10-09T03:12:41.74"
  },
  {
    "Country": "Portugal",
    "Category": "Electricity Production",
    "HistoricalDataSymbol": "PTELECTRICITY",
    "LastUpdate": "2023-10-07T10:15:15.927"
  }
]

By country and date

Using Requests:

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

Or using our package:

Python
te.getLatestUpdates(country='portugal', init_date='2018-01-01')
Text
https://api.tradingeconomics.com/updates/country/{country}/{date}?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Portugal",
    "Category": "Credit Rating",
    "HistoricalDataSymbol": "",
    "LastUpdate": "2023-10-09T11:13:23.75"
  },
  {
    "Country": "Portugal",
    "Category": "Tourist Arrivals",
    "HistoricalDataSymbol": "PORTUGALTOUARR",
    "LastUpdate": "2023-10-09T03:12:41.74"
  },
  {
    "Country": "Portugal",
    "Category": "Electricity Production",
    "HistoricalDataSymbol": "PTELECTRICITY",
    "LastUpdate": "2023-10-07T10:15:15.927"
  }
]

Response fields

FieldTypeDescriptionExample
CountrystringName of the country associated with the indicator.“Australia”
CategorystringName of the economic indicator or data category.“Inflation Expectations”
HistoricalDataSymbolstringUnique identifier used by Trading Economics for the data series.“AUSTRALIAINFEXP”
LastUpdatestringTimestamp of the most recent update to the data (insert or change), in UTC.“2023-04-13T17:23:32.933”