Skip to content
Docs
Get API key
Indicators

Indicators Snapshot of Latest Values

Trading Economics National Statistical database includes more than 15K data series that come directly from official sources like central banks, national statistical agencies, etc.

The endpoints below return a snapshot table with the current values representing the latest figures for economic indicators across 196+ countries.

Data by country | Data by Country and Category Group | Countries by Indicator | By ticker | Credit Ratings | Response fields

Data by country

Using Requests:

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

With multi countries:

Python
te.getIndicatorData(country=['mexico', 'sweden'])

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

Text
https://api.tradingeconomics.com/country/{country}?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Mexico",
    "Category": "Auto Exports",
    "Title": "Mexico Auto Exports",
    "LatestValueDate": "2023-08-31T00:00:00",
    "LatestValue": 287.85,
    "Source": "Instituto Nacional de Estadística y Geografía (INEGI)",
    "SourceURL": "https://www.inegi.org.mx/",
    "Unit": "Thousand Units",
    "URL": "/mexico/auto-exports",
    "CategoryGroup": "Trade",
    "Adjustment": "NSA",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "MEXICOAUTEXP",
    "CreateDate": "2019-07-23T12:20:00",
    "FirstValueDate": "1988-01-31T00:00:00",
    "PreviousValue": 275.77,
    "PreviousValueDate": "2023-07-31T00:00:00",
    "HighestValue": 325.12,
    "HighestValueDate": "2019-10-31T00:00:00",
    "LowestValue": 2.75,
    "LowestValueDate": "1988-02-29T00:00:00"
  },
  {
    "Country": "Mexico",
    "Category": "Balance of Trade",
    "Title": "Mexico Balance of Trade",
    "LatestValueDate": "2023-08-31T00:00:00",
    "LatestValue": -1377.09,
    "Source": "Instituto Nacional de Estadística y Geografía (INEGI)",
    "SourceURL": "https://www.inegi.org.mx/",
    "Unit": "USD Million",
    "URL": "/mexico/balance-of-trade",
    "CategoryGroup": "Trade",
    "Adjustment": "NSA",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "MXTBBAL",
    "CreateDate": "2014-07-25T14:01:00",
    "FirstValueDate": "1980-01-31T00:00:00",
    "PreviousValue": -881.2,
    "PreviousValueDate": "2023-07-31T00:00:00",
    "HighestValue": 2158.77,
    "HighestValueDate": "2020-07-31T00:00:00",
    "LowestValue": -5559.0,
    "LowestValueDate": "2014-10-31T00:00:00"
  },
  {
    "Country": "Mexico",
    "Category": "Banks Balance Sheet",
    "Title": "Mexico Banks Balance Sheet",
    "LatestValueDate": "2023-07-31T00:00:00",
    "LatestValue": 10602555.4,
    "Source": "Banco de México",
    "SourceURL": "http://www.banxico.org.mx",
    "Unit": "MXN Million",
    "URL": "/mexico/banks-balance-sheet",
    "CategoryGroup": "Money",
    "Adjustment": "NSA",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "MEXICOBANBALSHE",
    "CreateDate": "2014-09-08T15:29:00",
    "FirstValueDate": "2000-12-31T00:00:00",
    "PreviousValue": 10485011.08,
    "PreviousValueDate": "2023-06-30T00:00:00",
    "HighestValue": 10602555.4,
    "HighestValueDate": "2023-07-31T00:00:00",
    "LowestValue": 1589243.9,
    "LowestValueDate": "2000-12-31T00:00:00"
  }
]

Please consider that not all indicators are displayed and if you want a comprehensive list of all indicators that we have available you will need pass a category group argument as displayed in an example below.

Data by Country and Category Group

Category groups = (health, markets, taxes, gdp, housing, trade, climate, labour, prices, government, consumer, business, money)

Using Requests:

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

Or using our package:

