Title: | 'ProPublica' U.S. Congress Bills API wrapper |
---|---|
Description: | An API wrapper around the 'ProPublica' API <https://projects.propublica.org/api-docs/congress-api/> for U.S. Congressional Bills. Users can include their API key, U.S. Congress, branch, and offset ranges, to return a dataframe of all results within those parameters. This package is different from the 'RPublica' package because it is for the 'ProPublica' U.S. Congress data API, and the 'RPublica' package is for the Nonprofit Explorer, Forensices, and Free the Files data APIs. |
Authors: | Nadine Fischoff <[email protected]> |
Maintainer: | Nadine Fischoff <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1 |
Built: | 2025-02-19 03:13:49 UTC |
Source: | https://github.com/nadinesk/propubbills |
Gets the bills depending on U.S.Congress, branch, and offsets
getBills(key, congress, branch, type, numFrom, numTo)
getBills(key, congress, branch, type, numFrom, numTo)
key |
is the api key |
congress |
it the number of the U.S. Congress: for example, 114 for the 114th U.S. Congress |
branch |
is the House or the Senate branch |
type |
is the type of bills; options are introduced, updated, active, passed, enacted, vetoed |
numFrom |
is the offset number beginning range: for example, 1 will get the first 20 bills |
numTo |
is the offset number to: for example, 40 will get bills 40 to 60. Entering numFrom as 1 and numTo as 40 will return bills 1 to 60 |
returns a dataframe with all bills and info from the API within the arguments' parameters
Nadine Fischoff, [email protected]
https://projects.propublica.org/api-docs/congress-api/
## Not run: congress_115_enacted <- getBills(api_key,"115","house","enacted",1,500) congress_114_introduced <- getBills(api_key,"114","senate","introduced",1,100) ## End(Not run)
## Not run: congress_115_enacted <- getBills(api_key,"115","house","enacted",1,500) congress_114_introduced <- getBills(api_key,"114","senate","introduced",1,100) ## End(Not run)