get_quarter_office_expenses_by_category_house_member: Get Quarterly Office Expenses by Category for a Specific...

View source: R/get_quarter_office_expenses_by_category_house_member.R

get_quarter_office_expenses_by_category_house_memberR Documentation

Get Quarterly Office Expenses by Category for a Specific House Member

Description

The House of Representatives publishes quarterly reports detailing official office expenses by lawmakers. The Congress API has data beginning in the third quarter of 2009. HTTP Request: GET https://api.propublica.org/congress/v1/members/member-id/office_expenses/year/quarter.json

Usage

get_quarter_office_expenses_by_category_house_member(
  member_id,
  category,
  page = 1,
  myAPI_Key
)

Arguments

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.

category

travel or personnel or rent-utilities or other-services or supplies or franked-mail or printing or equipment or total.

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

the amount a given lawmaker spent during a specified year and quarter in a specified category

Examples

## Not run: 
get_quarter_office_expenses_by_category_house_member('A000374', 'travel')

## End(Not run)

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