Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compare_two_member_vote_positions

Compare Two Members Vote Positions


Description

Use this request type to compare two members’ vote positions in a particular Congress and chamber. Responses include four calculated values, showing the number and percentage of votes in which the members took the same position or opposing positions. HTTP Request: GET https://api.propublica.org/congress/v1/members/first-member-id/votes/second-member-id/congress/chamber.json

Usage

compare_two_member_vote_positions(
  first_member_id,
  second_member_id,
  congress,
  chamber,
  page = 1,
  myAPI_Key
)

Arguments

first_member_id

The ID of the member to retrieve; it is assigned by the Biographical Directory of the United States Congress or can be retrieved from a member list request.

second_member_id

The ID of the member to retrieve; it is assigned by the Biographical Directory of the United States Congress or can be retrieved from a member list request.

congress

102-116 for House, 101-116 for Senate

chamber

house or senate

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 four calculated values: common_votes, disagree_votes, agree_percent and disagree_percent to compare two members’ vote positions, in a particular Congress and chamber

Examples

compare_two_member_vote_positions('G000575', 'D000624', '114', 'house')

ProPublicaR

Access Functions for ProPublica's APIs

v1.1.1
GPL-3 | file LICENSE
Authors
Aleksander Dietrichson [aut, cre], Joselina Davit [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.