Python
te.getIndicatorByCategoryGroup(country='mexico', category_group='gdp')
Text
https://api.tradingeconomics.com/country/{country}?c={your_api_key}&group={group}&f=json
JSON
[
  {
    "Country": "Mexico",
    "Category": "Full Year GDP Growth",
    "Title": "Mexico Full Year Gdp Growth",
    "LatestValueDate": "2022-12-31T00:00:00",
    "LatestValue": 3.1,
    "Source": "Instituto Nacional de Estadística y Geografía (INEGI)",
    "SourceURL": "https://www.inegi.org.mx",
    "Unit": "percent",
    "URL": "/mexico/full-year-gdp-growth",
    "CategoryGroup": "GDP",
    "Adjustment": "NSA",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "MEXFYGG",
    "CreateDate": "2022-01-31T18:49:00",
    "FirstValueDate": "1994-12-31T00:00:00",
    "PreviousValue": 5.0,
    "PreviousValueDate": "2021-12-31T00:00:00",
    "HighestValue": 6.77,
    "HighestValueDate": "1997-12-31T00:00:00",
    "LowestValue": -8.25,
    "LowestValueDate": "2020-12-31T00:00:00"
  },
  {
    "Country": "Mexico",
    "Category": "GDP",
    "Title": "Mexico GDP",
    "LatestValueDate": "2022-12-31T00:00:00",
    "LatestValue": 1414.19,
    "Source": "World Bank",
    "SourceURL": "https://www.worldbank.org/",
    "Unit": "USD Billion",
    "URL": "/mexico/gdp",
    "CategoryGroup": "GDP",
    "Adjustment": "Current USD",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "WGDPMEXI",
    "CreateDate": "2014-07-03T15:32:00",
    "FirstValueDate": "1960-12-31T00:00:00",
    "PreviousValue": 1272.84,
    "PreviousValueDate": "2021-12-31T00:00:00",
    "HighestValue": 1414.19,
    "HighestValueDate": "2022-12-31T00:00:00",
    "LowestValue": 30.07,
    "LowestValueDate": "1960-12-31T00:00:00"
  },
  {
    "Country": "Mexico",
    "Category": "GDP Aggregate Demand QoQ",
    "Title": "Mexico GDP Aggregate Demand QoQ",
    "LatestValueDate": "2023-06-30T00:00:00",
    "LatestValue": 1.3,
    "Source": "Instituto Nacional de Estadística y Geografía (INEGI)",
    "SourceURL": "https://www.inegi.org.mx",
    "Unit": "percent",
    "URL": "/mexico/gdp-aggregate-demand-qoq",
    "CategoryGroup": "GDP",
    "Adjustment": "SA",
    "Frequency": "Quarterly",
    "HistoricalDataSymbol": "MEXGADQ",
    "CreateDate": "2021-11-03T13:25:00",
    "FirstValueDate": "1993-06-30T00:00:00",
    "PreviousValue": 1.5,
    "PreviousValueDate": "2023-03-31T00:00:00",
    "HighestValue": 14.8,
    "HighestValueDate": "2020-09-30T00:00:00",
    "LowestValue": -16.4,
    "LowestValueDate": "2020-06-30T00:00:00"
  }
]

Countries by Indicator

Using Requests:

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

Or using our package:

Python
te.getIndicatorData(indicators='gdp')
Text
https://api.tradingeconomics.com/country/all/{indicator}?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Afghanistan",
    "Category": "GDP",
    "Title": "Afghanistan GDP",
    "LatestValueDate": "2021-12-31T00:00:00",
    "LatestValue": 14.58,
    "Source": "World Bank",
    "SourceURL": "https://www.worldbank.org/",
    "Unit": "USD Billion",
    "URL": "/afghanistan/gdp",
    "CategoryGroup": "GDP",
    "Adjustment": "Current USD",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "AFGSTANGDP",
    "CreateDate": "2012-11-07T14:06:00",
    "FirstValueDate": "1960-12-31T00:00:00",
    "PreviousValue": 20.14,
    "PreviousValueDate": "2020-12-31T00:00:00",
    "HighestValue": 20.14,
    "HighestValueDate": "2020-12-31T00:00:00",
    "LowestValue": 2.49,
    "LowestValueDate": "1960-12-31T00:00:00"
  },
  {
    "Country": "Albania",
    "Category": "GDP",
    "Title": "Albania GDP",
    "LatestValueDate": "2022-12-31T00:00:00",
    "LatestValue": 18.88,
    "Source": "World Bank",
    "SourceURL": "https://www.worldbank.org/",
    "Unit": "USD Billion",
    "URL": "/albania/gdp",
    "CategoryGroup": "GDP",
    "Adjustment": "Current USD",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "ALBANIAGDP",
    "CreateDate": "2012-10-08T13:36:00",
    "FirstValueDate": "1984-12-31T00:00:00",
    "PreviousValue": 17.93,
    "PreviousValueDate": "2021-12-31T00:00:00",
    "HighestValue": 18.88,
    "HighestValueDate": "2022-12-31T00:00:00",
    "LowestValue": 1.18,
    "LowestValueDate": "1984-12-31T00:00:00"
  },
  {
    "Country": "Algeria",
    "Category": "GDP",
    "Title": "Algeria GDP",
    "LatestValueDate": "2022-12-31T00:00:00",
    "LatestValue": 191.91,
    "Source": "World Bank",
    "SourceURL": "https://www.worldbank.org/",
    "Unit": "USD Billion",
    "URL": "/algeria/gdp",
    "CategoryGroup": "GDP",
    "Adjustment": "Current USD",
    "Frequency": "Yearly",
    "HistoricalDataSymbol": "AlgeriaGDP",
    "CreateDate": "2011-06-27T00:00:00",
    "FirstValueDate": "1960-12-31T00:00:00",
    "PreviousValue": 163.47,
    "PreviousValueDate": "2021-12-31T00:00:00",
    "HighestValue": 213.52,
    "HighestValueDate": "2014-12-31T00:00:00",
    "LowestValue": 2.72,
    "LowestValueDate": "1960-12-31T00:00:00"
  }
]

By ticker

Using Requests:

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

Or using our package:

Python
te.getIndicatorByTicker(ticker='usurtot')
Text
https://api.tradingeconomics.com/country/ticker/{ticker}?c={your_api_key}&f=json
JSON
[
  {
    "Country": "United States",
    "Category": "Unemployment Rate",
    "Title": "United States Unemployment Rate",
    "LatestValueDate": "2023-09-30T00:00:00",
    "LatestValue": 3.8,
    "Source": "U.S. Bureau of Labor Statistics",
    "SourceURL": "http://www.bls.gov/",
    "Unit": "percent",
    "URL": "/united-states/unemployment-rate",
    "CategoryGroup": "Labour",
    "Adjustment": "",
    "Frequency": "Monthly",
    "HistoricalDataSymbol": "USURTOT",
    "CreateDate": "2012-02-23T11:41:00",
    "FirstValueDate": "1948-01-31T00:00:00",
    "PreviousValue": 3.8,
    "PreviousValueDate": "2023-08-31T00:00:00",
    "HighestValue": 14.7,
    "HighestValueDate": "2020-04-30T00:00:00",
    "LowestValue": 2.5,
    "LowestValueDate": "1953-05-31T00:00:00"
  }
]

Credit Ratings

Sovereign credit ratings as reported by major credit rating agencies. For historical ratings and more details, see the dedicated Credit Ratings page.

Using Requests:

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

With multi countries

Python
te.getCreditRatings(country=['mexico','sweden'])
Text
https://api.tradingeconomics.com/credit-ratings?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Costa Rica",
    "Date": "10/27/2023",
    "Agency": "S&P",
    "Rating": "BB-",
    "Outlook": "Stable"
  }
]

Response fields

FieldTypeDescriptionExample
CountrystringName of the country associated with the indicator.“Algeria”
CategorystringName of the economic indicator or data category.“Auto Exports”,
TitlestringCombined label of country and category.“Mexico Auto Exports”
LatestValueDatestringDate of the most recently released value, in UTC.“2023-03-31T00:00:00”
LatestValuenumberMost recent published value for the indicator.272.69
SourcestringName of the organization or authority that provided the data.“Instituto Nacional de Estadística y Geografía (INEGI)”
SourceURLstringDirect URL link to the original data source (if available).“https://www.inegi.org.mx/”
UnitstringUnit of measurement for the value.“Thousand Units”
URLstringHyperlink to the indicator page on Trading Economics.“/mexico/auto-exports”
CategoryGroupstringBroad classification group for the indicator.“Trade”
AdjustmentstringDescription of any adjustments.“Current USD
FrequencystringFrequency of data release.“Daily”
HistoricalDataSymbolstringUnique identifier used by Trading Economics for the data series.“MEXICOAUTEXP”
CreateDatestringDate and time when the indicator was added to the database“2019-07-23T12:20:00”
FirstValueDatestringDate of the earliest available historical value.“1988-01-31T00:00:00”
PreviousValuenumberValue released prior to the latest one.230.48
PreviousValueDatestringRelease date of the previous value.“2023-02-28T00:00:00”
HighestValuenumberAll-time highest value recorded for the indicator.8.89
HighestValueDatestringDate when the highest value was recorded.“1994-12-15T00:00:00”
LowestValuenumberAll-time lowest value recorded for the indicator.2.1
LowestValueDatestringDate when the lowest value was recorded.“2021-07-28T00:00:00”