Retrieve economic time series data from FRED using the St. Louis Fed API

domain: fred.stlouisfed.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register for a free FRED API key at https://fred.stlouisfed.org/docs/api/api_key.html
  2. GET https://api.stlouisfed.org/fred/series/observations?series_id={SERIES_ID}&api_key=<API_KEY>&file_type=json to fetch observations for a known series (e.g., 'GDP' for nominal GDP, 'CPIAUCSL' for CPI)
  3. Use optional parameters 'observation_start' and 'observation_end' in YYYY-MM-DD format to limit the date range returned
  4. If you don't know the series ID, search via GET https://api.stlouisfed.org/fred/series/search?search_text={query}&api_key=<API_KEY>&file_type=json and select the most relevant result by 'popularity' or 'title'
  5. Parse the 'observations' array, handling the string value '.' which FRED uses to represent missing or unavailable data points rather than null

Known gotchas

Related routes

Retrieve FRED economic time series observations with transformations for a set of indicators
fred.stlouisfed.org · 6 steps · unrated
Query the FRED API to explore category hierarchies and identify relevant economic release series
fred.stlouisfed.org · 6 steps · unrated
Pull current and historical exchange and physical commodity prices via the Fastmarkets API
Fastmarkets Market Data API / Physical Prices API · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans