fredapi
Python API for Federal Reserve Economic Data (FRED) from St. Louis Fed
Decision gist · record as of 2026-08-14
Yes, if you need to work with U.S. Federal Reserve economic data. The package is stable, has low install friction, and integrates cleanly with pandas. The main caveats: the license is unclear (verify before commercial use), the package is aging with no release in 831 days (though the repo is still active), and you must obtain a free FRED API key. For economic research, data journalism, or financial analysis, it's a solid choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- You must obtain a free API key from the FRED website (api.stlouisfed.org/api_key.html) before making requests.
- Installation is straightforward with low friction.
- The package is aging (last release 831 days ago) but the repository remains active with a recent commit on 2026-01-28 and 1652 stars, suggesting ongoing maintenance despite infrequent releases.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is provided in the metadata. You should verify the actual license terms before using this in a commercial or restricted context.
last release 2024-05-05 (831 days) · last repo commit 2026-01-28 · 1,652 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,331,765 downloads/mo, #4,043 on PyPI
Alternatives
Verify before relying
pip install fredapi
from fredapi import Fred
fred = Fred(api_key='your_api_key')
data = fred.get_series('SP500')- Whether the package supports modern Python versions beyond 3.6 (classifiers list only up to 3.6)
- Current status of FRED API compatibility and any breaking changes since the last release
- Whether the package is actively maintained or in maintenance-only mode given the 831-day gap since last release
What it is and what it does
fredapi is a Python wrapper around the Federal Reserve Economic Data (FRED) web service provided by the St. Louis Fed. It lets you fetch economic time series data—like GDP, unemployment rates, or stock indices—directly into pandas DataFrames or Series for analysis. The package also handles a key feature of economic data: revisions. Economic statistics are often released, then revised as more complete information becomes available, and fredapi provides methods to retrieve first releases, latest values, or data as it was known on a specific date.
You'll need a free API key from the FRED website to use it. Once set up, you can search for series by name, fetch data by series ID, and work with vintage dates to answer questions like 'what did we know about GDP on this date in the past?' The package depends only on pandas, so installation is lightweight.
Use it for
- Fetch historical economic indicators like GDP, unemployment, or inflation for time-series analysis and forecasting.
- Retrieve first-release vs. revised data to study how economic estimates change over time and impact trading or policy decisions.
- Search the FRED catalog programmatically to find relevant economic series without leaving your Python notebook.
- Build a data pipeline that pulls the latest economic data on a schedule and stores it for dashboard or reporting systems.
- Analyze point-in-time data to understand what information was available at specific dates in the past.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with U.S.
Federal Reserve economic data. The package is stable, has low install friction, and integrates cleanly with pandas. The main caveats: the license is unclear (verify before commercial use), the package is aging with no release in 831 days (though the repo is still active), and you must obtain a free FRED API key. For economic research, data journalism, or financial analysis, it's a solid choice.
Install
fredapi on PyPI
Before you install
Installation is straightforward with low friction. The package is aging (last release 831 days ago) but the repository remains active with a recent commit on 2026-01-28 and 1652 stars, suggesting ongoing maintenance despite infrequent releases.
You must obtain a free API key from the FRED website (api.stlouisfed.org/api_key.html) before making requests.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is provided in the metadata. You should verify the actual license terms before using this in a commercial or restricted context.
Quickstart
pip install fredapi
from fredapi import Fred
fred = Fred(api_key='your_api_key')
data = fred.get_series('SP500')
Verify before relying
- Whether the package supports modern Python versions beyond 3.6 (classifiers list only up to 3.6)
- Current status of FRED API compatibility and any breaking changes since the last release
- Whether the package is actively maintained or in maintenance-only mode given the 831-day gap since last release
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepandas |
| Maintenance | Aging 831 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,331,765 / month, #4,043 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules |
Evidence: fredapi-0.5.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “FRED data python wrapper”
- fredapifredapi wraps the FRED web service to fetch U.S. Federal Reserve…
- openbb-fredIntegrates FRED (Federal Reserve Economic Data) as a data provider…
- pandas-datareaderFetches macroeconomic and factor data from remote sources like FRED,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also openbb-fred · pandas-datareader · beaapi · openbb-federal-reserve · wbgapi · wbdata · Quandl · Nasdaq-Data-Link · pybaseball · eurostat