Get Bill
openstates_get_billFetch full detail for a specific state bill. Accepts either the three-part path (jurisdiction + session + bill_id) or a direct OCD bill ID (openstates_id from search results). Use include to request votes, actions, sponsorships, documents, and versions in one call rather than searching again. include=votes returns the full vote tally and per-legislator positions. include=actions returns the complete action history. Prefer openstates_id when available to avoid session identifier lookup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_id | No | Bill identifier as used by the legislature (e.g., "HB 1000", "SB 42"). Required with jurisdiction + session. | |
| include | No | Related data to inline. "sponsorships", "actions", "votes" are most commonly needed. "versions" and "documents" provide links to bill text and fiscal notes. | |
| session | No | Session identifier. Required with jurisdiction + bill_id. | |
| jurisdiction | No | State name, abbreviation, or OCD-ID. Required when using path-based lookup with session + bill_id. | |
| openstates_id | No | OCD bill ID from openstates_search_bills results (e.g., "ocd-bill/..."). Preferred over the three-part path when available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | OCD bill ID. | |
| error | No | Present when the call failed. Absent on success. | |
| title | No | Bill title. | |
| votes | No | Vote events when include=votes is requested. | |
| actions | No | Full action history when include=actions is requested. | |
| session | No | Legislative session identifier. | |
| sources | No | Source documents when include=sources is requested. | |
| subject | No | Subject tags. | |
| versions | No | Bill text versions when include=versions is requested. | |
| abstracts | No | Bill abstracts when include=abstracts is requested. | |
| documents | No | Bill documents (fiscal notes, etc.) when include=documents is requested. | |
| identifier | No | Bill identifier as used by the legislature. | |
| updated_at | No | Timestamp Open States last updated this record — the field openstates_search_bills sorts by under the default sort=updated_desc. | |
| jurisdiction | No | Originating jurisdiction. | |
| other_titles | No | Alternate titles when include=other_titles is requested. | |
| sponsorships | No | Sponsorships when include=sponsorships is requested. | |
| related_bills | No | Related bills when include=related_bills is requested. | |
| classification | No | Bill classifications. | |
| openstates_url | No | Open States URL for this bill. | |
| first_action_date | No | Date of first recorded action. | |
| from_organization | No | Originating chamber. | |
| other_identifiers | No | Alternate identifiers when include=other_identifiers is requested. | |
| latest_action_date | No | Date of most recent action. | |
| latest_passage_date | No | Date bill passed (when applicable). | |
| latest_action_description | No | Most recent action description. |