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)

Arguments

state

Returns bills matching the given state abbreviation.

chamber

Returns bills matching the given state abbreviation, valid values are upper, or lower.

bill_id

Returns bills with the given bill_id.

q

Return bills match the full text query.

search_window

Time window to be searched through, valid values are all, term, session, sessionYear (a specific year).

updated_since

Returns bills updated since this date.

sort

Sort order of results, first, last, updated_at, created_at.

session

Return bills matching session.

Functions

  • 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.

Examples

if (FALSE) {
bills <- get_bills(state = "dc") 
details <- get_bill_details(bills$state[1], bills$session[1], bills$bill_id[1])
}