FRED API
REST API from the St. Louis Fed to retrieve economic data series (FRED) and their historical vintages (ALFRED) as JSON or XML.
A solid starting point for macro data in your backtests and dashboards, queryable from any language that can read JSON.
Who it is for
Analysts and developers who want economic time series, such as releases and categories, in scripts, dashboards or strategy research.
Strengths
- Endpoints for categories, releases, series, sources and tags, including series observations (the data values).
- Access to ALFRED vintages, so you can see data as it was known on a given date.
- Returns XML or JSON over HTTPS and works with any language that can parse them.
- Each application can have its own API key, requested after logging in to a user account.
Good to know
- Every request needs an API key, and each application should use its own.
- Rate limits and terms of use are not stated in the pages we read; check the official terms before building on it.
- It is economic data, not a trading feed: no real-time prices or order execution.
Custom bots are coming soon
We are preparing a service to build bots on tools like this one. Follow our Telegram channel to know when it opens.
Compare it with others
Lightweight Charts vs mplfinance: interactive web charts or Python candlesticks?
Two free ways to draw candlestick charts of your bot's prices or backtest results: TradingView's JavaScript library for interactive web pages and mplfinance for quick Python charts. Compared from checked sources.
TA-Lib vs ta vs FinanceToolkit: free Python libraries for technical indicators
Three free Python libraries compared for RSI, MACD and Bollinger Bands: TA-Lib for 200+ indicators and candlestick patterns, ta for a simple pip install on Pandas, and FinanceToolkit for ratios, indicators and risk metrics. Licences, level and who each suits.
Finnhub vs Alpha Vantage vs Massive (Polygon.io): which market data API for your bot?
The Finnhub Python client, Alpha Vantage and Massive (formerly Polygon.io) compared side by side: coverage, free tier, licence, difficulty and who each one suits.
Guides that use it
Quick answers
How much does FRED API cost?
The API documentation does not state a price; check the official website for current terms. An API key is required. Prices change, so check the official website before you decide.
Is FRED API open source?
Not under an OSI-approved license. License: Public service (see the official terms of use).
Who is FRED API for?
Analysts and developers who want economic time series, such as releases and categories, in scripts, dashboards or strategy research.
What is FRED API written in?
FRED API is written in Any (REST API).
What should I know before using FRED API?
Every request needs an API key, and each application should use its own. Rate limits and terms of use are not stated in the pages we read; check the official terms before building on it. It is economic data, not a trading feed: no real-time prices or order execution.
Want a bot like this when custom bots open? Get notified · All comparisons · Guides
Sources
Every fact on this page comes from these sources, checked on 2026-11-15. If something has changed, the source wins.
- https://fred.stlouisfed.org/docs/api/fred/overview.html: purpose, FRED and ALFRED data, REST over HTTPS, XML or JSON formats
- https://fred.stlouisfed.org/docs/api/api_key.html: API key required, 32-character key, login needed, one key per application
- https://fred.stlouisfed.org/docs/api/fred/: endpoint categories, API version 2 for bulk observations
Alternatives in Market data
Binance public data
Free downloadable files with Binance's historical spot and futures market data (klines, trades, aggregated trades), published daily and monthly.
mplfinance
Python package of matplotlib utilities to plot candlestick, OHLC, Renko and Point and Figure charts with volume and moving averages from a pandas DataFrame.
pandas-datareader
Python library that pulls macroeconomic and factor-style data from public sources such as FRED, Fama/French, the World Bank, OECD and Eurostat straight into a pandas DataFrame.
ta (Technical Analysis Library in Python)
Python library built on Pandas and NumPy that adds 43 technical indicators (volume, volatility, trend and momentum) to a price table with a few lines of code.