View source: R/get_candidate.R
get_candidate | R Documentation |
Get Candidate Info https://www.propublica.org/datastore/apis GET https://api.propublica.org/campaign-finance/v1/cycle/candidates/fec-id
get_candidate(FEC_ID, cycle = 2018, page = 1, myAPI_Key)
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. |
a list object with the return values about candidate basic information
## Not run:
get_candidate('P60005915', 2016)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.