get_recent_votes: Get Recent Votes

View source: R/get_recent_votes.R

get_recent_votesR Documentation

Get Recent Votes

Description

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

Usage

get_recent_votes(chamber, page = 1, myAPI_Key)

Arguments

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.

Value

List of returned JSON from endpoint that retrieves the 20 most recent votes from the House, Senate or both chambers

Examples

## Not run: 
get_recent_votes('senate')

## End(Not run)

ProPublicaR documentation built on Sept. 16, 2022, 5:07 p.m.