Skip to content

Economic Data (with APIs)

Tip

FRED requires an API key — register at fred.stlouisfed.org/docs/api/api_key.html. The other sources below (ECB, Bundesbank, IMF, OECD, BIS) provide open API access without authentication.

Quick Comparison

Source Coverage API Format Auth Required
FRED 800,000+ US & intl series REST JSON API key
IMF 190+ countries (WEO, IFS, DOTS) REST JSON No
OECD OECD members + partners SDMX No
BIS Global banking, credit, FX SDMX No
ECB Euro area monetary/financial SDMX No
Eurostat EU member states & candidates JSON/SDMX No
Bundesbank Germany & Europe REST No

  • FRED (Federal Reserve Economic Data) API Python Global — 800,000+ U.S. and international time series from 100+ sources (Fed, BLS, BEA, Census, etc.). Updated daily. Includes ALFRED (Archival FRED) for point-in-time vintage data, letting you see what data was available on any historical date (useful for avoiding look-ahead bias). API with Python access via fredapi, which supports both current data and ALFRED revisions. Covers interest rates, inflation, employment, GDP, money supply, and more.
  • FRED-MD / FRED-QD CSV US — Pre-assembled "big data" macro panels drawn from FRED, designed for macroeconomic factor modeling and forecasting research. FRED-MD: 128 monthly U.S. macro series from 1959-present, updated monthly with real-time vintages. FRED-QD: 248 quarterly series from 1959:Q1, organized into 14 groups (NIPA, industrial production, employment, interest rates, prices, exchange rates, stock markets, and more). Both are directly downloadable as CSV. By McCracken & Ng (2016, Journal of Business & Economic Statistics; 2020, NBER WP 26872).
  • IMF Data API Global — International Monetary Fund datasets including the World Economic Outlook (WEO), International Financial Statistics (IFS), Direction of Trade Statistics (DOTS), and Balance of Payments (BOP). Covers macroeconomic indicators, trade flows, exchange rates, and financial soundness for 190+ countries. API (JSON RESTful).
  • OECD Data Explorer API Global — Economic, social, and environmental statistics for OECD member and partner countries. Covers GDP, trade, employment, education, health, environment, and more. API (SDMX).
  • BIS Statistics API Global — International banking, derivatives, debt securities, credit, property prices, and exchange rate data from the Bank for International Settlements. Covers cross-border financial flows and global liquidity. API (SDMX).
  • BIS Central Bank Speeches Global — Searchable archive of speeches by central bank governors and senior officials from BIS member central banks, from 1996 to present. Covers monetary policy, financial stability, and regulation. Widely used in central bank communication research, text analysis, and event studies. Free download in PDF.
  • ECB Statistical Data Warehouse API — Euro area monetary, financial, and economic statistics from the European Central Bank. Updated daily. Covers exchange rates, interest rates, monetary aggregates, balance of payments, and banking data. API access (SDMX).
  • Eurostat API Global — Official statistical office of the European Union, providing data on EU member states and candidate countries. Covers national accounts, employment, prices, trade, population, regional statistics, and more. Free API access in JSON and SDMX formats; Python access via eurostat.
  • Deutsche Bundesbank Time Series API — German and European economic and financial statistics. Covers capital markets, banking, money markets, public finances, and external sector data. API access.
  • Euro Area Monetary Policy Event-Study Database (EA-MPD) — High-frequency intraday data on the impact of ECB monetary policy announcements on euro area and global financial markets, covering both conventional and unconventional policy. Data is downloadable as Excel from the ECB website; the VoxEU column provides further explanation of the dataset construction and coverage. By Altavilla et al.
  • Euro Area Communication Event-Study Database (EA-CED) — High-frequency data on financial market movements around 304 ECB Governing Council meetings and ~5,100 inter-meeting communication events (speeches, interviews) by ECB Governing Council members. Covers 47 euro area financial variables from January 1999 to February 2024. By Istrefi, Odendahl & Sestieri (Banque de France Working Paper No. 859; CEPR DP No. 19242).
  • Euro Foreign Exchange Reference Rates — Daily reference exchange rates for currencies vis-à-vis the euro, published by the ECB.

Python Examples

# FRED — fetch 10-Year Treasury rate
from fredapi import Fred
fred = Fred(api_key="your_key")
df = fred.get_series("GS10")
# IMF — fetch IFS data (e.g., US Consumer Price Index)
import requests
url = "http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/Q.US.PCPI_IX"
data = requests.get(url).json()

See also: Macroeconomic & Country-Level Data for country-level indicators, distances, and historical macro datasets.