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
- standard
- congress_gov
bill_url
: str
Enter a base URL of a bill (e.g., 'https://api.congress.gov/v3/bill/119/s/1947?format=json'). Alternatively, you can enter a bill number (e.g., '119/s/1947').
• Optional: False
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
- 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.