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

get_candidate

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


Description

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

Usage

get_candidate(FEC_ID, cycle = 2018, page = 1, myAPI_Key)

Arguments

FEC_ID

The FEC-assigned 9-character ID of a candidate.

cycle

The election cycle must be even-numbered year between 1996 and 2018

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

a list object with the return values about candidate basic information

Examples

get_candidate('P60005915', 2016)

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.