openbb-imf
https://datahelp.imf.org/knowledgebase/articles/630877-api
What it is and what it does
openbb-imf is a provider extension that plugs IMF data access into the OpenBB platform's economy module. It wraps the IMF's SDMX API (which organizes data into dataflows like CPI, trade, and shipping metrics) and translates it into OpenBB's standard symbol-based query interface. Instead of learning IMF's dimension-based parameter model, users construct simple ticker-like symbols (e.g., `CPI::CP01`) and call familiar OpenBB endpoints like `obb.economy.indicators()` or `obb.economy.cpi()`.
The extension handles the heavy lifting: it fetches and caches IMF metadata, validates user inputs against IMF's constraints API, converts IMF codes into human-readable labels, and returns results with both data and series metadata. It also exposes utility endpoints for discovering available dataflows, indicators, and presentation tables, which the OpenBB Workspace UI uses to populate dropdown menus. The package depends on openbb-core, openbb-economy, openbb-platform-api, async-lru for caching, and defusedxml for safe XML parsing.
Use it for:
- Retrieve CPI or inflation data for multiple countries and time periods using standardized symbol syntax without learning IMF's SDMX parameter model.
- Access direction-of-trade or shipping chokepoint data through OpenBB's economy module as part of a broader economic analysis workflow.
- Build a dashboard or research tool that queries IMF indicators programmatically, leveraging OpenBB Workspace UI integration for metadata discovery.
- Combine IMF time series with other OpenBB providers in a single Python script for cross-source economic data analysis.
- Explore available IMF dataflows and their dimensions via utility endpoints to understand what data is available before constructing queries.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a provider extension for the OpenBB platform that exposes International Monetary Fund (IMF) data through standardized endpoints, handling SDMX API access to IMF dataflows with automatic metadata normalization and symbol-based querying.
Yes, if you are already using OpenBB and need IMF economic data. The extension integrates cleanly into the platform, has low install friction, and is actively maintained. However, the AGPL-3.0-only license requires that any code using this package (including derivative works) be open-sourced under the same license—a significant constraint for proprietary applications. If you are building closed-source software, you will need to either accept the license terms or find an alternative IMF data source.
Install
openbb-imf on PyPI
pip
pip install openbb-imfuv
uv add openbb-imfpoetry
poetry add openbb-imfInstalling openbb-imf
Before you install
Low friction installation as a pure-Python wheel. Actively maintained with a recent release. Requires openbb-core and openbb-platform-api as runtime dependencies, which must be available in your environment.
License in practice
Licensed under AGPL-3.0-only, which requires that any modifications or derivative works using this package must also be released under the same license and have source code made available. This is a copyleft restriction suitable for open-source projects but may conflict with proprietary software strategies.
Quickstart
pip install openbb-imf
openbb-build
from openbb import obb
indicators = obb.economy.available_indicators(provider="imf", dataflows="CPI,PI")
data = obb.economy.indicators(provider="imf", symbol="CPI::CP01")
Requires Python 3.10 or later. The openbb-build command must be run after installation to generate static assets before using the provider.
Verify before relying
- Whether openbb-core and openbb-platform-api are automatically installed or must be pre-configured separately.
- Performance characteristics when querying large datasets or making many concurrent requests via async-lru.
- Specific IMF data coverage limits or frequency update schedules not documented in the excerpt.
Package facts
| License | AGPL-3.0-only (agpl) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — async-lru, defusedxml, openbb-core, openbb-economy, openbb-platform-api |
| Maintenance | actively maintained — 80 days since the last release |
| First released | |
| Downloads | 86,656/month — #13,845 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openbb_imf-2.1.3-py3-none-any.whl
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
imfpDownloads economic data from the International…
permissive · top 15,000 on PyPI
openbb-econdbIntegrates EconDB economic data into the OpenBB…
agpl · top 15,000 on PyPI
openbb-economyProvides access to global macroeconomic data…
agpl · top 15,000 on PyPI
openbb-tradingeconomicsIntegrates Trading Economics data into the…
agpl · top 15,000 on PyPI
openbb-oecdIntegrates OECD statistical data into the…
agpl · top 15,000 on PyPI
openbb-federal-reserveIntegrates Federal Reserve data sources into…
agpl · top 15,000 on PyPI
openbb-fredIntegrates FRED (Federal Reserve Economic Data)…
agpl · top 15,000 on PyPI
openfoodfactsQuery and manage product data from the Open…
permissive · top 15,000 on PyPI
openbb-congress-govProvides access to U.S. legislative data from…
unclear · top 15,000 on PyPI
openbb-platform-apiLaunches and configures a FastAPI-based OpenBB…
agpl · top 15,000 on PyPI