Returns information and details on bills.
get_bills(
state = NULL,
chamber = NULL,
bill_id = NULL,
q = NULL,
search_window = NULL,
updated_since = NULL,
sort = NULL,
pages = 1
)
get_bill_details(state, session, bill_id)Returns bills matching the given state abbreviation.
Returns bills matching the given state abbreviation, valid values are
upper, or lower.
Returns bills with the given bill_id.
Return bills match the full text query.
Time window to be searched through, valid values are
all, term, session, sessionYear (a specific year).
Returns bills updated since this date.
Sort order of results, first, last, updated_at, created_at.
Return bills matching session.
get_bills This function allows you to search bills by (almost) any of their attributes, or full text.
get_bill_details This function returns the full detail for bill, including any actions, votes, etc.
if (FALSE) {
bills <- get_bills(state = "dc")
details <- get_bill_details(bills$state[1], bills$session[1], bills$bill_id[1])
}