Learn R Programming

ProPublicaR

Purpose

This package provides wrapper functions to access the ProPublica’s Congress and Campaign Finance APIs. The Congress API provides near real-time access to legislative data from the House of Representatives, the Senate and the Library of Congress. The Campaign Finance API provides data from United States Federal Election Commission filings and other sources. The API covers summary information for candidates and committees, as well as certain types of itemized data.

For more information about these APIs go to: https://www.propublica.org/datastore/apis

Installation

You can install from CRAN with:

install.packages("ProPublicaR")

Or from github with:

devtools::install_github("dietrichson/ProPublicaR")

API Key

To access the data you will need an API key. Keys (free for limited usage) are available at: https://www.propublica.org/datastore/apis.

Copy Link

Version

Install

install.packages('ProPublicaR')

Monthly Downloads

183

Version

1.1.4

License

GPL-3 | file LICENSE

Maintainer

Aleksander Dietrichson

Last Published

September 6th, 2023

Functions in ProPublicaR (1.1.4)

get_congressional_statement_by_member

Get Congressional Statements by Member
get_congressional_statement_by_subjects

Get Congressional Statements by Subject
get_cosponsors_specific_bill

Get Cosponsors for a Specific Bill
get_electioneering_communications_by_date

Get Electioneering Communications by Date
get_electioneering_communications_committee

Get Electioneering Communications by Specific Committee
get_electronic_filing_by_committees

Search for Electronic Filings by committee name o partial name
get_committee_leadership

Get Leadership Committees
get_congressional_statement_by_bill

Get Congressional Statements by Bill
get_electronic_filing_by_types

Get Electronic Filings By Type
get_congress_member

Get a Specific Member
get_committee_filings

Get Committee Filings
get_electronic_filing_byDate

Get Electronic Filings by Date
get_electronic_filing_form_types

Get Electronic Filing Form Types
get_hearing_specific_committee

Get Hearings for a Specific Committee
get_current_members_by_statedistrict

Get Current Members by State/District
get_independent_expenditure_by_committee

Get Independent Expenditures by Specific Committee
get_house_senate_floor_actions_by_date

Get House and Senate Floor Actions by Date
get_lobbyist_bundlers

Get Lobbyist Bundlers for a Specific Committee
get_committee_electioneering_communications

Get Electioneering Communications by Specific Committee
get_member_vote_position

Get a Specific Member’s Vote Positions
get_committee_by_name

Get Committee by name
get_quarter_office_expenses_by_category_house_member

Get Quarterly Office Expenses by Category for a Specific House Member
get_quarter_office_expenses_house_member

Get Quarterly Office Expenses by a Specific House Member
get_independent_expenditure_by_date

Get Independent Expenditures by Date
get_nominees_by_state

Get Nominees by State
get_members_leaving

Get Members Leaving Office
get_independent_expenditure_office_totals

Get Independent Expenditure Office Totals
get_recent_amendments

Get Recent Amendments
get_recent_committee_hearing

Get Recent Committee Hearings
get_recent_lobbying_representation_filings

Get Recent Lobbying Representation filings
get_recent_house_senate_floor_actions

Get Recent House and Senate Floor Actions
get_recent_official_communications_by_chamber

Get Recent Official Communications by Chamber
get_independent_expenditure_race_totals_committee

Get Independent Expenditure Office Totals
get_recent_independent_expend

Get Recent Independent Expenditures
get_recent_nominations_by_category

Get Recent Nominations by Category
get_recent_official_communications_by_date

Get Recent Official Communications by Date
get_recent_votes

Get Recent Votes
get_recently_added_independent_expenditure_committees

Get Recently Added Independent Expenditure-Only Committees.
get_recently_candidates

