cong_member | R Documentation |
This provides three search paths under the /member
endpoint.
By bioguide
, which can be subset with item
By congress
, which can be subset with state
and district
By state
, which can be subset with district
cong_member(
bioguide = NULL,
item = NULL,
congress = NULL,
state = NULL,
district = NULL,
current_member = FALSE,
from_date = NULL,
to_date = NULL,
limit = 20,
offset = 0,
format = "json",
clean = TRUE
)
bioguide |
Bioguide identifier for a member of Congress. |
item |
Information to request. Can be |
congress |
Congress number. |
state |
State abbreviation. e.g. |
district |
Congressional district number. e.g. |
current_member |
Logical. Should only current members be returned? Default is |
from_date |
start date for search, e.g. |
to_date |
end date for search, e.g. |
limit |
number of records to return. Default is 20. Will be truncated to between 1 and 250. |
offset |
number of records to skip. Default is 0. Must be non-negative. |
format |
Output format for |
clean |
Default is TRUE. Should output be returned as a |
If an invalid set of these are provided, they will be used in the above order.
a tibble::tibble
or HTTP response if clean = FALSE
# Requires API Key
cong_member()
cong_member(bioguide = 'L000174')
cong_member(bioguide = 'L000174', item = 'sponsored-legislation')
cong_member(congress = 118)
cong_member(congress = 118, state = 'CA')
cong_member(congress = 118, state = 'CA', district = 1)
cong_member(state = 'MI', district = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.