Returns data on legislators.

get_legislators(state = NULL, chamber = NULL, district = NULL)

get_legislator(legislator_id)

Arguments

state

Returns bills matching the given state abbreviation.

chamber

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

district

Returns legislators from the given district.

legislator_id

A legislator id, as returned by get_legislators.

Functions

  • get_legislators This function returns a list of legislators.

  • get_legislator This function returns details for a legislator, including all roles.

Examples

if (FALSE) {
(legislators <- get_legislators())
get_legislator(legislators$legislator_id[1])  
}