bill_text_urls
Get document choices for a specific bill.
This function is used by the Congressional Bills Viewer widget, in OpenBB Workspace, to populate PDF document choices for the selected bill.
When 'is_workspace' is False (default), it returns a list of the available text versions of the specified bill and their download links for the different formats.
Examples
from openbb import obb
obb.uscongress.bill_text_urls(provider='congress_gov', bill_url='https://api.congress.gov/v3/bill/119/s/1947?')
obb.uscongress.bill_text_urls(provider='congress_gov', bill_url='119/s/1947')
Parameters
- standard
bill_url
: str
The base URL of the bill (e.g., 'https://api.congress.gov/v3/bill/119/s/1947?format=json').
• Optional: False
provider
: str
The provider name, always 'congress_gov'. This is a dummy parameter.
• Default: congress_gov
• Optional: True
is_workspace
: bool
Whether the request is coming from the OpenBB Workspace.
• Optional: True
Returns
list