bills_recent: Get Recent Bills

Description Usage Arguments References Examples

View source: R/api-bills.r

Description

Use this request type to get summaries of the 20 most recent bills by type. For the current Congress, “recent bills” can be one of four types (see the descriptions below). For previous Congresses, “recent bills” means the last 20 bills of that Congress. In the responses, an active value of true means that the bill has seen action beyond introduction and committee referral. Requests include a chamber value; to get recent bills from the House and Senate, use both as the value. You can paginate through bills using the offset querystring parameter that accepts multiples of 20. Bills before the 113th Congress (prior to 2013) have fewer attribute values than those from the 113th Congress onward, because the more recent bill data comes from the bulk data provided by the Government Publishing Office. Details for the older bills came from scraping Thomas.gov, the former congressional site of the Library of Congress.

Usage

1
2
3
bills_recent(chamber = c("house", "senate"), congress = 116,
  type = c("introduced", "updated", "active", "passed", "enacted",
  "vetoed"), page = 1L)

Arguments

chamber

house or senate

congress

105-116

type

introduced, updated, active, passed, enacted, or vetoed

page

page of results

References

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

Examples

1
2
3
4
## Not run: 
bills_recent("house", 116, "enacted")

## End(Not run)

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