Skip to content
Docs
Get API key
Economic Calendar

Economic Calendar by Group

The following API endpoints allow you to obtain economic calendar events filtered by group.

This endpoint facilitates retrieving a filtered snapshot by groups from the economic calendar. The data can be filtered by groups: interest rates, inflation, bonds, consumer, GDP, government, housing, labor, markets, money, prices, trade, and business.

By group

Using Requests:

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

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

Text
https://api.tradingeconomics.com/calendar/group/{group}?c={your_api_key}&f=json
JSON
[
  {
    "CalendarId": "337874",
    "Date": "2023-04-03T03:35:00",
    "Country": "Japan",
    "Category": "3 Month Bill Yield",
    "Event": "3-Month Bill Auction",
    "Reference": "",
    "ReferenceDate": null,
    "Source": "",
    "SourceURL": "",
    "Actual": "-0.1681%",
    "Previous": "-0.2292%",
    "Forecast": "",
    "TEForecast": "",
    "URL": "/japan/3-month-bill-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2023-04-03T03:32:11.24",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "GJGB3M",
    "Symbol": "GJGB3M"
  },
  {
    "CalendarId": "335151",
    "Date": "2023-04-03T09:30:00",
    "Country": "Germany",
    "Category": "3 Month Bill Yield",
    "Event": "3-Month Bubill Auction",
    "Reference": "",
    "ReferenceDate": null,
    "Source": "",
    "SourceURL": "",
    "Actual": "2.8344%",
    "Previous": "2.8607%",
    "Forecast": "",
    "TEForecast": "",
    "URL": "/germany/3-month-bill-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2023-04-03T09:39:12.837",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "GDBR3M",
    "Symbol": "GDBR3M"
  },
  {
    "CalendarId": "313134",
    "Date": "2023-04-03T13:00:00",
    "Country": "France",
    "Category": "3 Month Bill Yield",
    "Event": "3-Month BTF Auction",
    "Reference": "",
    "ReferenceDate": null,
    "Source": "Agence France Trésor",
    "SourceURL": "https://www.aft.gouv.fr",
    "Actual": "2.881%",
    "Previous": "2.804%",
    "Forecast": "",
    "TEForecast": "",
    "URL": "/france/3-month-bill-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2023-04-03T13:02:19.34",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "FRANCE3MONBILYIE",
    "Symbol": "FRANCE3MONBILYIE"
  }
]

By group and date

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/calendar/group/bonds/2016-03-01/2018-03-03?c={your_api_key}'

data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getCalendarEventsByGroup(group='bonds', initDate='2016-03-01',
 endDate='2018-03-03')
Text
https://api.tradingeconomics.com/calendar/group/{group}/{yyyy-mm-dd}/{yyyy-mm-dd}?c={your_api_key}&f=json
JSON
[
  {
    "CalendarId": "74633",
    "Date": "2016-03-01T16:30:00",
    "Country": "United States",
    "Category": "4 Week Bill Yield",
    "Event": "4-Week Bill Auction",
    "Reference": "",
    "ReferenceDate": "2016-03-31T00:00:00",
    "Source": "Federal Reserve",
    "SourceURL": "https://www.treasurydirect.gov",
    "Actual": "0.295%",
    "Previous": "0.285%",
    "Forecast": "",
    "TEForecast": "0.29%",
    "URL": "/united-states/4-week-bill-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2016-03-01T16:35:00",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "UNITEDSTA4WEEBILYIE",
    "Symbol": "UNITEDSTA4WEEBILYIE"
  },
  {
    "CalendarId": "99625",
    "Date": "2016-03-01T16:30:00",
    "Country": "United States",
    "Category": "52 Week Bill Yield",
    "Event": "52-Week Bill Auction",
    "Reference": "",
    "ReferenceDate": null,
    "Source": "Federal Reserve",
    "SourceURL": "https://www.treasurydirect.gov",
    "Actual": "0.660%",
    "Previous": "0.53%",
    "Forecast": "",
    "TEForecast": "",
    "URL": "/united-states/52-week-bill-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2016-03-01T16:35:00",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "UNITEDSTA52WEEBILYIE",
    "Symbol": "UNITEDSTA52WEEBILYIE"
  },
  {
    "CalendarId": "88956",
    "Date": "2016-03-02T10:40:00",
    "Country": "Germany",
    "Category": "5 Year Note Yield",
    "Event": "5-Year Bobl Auction",
    "Reference": "",
    "ReferenceDate": null,
    "Source": "Department of Treasury",
    "SourceURL": "https://www.deutsche-finanzagentur.de",
    "Actual": "-0.360%",
    "Previous": "-0.240%",
    "Forecast": "",
    "TEForecast": "",
    "URL": "/germany/5-year-note-yield",
    "DateSpan": "0",
    "Importance": 1,
    "LastUpdate": "2016-03-02T10:43:00",
    "Revised": "",
    "Currency": "",
    "Unit": "%",
    "Ticker": "GERMANY5YNY",
    "Symbol": "GERMANY5YNY"
  }
]

Date format

Calendar methods described above support string dates in different formats

Date FormatExample
yyyy-MM-dd2018-01-01
yyyy-mm-dd HH:mm2016-12-03 23:59:59