Get Top 20 Candidates in Specific Financial Category HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/candidates/new (https://www.propublica.org/datastore/apis)
get_recently_committees

Get Recently Added Committees.
get_recent_personal_explanations_votes

Get Recent Personal Explanation Votes
get_recent_personal_explanations_votes_by_category

Get Recent Personal Explanation Votes by Category
get_recent_late_contributions_candidate

Get Recent Late Contributions to a Specific Candidate https://www.propublica.org/datastore/apis HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/candidates/fec-id/48hour
get_recent_late_contributions

Get Recent Late Contributions https://www.propublica.org/datastore/apis HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/contributions/48hour
get_state_party_counts

Get State Party Counts
get_races_for_state

Get all Candidates in a State for an Election Cycle
get_specific_committee

Get a Specific Committee
get_specific_lobbying_representation_filings

Get a Specific Lobbying Representation filing
get_specific_subcommittee

Get a Specific Subcommittee
get_recent_late_contributions_committee

Get Recent Late Contributions to a Specific Committee https://www.propublica.org/datastore/apis HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/committees/fec-id/48hour
get_recent_late_contributions_date

Get Recent Late Contributions by Date
get_recent_personal_explanations_specific_member

Get Recent Personal Explanations by a Specific Members
get_recent_congressional_statements_by_term

Get Congressional Statements by Search Term
get_recent_personal_explanations

Get Recent Personal Explanations
get_recent_electioneering_communications

Get Recent Electioneering Communications
get_independent_expenditure_support_presidential_candidate

Get Independent Expenditures that Support or Oppose Presidential Candidates
get_independent_expenditure_support_candidate

Get Independent Expenditures that Support or Oppose a Specific Candidate
get_specific_bill_subject

Get a Specific Bill Subject
get_new_members

Get New Members
get_specific_bill

Get a Specific Bill
get_specific_roll_call_vote

Get a Specific Roll Call Vote
get_top20_candidate_of_FinancialCategory

Get Top 20 Candidates in Specific Financial Category
get_related_bills

Get Related Bills for a Specific Bill
pp_query

Execute a query against the ProPublica API
get_recent_official_communications

Get Recent Official Communications
get_recent_official_communications_by_category

Get Recent Official Communications by Category
get_recent_congressional_statements

Get Recent Congressional Statements
get_recent_congressional_statements_by_date

Get Congressional Statements by Date
get_senate_nomination_votes

Get Senate Nomination Votes
get_subjects_for_bill

Get Subjects for a Specific Bill
get_statement_subjects

Get Statement Subjects
recent_bills_by_subject

Get Recent Bills by a Specific Subject
get_specific_nominations

Get a Specific Nomination
get_recent_personal_explanations_votes_specific_member_by_category

Get Recent Personal Explanation Votes by a Specific Member by Category
get_recent_personal_explanations_votes_specific_member

Get Recent Personal Explanation Votes by a Specific Member
recent_bills_by_type

Get Recent Bills
recent_bills_by_member

Get Recent Bills by a Specific Member
list_members_chamber_congress

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

Get Votes by Type
pp_convert_to_data_frame

Convert a ProPublica API result a Data Frame
retrieve_key

Retrieve the relevant ProPublica API key for congress API or campaign finance API
lists_of_committees

Lists of Committees
search_lobbying_representation_filings

Search Lobbying Representation Filings
get_votes_by_date

Get Votes by Date
validate_state

Validate that a abbreviation is correct
validate_district

Validate that a district abbreviation is correct
get_votes_by_date_range

Get Votes by date range
us_congressional_districts

US Congressional Districts
get_upcoming_bills

Get Upcoming Bills
validate_cycle

Validate that year cycle is correct
bills_legislation_by_keyword

Search Bills: to search the title and full text of legislation by keyword to get the 20 most recent bills
get_amendments_bill

Get Amendments for a Specific Bill
get_candidate_by_name

Get Candidate Info
compare_two_member_bill_sponsorships

Compare Two Members’ Bill Sponsorships
get_candidate

Get Candidate Info https://www.propublica.org/datastore/apis GET https://api.propublica.org/campaign-finance/v1/cycle/candidates/fec-id
get_candidates_in_race

Get Candidates in Race
get_bills_cosponsored_member

Get Bills Cosponsored by a Specific Member
compare_two_member_vote_positions

Compare Two Members Vote Positions
get_a_bill

Get a Specific Bill
get_committee

Get Committee Info HTTP Request: GET https://api.propublica.org/campaign-finance/v1/cycle/committees/fec-id