View source: R/get_recent_votes.R
get_recent_votes | R Documentation |
You can get recent votes from the House, Senate or both chambers using this request. This request returns the 20 most recent results, sorted by date and roll call number, and you can paginate through votes using the offset querystring parameter that accepts multiples of 20. HTTP Request: GET https://api.propublica.org/congress/v1/chamber/votes/recent.json
get_recent_votes(chamber, page = 1, myAPI_Key)
chamber |
house, senate or both. |
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 the 20 most recent votes from the House, Senate or both chambers
## Not run:
get_recent_votes('senate')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.