bill_info
Get summary, status, and other metadata for a specific bill.
Examples
from openbb import obb
obb.uscongress.bill_info(provider='congress_gov', bill_url='https://api.congress.gov/v3/bill/119/s/1947?')
# The bill URL can be shortened to just the bill number (e.g., '119/s/1947').
obb.uscongress.bill_info(bill_url='119/s/1947', provider='congress_gov')
Parameters
- standard
- congress_gov
bill_id: str
The bill id, e.g. '119-hr-29' (congress-billtype-number).
Returns
results: CongressBillInfo
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
- standard
- congress_gov
markdown_content: str
Aggregated metadata for the bill in Markdown format.
raw_data: dict[str, Any]
Raw JSON data from the collected bill information.