Description Usage Arguments Details Value See Also Examples
Retrieves congress data from api.propublica.org
1 2 3 4 5 6 | ppc_members(
chamber = c("both", "house", "senate"),
congress = "116",
api_key = NULL,
raw = FALSE
)
|
chamber |
Specify the chamber of Congress typically "house" or "senate"; sometimes "both" or "joint" |
congress |
The number of Congress of interest |
api_key |
The actual API key string provided by ProPublica. |
raw |
Logical indicating whether to return the raw response object. The default (FALSE) parses the content and returns a tibble data frame. |
To apply for a ProPublica API use the following link: https://www.propublica.org/datastore/api/propublica-congress-api. Complete and submit the provided form to receive your API key.
Depending on the raw parameter, this function returns a tibble data frame with member information or the response object returned by curl
A data frame of congressional members information
https://projects.propublica.org/api-docs/congress-api/
1 2 3 4 5 | ## Not run:
## get data on house for 116th congress (requires API key)
h116 <- ppc_congress(congress = "116", chamber = "house")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.