powered by
This function is primarily meant to be used by other functions in the package, but is made available in case a "raw query" is required.
pp_query( query, API = c("campaign-finance", "congress"), version = "v1", page = 1, myAPI_Key )
a list object with the return values.
The query to be executed
Which API are you accessing
API version. Currently v1.
Results come in batches of 20. The page parameter specifies which one to retrieve.
API key from Propublica To use the congress API, you must sign up for an API key.
if (FALSE) { pp_query('115/bills/hr21.json', API = 'congress', version='v1') pp_query('2018/races/MI/house/11.json', API='campaign-finance',version='v1') }
Run the code above in your browser using DataLab