API Documentation

bills.getall

This method provides all bills for a Congress:

http://www.gop.gov/api/bills.getall

 

Parameters

Parameters are the data you will pass with the call.

congress

The Congress during which the bill was voted on
Rules: Required; Consists of three digit Congressional session (ie: 112)

format

Response Format
Rules: Optional; Two options: xml or json

 

Error Messages


If the bill does not exist:
ERROR: Bill does not exist

 

XML Return

<?xml version="1.0" encoding="utf-8"?>
<method call="bills.getall" timestamp="3/5/2011 12:51:58 PM">
  <bill>
    <billnumber><![CDATA[H.Res. 5]]></billnumber>
    <title><![CDATA[Adopting the Rules of the House of Representatives for the One Hundred Eleventh Congress]]></title>
    <sponsor><![CDATA[Rep. Slaughter, Louise McIntosh]]></sponsor>
    <committee>Rules</committee>
    <billtype><![CDATA[Suspension]]></billtype>
    <shorttitle><![CDATA[hres5]]></shorttitle>
  </bill>
</method>

 

JSON Return

{
     "title": "The American Recovery and Reinvestment Act of 2009",
     "billnumber": "H.R. 1",
     "sponsor": "Rep. Obey, David R.",
     "committee": ,
     "type": "suspension",
     "shorttitle": "hr1",
     "permalink": "http://www.gop.gov/bill/111/1/hr1",
     "thomaslink": "http://www.thomas.gov/cgi-bin/bdquery/z?d111:h.r.1:"
}
Downloads