Registry / analytics / openbb-congress-gov

openbb-congress-gov

JSON →
library1.2.3pypypi✓ verified 84d ago

Extension for the OpenBB Platform that provides access to U.S. Congress data from Congress.gov API. Version 1.2.3 requires Python >=3.10 and <4. Releases follow OpenBB platform extensions cadence (roughly monthly).

pip install openbb-congress-gov
INSTALL
IMPORT
SIG · OPENBB-CONGRESS-GO
O
openbb-congress-gov
analyticspythonv1.2.3
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.

OBBject
from openbb_core.app.model.obbject import OBBject
from openbb import OBBject
OpenBB v4+ moved OBBject to openbb_core package

Initialize OpenBB, log in with Personal Access Token, then fetch Congress bills.

from openbb import obb import os obb.account.login(pat=os.environ.get('OPENBB_PAT', '')) congress_bills = obb.congress.gov.bills_search(query='healthcare') print(congress_bills.results)
Debug
Known issues
breakingOpenBB v4 restructured all providers; old v3 import paths (e.g., from openbb_congress import ...) no longer work.
fix
Use from openbb import obb and access via obb.congress.gov.*
affects: >=4.0.0
gotchaAPI key for Congress.gov is not set via environment variable CONGRESS_GOV_API_KEY; it must be provided as a parameter or in the provider settings.
fix
Pass api_key=... to the endpoint or set it in the provider initialization.
affects: all
deprecatedThe use of openbb.congress.gov.bills_search with 'query' parameter is deprecated; use 'q' instead.
fix
Replace query='text' with q='text'
affects: >=1.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'openbb_core'
Missing base OpenBB installation
fix
pip install openbb openbb-core
openbb.errors.OpenBBError: Not authenticated. Please log in with a Personal Access Token.
No PAT provided or session not started
fix
Call obb.account.login(pat=os.environ.get('OPENBB_PAT', '')) before using any provider
openbb.errors.OpenBBError: Provider 'congress.gov' requires an API key. Provide the parameter 'api_key' or set at the provider level.
Missing Congress.gov API key
fix
Pass api_key parameter to the command or set via obb.providers.congress.gov.api_key
Upgrade
Version history
1.2.3latest on PyPI · released May 26, 2026
Audit
Dependencies
openbb-corerequiredBase OpenBB platform required to run extensions
Agent activity
29 hits · last 30 days
node
28
OpenAI (training)
1
Resources

No resource links recorded.

openbb-congress-gov — pip install openbb-congress-gov · libregistry