View source: R/get_state_party_counts.R
get_state_party_counts | R Documentation |
To get party membership counts for all states (current Congress only), use the following function. HTTP Request: GET https://api.propublica.org/congress/v1/states/members/party.json
get_state_party_counts(page = 1, myAPI_Key)
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
## Not run:
get_state_party_counts()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.