powered by
Campaign finance - candidate search
cf_candidate_search(campaign_cycle = NULL, query = NULL, key = NULL, ...)
An even-numbdered year in YYYY format. Presidential data: 2008-present; Congressional data: 2000-present
Last name of a candidate
(character) your Propublica API key; pass in, or loads from .Renviron as PROPUBLICA_API_KEY. See rtimes-package for info on rate limits.
PROPUBLICA_API_KEY
rtimes-package
Curl options (debugging tools mostly) passed to HttpClient
HttpClient
http://propublica.github.io/campaign-finance-api-docs
Other campaign-finance: cf_candidate_details, cf_candidate_leaders, cf_candidate_new, cf_candidate_state
cf_candidate_details
cf_candidate_leaders
cf_candidate_new
cf_candidate_state
# NOT RUN { cf_candidate_search(campaign_cycle = 2016, query='Wilson') cf_candidate_search(campaign_cycle = 2008, query='obama') # }
Run the code above in your browser using DataLab