Candidates.getByElection(electionId, stageId=NULL)
# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get a list of candidates for certain election IDs
candidates <- Candidates.getByElection(list(2582,2646))
candidates
Run the code above in your browser using DataLab