bills_legislation_by_keyword {ProPublicaR} | R Documentation |
Search Bills: to search the title and full text of legislation by keyword to get the 20 most recent bills
Description
Use this request to search the title and full text of legislation by keyword to get the 20 most recent bills. Searches cover House and Senate bills from the 113th Congress through the current Congress (115th). If multiple words are given (e.g. query = health care) the search is treated as multiple keywords using the OR operator. Quoting the words (e.g. query = "health care") makes it a phrase search. Search results can be sorted by date (the default) or by relevance, and in ascending or descending order.
Usage
bills_legislation_by_keyword(
query_keyword,
sort = c("date", "_score"),
dir = c("desc", "asc"),
page = 1,
myAPI_Key
)
Arguments
query_keyword |
keyword or phrase to search the title and full text of legislation to get the 20 most recent bills |
sort |
_score or date (default is date) |
dir |
sort direction: asc or desc |
page |
Results come in batches of 20. The page parameter specifies which one to retrieve. |
myAPI_Key |
API key from Propublica To use the congress API, you must sign up for an API key. |
Value
a list object with the return values about title and full text of legislation by keyword
Examples
## Not run:
bills_legislation_by_keyword(query_keyword = 'megahertz')
## End(Not run)