Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bills_legislation_by_keyword

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

bills_legislation_by_keyword(query_keyword = 'megahertz')

ProPublicaR

Access Functions for ProPublica's APIs

v1.1.1
GPL-3 | file LICENSE
Authors
Aleksander Dietrichson [aut, cre], Joselina Davit [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.