R Package for the OpenSecrets.org API

Introduction | Examples | Source | CRAN

Help us help you: Take a short survey!

Introduction

TBD.

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)

R Open Secrets API Example