Registry / analytics / openbb-oecd

openbb-oecd

JSON →
library1.6.1pypypi✓ verified 88d ago

OpenBB extension providing data connectors for the Organisation for Economic Co-operation and Development (OECD) via the OpenBB Platform v4. As of version 1.6.1, it enables fetching GDP, inflation, unemployment, and other economic indicators. Released on a rolling cadence with the OpenBB Platform releases.

pip install openbb-oecd
INSTALL
IMPORT
SIG · OPENBB-OECD
O
openbb-oecd
analyticspythonv1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OBBbject
✓ from openbb import obb
✗ from openbb import OBB
OBB is deprecated; use lowercase obb instance.
OECDFetcher
✓ from openbb_oecd import OECDFetcher
Direct fetcher for advanced use.

Fetch OECD GDP data for the United States using the OpenBB platform.

from openbb import obb import os obb.account.login(pat=os.environ.get('OPENBB_PAT', '')) df = obb.economy.oecd.gdp(country='united_states', start_date='2020-01-01', end_date='2023-12-31').to_df() print(df.head())
Debug
Known issues
breakingOpenBB v4 changed the command structure: use `obb.economy.oecd.<indicator>(...)` instead of `obb.economy.oecd.<indicator>()` with positional arguments. Parameters are now keyword-only.
fix
Update to keyword arguments and use the new nested command path.
affects: >=4.0.0
deprecatedThe 'oecd' provider is being merged into 'openbb-economy' in future releases. This extension may become a meta-package.
fix
Monitor OpenBB announcements; no action required yet.
affects: >=1.5.0
gotchaAuthentication via OpenBB Personal Access Token (PAT) is required even for public OECD data. Missing PAT will raise 'AuthenticateError'.
fix
Set OPENBB_PAT environment variable or use obb.account.login(pat='...').
affects: all
Errors
Common errors & fixes
openbb.errors.OpenBBError: Authentication is required for this endpoint.
Missing or invalid OpenBB PAT token.
fix
Set the OPENBB_PAT environment variable or call obb.account.login(pat='your_token').
ModuleNotFoundError: No module named 'openbb_oecd'
Extension not installed or installed without the openbb package.
fix
Install both: pip install openbb openbb-oecd
TypeError: oecd() got an unexpected keyword argument 'indicator'
Using old OpenBB v3 style API with positional arguments.
fix
Use new syntax: obb.economy.oecd.gdp(country='united_states') instead of obb.economy.oecd('gdp', 'united_states').
Upgrade
Version history
1.6.1latest on PyPI · released May 26, 2026
Audit
Dependencies
openbbrequiredCore OpenBB Platform required
Agent activity
37 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources

No resource links recorded.

openbb-oecd — pip install openbb-oecd · libregistry