get_specific_roll_call_vote: Get a Specific Roll Call Vote

View source: R/get_specific_roll_call_vote.R

get_specific_roll_call_voteR Documentation

Get a Specific Roll Call Vote

Description

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

Usage

get_specific_roll_call_vote(
  congress,
  chamber = c("house", "senate"),
  session_number,
  roll_call_number,
  page = 1,
  myAPI_Key
)

Arguments

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.

Value

List of returned JSON from endpoint that retrieves a specific roll-call vote s

Examples

## Not run: 
get_specific_roll_call_vote(115, 'senate', 1, 17L)

## End(Not run)

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.