Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- A free FRED API key saved in the FRED_API_KEY environment variable
Normalized macroeconomic and regional time series with historical vintages for building release monitors, dashboards, and revision trackers.
From source to product signal
FRED normalizes economic series from many publishers, while ALFRED exposes historical vintages. Start with two explicit series and their metadata. Units, frequency, seasonal adjustment, revisions, and reuse rights vary by upstream source and must travel with any comparison.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import os
import pandas as pd
import requests
def observations(series_id):
response = requests.get(
"https://api.stlouisfed.org/fred/series/observations",
params={
"api_key": os.environ["FRED_API_KEY"],
"file_type": "json",
"series_id": series_id,
"observation_start": "2024-01-01",
},
timeout=30,
)
response.raise_for_status()
return pd.DataFrame(response.json()["observations"])
unemployment = observations("UNRATE")
inflation = observations("CPIAUCSL")
print(unemployment[["date", "value", "realtime_start"]].tail(12))
print(inflation[["date", "value", "realtime_start"]].tail(12))Test a useful signal
Track recent unemployment and consumer-price observations with their metadata and vintage dates.
Federal Reserve Bank of St. Louis is a government source. Last verified 2026-08-13. Temporal coverage: varies by series with historical vintages available through ALFRED.