Get FRED Data Series
get_seriesReturns recent observations for any supported FRED data series. Use this to get current and historical values for mortgage rates, Treasury yields, Fed funds rate, CPI, SOFR, unemployment, GDP, energy prices, and more. Common use cases:
Current 30-yr mortgage rate: series_id=MORTGAGE30US, days=30
Current Fed funds rate: series_id=FEDFUNDS, days=30
Current 10-yr Treasury yield: series_id=DGS10, days=30
Current CPI (inflation): series_id=CPIAUCSL, days=30
Current WTI crude oil: series_id=DCOILWTICO, days=30 The most recent observation in the returned array is the current value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | History window: 30 ($0.05), 90 ($0.10), or 365 ($0.25). Use 30 for current/recent values. | |
| series_id | Yes | FRED series ID. Use IORB for Interest on Reserve Balances, EFFR for Effective Fed Funds Rate, MORTGAGE30US for 30-yr mortgage rate, SAHMREALTIME for Sahm Rule, etc. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End date of the series window | |
| count | Yes | Number of observations returned | |
| label | Yes | Human-readable series name | |
| start | Yes | Start date of the series window | |
| series_id | Yes | FRED series identifier | |
| current_date | Yes | Date of the most recent observation | |
| observations | Yes | All observations in the window | |
| current_value | Yes | Most recent observed value |