Skip to content
Docs
Get API key
Indicators

Available Indicators and Countries

The following API endpoints list all indicators and available countries.

This endpoint provides a list of available indicators (such as economic indicators or financial metrics) and the countries for which data is available.

List indicators

Using Requests:

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

Add the flag calendar=1 to show only indicators available on calendar:

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

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

Text
https://api.tradingeconomics.com/indicators?c={your_api_key}&f=json
JSON
[
  {
    "Category": "1 Year MLF Rate",
    "CategoryGroup": "Money"
  },
  {
    "Category": "14-Day Reverse Repo Rate",
    "CategoryGroup": "Money"
  },
  {
    "Category": "15 Year Mortgage Rate",
    "CategoryGroup": "Housing"
  }
]

List countries

Using Requests:

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

Or using our package:

Python
te.getAllCountries()
Text
https://api.tradingeconomics.com/country?c={your_api_key}&f=json
JSON
[
  {
    "Country": "Afghanistan",
    "Continent": "Asia",
    "Group": "Asia",
    "ISO3": "AFG",
    "ISO2": "AF"
  },
  {
    "Country": "Albania",
    "Continent": "Europe",
    "Group": "Europe",
    "ISO3": "ALB",
    "ISO2": "AL"
  },
  {
    "Country": "Algeria",
    "Continent": "Africa",
    "Group": "North Africa, OPEC",
    "ISO3": "DZA",
    "ISO2": "DZ"
  }
]

Response fields

Fields available in ‘List indicators’

FieldTypeDescriptionExample
CategorystringName of the economic or statistical category.“Auto Exports”,
CategoryGroupstringHigher-level grouping or classification of the category.“Trade”

Fields available in ‘List Countries’

FieldTypeDescriptionExample
CountrystringFull name of the country associated with the data.“Algeria”
ContinentstringContinent where the country is located.“Africa”
GroupstringRegional or organizational group(s) the country belongs to.“North Africa, OPEC”
ISO3stringISO 3166-1 alpha-3 code (three-letter country code)“DZA”
ISO2stringISO 3166-1 alpha-2 code (two-letter country code)“DZ”