Search Bills
search_billsFull-text search US state (and federal) legislation to find out what bills are about a given topic. Searches one state or nationwide (ALL) and returns matching bills with number, title, state, last action, and a LegiScan bill_id you can pass to get_bill. Example: search_bills({ query: "data privacy", state: "CA" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | LegiScan year code: 1 = all years, 2 = current + prior session (default), or a specific year like 2024. | |
| query | Yes | Search terms, e.g. "data privacy", "minimum wage", "abortion" | |
| state | No | 2-letter state abbreviation (e.g. "CA", "TX") or "ALL" to search every state. Default "ALL". | |
| _apiKey | No | Optional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key. |