list_members_chamber_congress: To get a list of members of a particular chamber in a...

View source: R/list_members_chamber_congress.R

list_members_chamber_congressR Documentation

To get a list of members of a particular chamber in a particular Congress

Description

The results include all members who have served in that congress and chamber, including members who are no longer in office. HTTP Request: GET https://api.propublica.org/congress/v1/congress/chamber/members.json

Usage

list_members_chamber_congress(congress, chamber, page = 1, myAPI_Key)

Arguments

congress

102-118 for House, 80-118 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 members of a particular chamber in a particular Congress

Examples

## Not run: 
list_members_chamber_congress(115, 'senate')

## End(Not run)

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