View source: R/get_current_members_by_statedistrict.R
get_current_members_by_statedistrict | R Documentation |
Senate Request: GET https://api.propublica.org/congress/v1/members/chamber/state/current.json House Request: GET https://api.propublica.org/congress/v1/members/chamber/state/district/current.json
get_current_members_by_statedistrict(
state,
chamber,
district,
page = 1,
myAPI_Key
)
state |
Two-letter state abbreviation |
chamber |
house or senate |
district |
House of Representatives district number (House requests only). For states with at-large districts (AK, DE, MT, ND, SD, VT, WY), territories (GU, AS, VI, MP), commonwealths (PR) and the District of Columbia, use a district value of 1. |
page |
Results come in batches of 20. The page parameter specifies which one to retrieve. |
myAPI_Key |
API key from Propublica To use the congress API, you must sign up for an API key. |
List of returned JSON from endpoint that retrieves biographical and Congressional role information for a particular member of Congress by State/District
## Not run:
get_current_members_by_statedistrict( 'MI', 'house', 11)
get_current_members_by_statedistrict( 'RI', 'senate')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.