Skip to Content

FRED Data Parser & API

FRED (Federal Reserve Economic Data) is the Federal Reserve Bank of St. Louis’s public database of 800,000+ US and global economic time series, and StockAPIS extracts its macroeconomic data — GDP, CPI, unemployment, the Fed funds rate, Treasury yields and money supply — through a single REST API. FRED offers a free, official public API, and StockAPIS normalizes its responses to the same schema you use for every other source, so you query macro indicators alongside crypto, equities and news without maintaining a separate integration.

TypeEconomic data API
HQUnited States (St. Louis, MO)
OwnerFederal Reserve Bank of St. Louis
Asset classesMacroeconomic indicators, Interest rates, Treasury yields, Inflation, Money supply
Coverage800,000+ US & global economic time series
ScaleReference macro-data source for economists & analysts
API accessOfficial API
Parse priority★★★★☆
Official sitefred.stlouisfed.org

Platform Overview

Market Position

  • The reference public source for US macroeconomic data, maintained by the Federal Reserve Bank of St. Louis
  • 800,000+ time series spanning US and international economic indicators
  • Trusted by economists, quants, central-bank watchers and financial analysts worldwide
  • Free official REST API, complemented by StockAPIS’s unified normalization across every data source

Data Coverage

StockAPIS exposes the full FRED data surface:

  • Economic indicators — GDP, CPI, PPI, unemployment rate (UNRATE), payrolls and growth metrics
  • Interest rates — effective Fed funds rate (DFF), policy rates and yield curves
  • Treasury yields — daily constant-maturity yields across the curve
  • Inflation — headline and core CPI, PCE, inflation expectations
  • Money supply — M1, M2 (M2SL) and monetary aggregates
  • Frequencies — daily, weekly, monthly, quarterly and annual observations, both real-time and historical

Quick Start

import stockapis client = stockapis.Client(api_key="your-api-key") # Latest CPI observations from FRED cpi = client.fred.get_series(series_id="CPIAUCSL", frequency="m", limit=12) for obs in cpi["observations"]: print(f"{obs['date']}: {obs['value']}")
const { StockAPIS } = require("stockapis"); const client = new StockAPIS({ apiKey: "your-api-key" }); // Latest GDP observations (quarterly) const gdp = await client.fred.getSeries({ seriesId: "GDP", frequency: "q", limit: 4 }); console.log(gdp.observations.map((o) => `${o.date}: ${o.value}`));

Sample API Response

{ "success": true, "data": { "series_id": "CPIAUCSL", "title": "Consumer Price Index for All Urban Consumers", "units": "Index 1982-1984=100", "frequency": "Monthly", "seasonal_adjustment": "Seasonally Adjusted", "observations": [ { "date": "2024-01-01", "value": "308.417" }, { "date": "2023-12-01", "value": "306.746" }, { "date": "2023-11-01", "value": "307.051" } ] }, "metadata": { "source": "fred", "timestamp": "2024-01-15T10:30:00.000Z" } }

Use Cases

  • Macroeconomic research — track GDP, inflation and employment trends across US and global economies
  • Quant & backtesting — feed historical macro time series into models, regime detection and signal development
  • Risk & allocation — anchor portfolio decisions to rates, yield curves and money-supply data
  • Dashboards & content — build economic dashboards, alerts and analysis from a single normalized feed

Frequently Asked Questions

Does FRED have an official API? Yes — FRED provides a free, well-documented public REST API. StockAPIS wraps it in a unified schema so FRED’s macro series match every other source you pull, with one API key and consistent field names.

What data can I get from FRED through StockAPIS? 800,000+ economic time series including GDP, CPI, PPI, the unemployment rate, the Fed funds rate, Treasury yields, money supply and inflation measures, at daily through annual frequencies.

How current is FRED data? StockAPIS serves both real-time and historical observations. Series update on their official release cadence — daily for rates and yields, monthly for CPI and payrolls, quarterly for GDP.

Last updated on