Search Bills: to search the title and full text of legislation by keyword to get the 20 most recent bills
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.
bills_legislation_by_keyword( query_keyword, sort = c("date", "_score"), dir = c("desc", "asc"), page = 1, myAPI_Key )
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. |
a list object with the return values about title and full text of legislation by keyword
bills_legislation_by_keyword(query_keyword = 'megahertz')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.