bills_search: Search Bills

Description Usage Arguments References Examples

View source: R/api-bills.r

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 (116th). 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

1
2
bills_search(query, sort = c("date", "_score"), dir = c("desc", "asc"),
  page = 1L)

Arguments

query

search text

sort

sort by lastest major action date or relevance score

dir

sort in descending or ascending order

page

page of results

References

https://projects.propublica.org/api-docs/congress-api/bills/#search-bills

Examples

1
2
3
4
## Not run: 
bills_search("health care")

## End(Not run)

zamorarr/ppcongress documentation built on Nov. 5, 2019, 1:23 p.m.