Skip to main content

bill_info

Get summary, status, and other metadata for a specific bill.

Enter the URL of the bill as: https://api.congress.gov/v3/bill/119/hr/131?

URLs for bills can be found from the uscongress.bills endpoint.

The raw JSON response from the API will be returned along with a formatted text version of the key information from the raw response.

In OpenBB Workspace, this command returns as a Markdown widget.

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


Returns

results: list[CongressBillInfo]

Serializable results.


provider: Optional[Literal['congress_gov']]

Provider name.


warnings: Optional[list[Warning_]]

list of warnings.


chart: Optional[Chart]

Chart object.


extra: dict[str, Any]

Extra info.


Data