# mortada/fredapi

Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)

Repository: https://github.com/mortada/fredapi
Canonical: https://ross.abutalabs.com/products/fredapi
Language: Python
License: Apache-2.0
License Family: permissive
Topics: python, fred, finance, economic-data
Last push: 2026-01-28T02:23:56+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 64, release rhythm 8, longevity 100
- inputs: {"age_days": 4395, "days_push": 218, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1654, forks 242 (observed 2026-08-28T04:05:17.243912+00:00)

## What it is
fredapi is a Python wrapper around the Federal Reserve Bank of St. Louis FRED and ALFRED web services for fetching economic data. It returns data as pandas Series/DataFrames and offers convenient methods for handling point-in-time data revisions.

## Use cases
- download FRED economic data series in Python
- get historical GDP values as a pandas DataFrame
- analyze data revisions to see what was known at a past date
- fetch first releases of economic indicators ignoring revisions
- pull S&P 500 time series for analysis
- access ALFRED vintage data for backtesting economic models

## When to choose
- you need Federal Reserve economic data in Python with pandas integration
- you want to work with historical data revisions (vintage/realtime data)
- you want a simple, lightweight client for the FRED API

## When to avoid
- you need data sources beyond FRED/ALFRED
- you work outside the Python/pandas ecosystem
- you need real-time streaming market data rather than official economic statistics

## Facets
- artifact type: library
- maturity: active
- function: http-client, data-science, etl
- domain: data-science, analytics, fintech, apis
- platform: python, cross-platform
- tags: fred, alfred, economic-data, pandas, finance, api-wrapper, time-series

## Member repositories
- mortada/fredapi (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:17.243912+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:44:56.111880+00:00, confidence not recorded.
  - readme: https://github.com/mortada/fredapi (fetched 2026-08-28T04:05:17.243912+00:00, sha 4ce92e33c9e6)
  - registry_pypi: https://pypi.org/pypi/fredapi/json (fetched 2026-08-29T11:17:54.611516+00:00, sha 45a87319ead6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
