Skip to main content
Version: v5

search

Full-text search across congressional GovInfo collections.

Examples​

from openbb import obb
obb.uscongress.search(query='artificial intelligence', provider='congress_gov')
# Search hearings in the 119th Congress for 'immigration'.
obb.uscongress.search(query='immigration', collection='CHRG', congress=119, provider='congress_gov')

Parameters​


Returns​

results: CongressSearch

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​