get_a_bill | R Documentation |
Use this request type to get 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.
get_a_bill(congress, bill_id, page = 1, myAPI_Key)
congress |
105-116 |
bill_id |
a bill slug, for example hr4881 - these can be found in the recent bill response. |
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. |
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.
List with the result of the query
## Not run:
get_a_bill(115, 'hr21')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.