View source: R/get_specific_roll_call_vote.R
get_specific_roll_call_vote | R Documentation |
To get a specific roll-call vote, including a complete list of member positions. HTTP Request: GET https://api.propublica.org/congress/v1/congress/chamber/sessions/session-number/votes/roll-call-number.json
get_specific_roll_call_vote(
congress,
chamber = c("house", "senate"),
session_number,
roll_call_number,
page = 1,
myAPI_Key
)
congress |
102-116 for House, 80-116 for Senate |
chamber |
house or senate |
session_number |
1 or 2, depending on year (1 is odd-numbered years, 2 is even-numbered years) passed (latest_major_action_date), enacted (enacted), vetoed (vetoed). |
roll_call_number |
integer |
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 a specific roll-call vote s
## Not run:
get_specific_roll_call_vote(115, 'senate', 1, 17L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.