get_upcoming_bills: Get Upcoming Bills

View source: R/get_upcoming_bills.R

get_upcoming_billsR Documentation

Get Upcoming Bills

Description

The responses include a legislative_day attribute which is the earliest the bills could be considered and a range attribute that indicates whether the bill information comes from a weekly schedule or a daily one. Combine the two for the best sense of when a bill might come up for consideration. For Senate bills, the response includes a context attribute reproducing the sentence that includes mention of the bill. These responses omit bills that have not yet been assigned a bill number or introduced, and additional bills may be considered at any time. HTTP Request: GET https://api.propublica.org/congress/v1/bills/upcoming/chamber.json

Usage

get_upcoming_bills(chamber, page = 1, myAPI_Key)

Arguments

chamber

house or senate.

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

List of returned JSON from endpoint that retrieves details on bills that may be considered by the House or Senate in the near future, based on scheduled published or announced by congressional leadership.

Examples

## Not run: 
get_upcoming_bills('senate')

## End(Not run)

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.