View source: R/get_quarter_office_expenses_by_category_house_member.R
get_quarter_office_expenses_by_category_house_member | R Documentation |
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
get_quarter_office_expenses_by_category_house_member(
member_id,
category,
page = 1,
myAPI_Key
)
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. |
the amount a given lawmaker spent during a specified year and quarter in a specified category
## Not run:
get_quarter_office_expenses_by_category_house_member('A000374', 'travel')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.