introduced_after for bills or starts_after for events, which are listed on each resource’s page.
Combining Filters
You may combine any number of filters. A record must match every filter you pass. Filters marked as accepting a list take comma-separated values, in which case a record must match any one of them. For example, the following request retrieves bills from Texas or Virginia that are still in procedure:published_after and published_before, include the dates you pass. Contradictory or unknown parameters are rejected with a 422 response, as described in Query Parameters.
Shared Filters
The/bills, /documents, /events, and /transcripts endpoints all accept the following query parameters:
Recommendation Filters
Bills, documents, events, and transcripts all accept the same recommendation filters. They only consider the workspaces your API key can read. A transcript or a document counts as recommended when the whole record, or one of its parts, such as a chapter of a hearing or a section of a gazette, was recommended:
Passing
min_importance, workspace, or topic implies recommended=true, so you never need to pass both, and combining them with recommended=false is rejected. When you pass several recommendation filters, a single recommendation must match all of them: workspace=A&min_importance=high returns records recommended at high or above to workspace A, not records recommended to A at any level and to another workspace at high. For example, the following request retrieves Texas bills recommended at high importance or above to the “Data centers” workspace:
/documents, /events, and /transcripts, so the request for upcoming events recommended to that workspace looks just the same:
Recommendations on Records
Every bill, document, event, and transcript includes arecommendations attribute, so you can tell at a glance whether a record matters to your team without a second request:
id to the recommendations endpoint, such as GET /recommendations?record_type=bill&record_id=9b3e2c1a-....