This API is deprecated in favor of the Real Time Congress API. It contains most legislative information that Drumbone does. Drumbone may be deactivated in the near future.
Roll call votes taken by the United States Congress. There are two methods available:
Important: Use of this data is subject to GovTrack's bulk data license, and this data's accuracy and recency is tied to GovTrack's.
You can see exactly where Drumbone's data on roll call #22 from 2010 comes from, for example, by viewing h2010-22.xml on GovTrack.
The only unique key for a roll call is contained in the field "roll_id". Roll IDs are a combination of the first letter of the chamber the roll call was taken in, its number, and the year it was taken in.
They are of the format: [chamber][number]-[year]
For example, the 22nd roll call in the House in 2010 would be "h22-2010".
This is different from GovTrack's roll call IDs, and is intended to be more consistent with the Bill ID by ending with the scope of the numbering system (in this case, the year).
For the bills method, you must provide a "session" parameter in order to limit results to a particular session. To only search through roll calls from the 111th Congress, pass in "session=111".
Roll call votes can be on more than just bills - there are also Presidential nominations, leadership elections, treaties, impeachments, expulsions, procedural motions, etc.
Many, many votes on bills and other proceedings are not done by roll call at all, but are taken by voice vote. In these cases, there is no associated roll call vote. However, those votes and their results, when related to the passage of a bill, are available on the Bill document itself, in the "votes" section.
If the roll call is associated with a bill (which can be tested on whether or not the bill_id field is null), this contains all basic fields of the associated bill object.
An object containing subobjects for each party represented in the given chamber of Congress, with the vote breakdown for that party. Typically, the top-level keys will be "D", "R", and sometimes "I". Inside these objects is typically "ayes", "nays", "present", and "not_voting".
Note* - Once every two years, the House of Representatives conducts an Election of the Speaker, where the votes are the last names of the legislators in question. For the 111th Congress, the keys here are "Pelosi" and "Boehner", instead of ayes/nays/present/not_voting.
An object containing a subobject for every legislator in that chamber, keyed by bioguide_id. This is a large section. Beneath each bioguide_id is an object containing two fields:
An object where the keys are the bioguide_ids of every legislator in the chamber, and the values are their vote on the legislation. The vote values will be the same as the "vote" field in the "voters" section described above.