Acquire data pertaining to federal campaign contributions, lobbying, and analysis from OpenSecrets.org in the R Project for Statistical Computing.

Source | CRAN

Examples

install.packages ('ropensecretsapi')

ropensecretsapi::SetAPIKey ("Add your API key here!")
params <- list (cid="N00007360", cycle="2012")
candContribData <- ropensecretsapi::GetCandContribData (params)

params <- list (cid="N00007360", cycle="2012", ind="K02")
candIndByIndData <- ropensecretsapi::GetCandIndByIndData (params)

params <- list (cid="N00007360", cycle="2012", ind="K02")
candIndustryData <- ropensecretsapi::GetCandIndustryData (params)

params <- list (cid="N00007360", cycle="2012")
candSectorData <- ropensecretsapi::GetCandSectorData (params)

params <- list (cid="N00007360", cycle="2012")
candSummaryData <- ropensecretsapi::GetCandSummaryData (params)

params <- list (congno="112", indus="F10", cmte="HARM")
congCmteIndusData <- ropensecretsapi::GetCongCmteIndusData (params)

params <- list (id="NJ")
legislatorsData <- ropensecretsapi::GetLegislatorsData (params)

params <- list (org="Microsoft")
orgsData <- ropensecretsapi::GetOrgsData (params)

params <- list (year="2010", cid="N00007360")
memPFDprofileData <- ropensecretsapi::GetMemPFDprofileData (params)
Examples
R Open Secrets API Example

See Also