Free financial data and APIs

Free sources of market, economic and academic data: long-run stock market history, factor returns, central bank statistics and free API tiers. Useful for backtests, spreadsheets, research and AI projects.

Updated · How we rate

Part of the Free Investing Library: 9 data and apis here, 109 resources in total. No affiliate links.

9 resources Add your own
DatasetBeginner

FRED economic data

Federal Reserve Bank of St. Louis

Hundreds of thousands of free economic time series (rates, inflation, employment, GDP) with charts and downloads.

Macro and markets · Quant and data science

DatasetIntermediate

Robert Shiller's online data (CAPE)

Robert J. Shiller, Yale University

Monthly US stock market data since 1871: prices, dividends, earnings, interest rates and the cyclically adjusted P/E (CAPE) ratio.

Macro and markets · Valuation · Quant and data science

DatasetBeginner

World Bank Open Data

World Bank

Free development and economic indicators for nearly every country: GDP, inflation, population, debt and more.

Macro and markets

DatasetIntermediate

ECB Data Portal

European Central Bank

Official euro-area statistics: interest rates, inflation, exchange rates, bank lending and money supply.

Macro and markets

DatasetAdvanced

AQR datasets

AQR Capital Management

Free monthly factor returns from AQR's research: quality minus junk, betting against beta, value and momentum everywhere, and more.

Factor investing · Quant and data science

DatasetAdvanced

Open Source Asset Pricing

Andrew Chen & Tom Zimmermann

Open code and data replicating more than 200 published stock-return predictors, so you can check which "anomalies" hold up.

Factor investing · Quant and data science

DatasetAdvancedFree tier + paid plans

Alpha Vantage API

Alpha Vantage

A market data API for stocks, ETFs, forex, crypto and fundamentals, with a free key for light use.

Quant and data science · Stock research

Free financial data and APIs: FAQ

Where can I get free historical stock market data?

Robert Shiller's dataset covers U.S. stocks since 1871, academic sites publish free factor returns, and some APIs offer free tiers for daily prices. Check each source's licence before using it commercially.

Can I use free financial data with ChatGPT or other AI tools?

Yes. You can download data as CSV and upload it to an AI assistant, or connect a free API in your own scripts. Always check the numbers, because AI can misread tables.

More in the Free Investing Library