NOTICE - Key votes summaries and the synopses from before April 2007 can not be relied upon. Due to our migration from our old database to our new database not all votes from before have been checked and some errors or omissions may have occurred.

Votes Class


* - Required
* - Multiple rows

Votes.getCategories


This method dumps categories that contain released bills according to year and state.

Input: year*, stateId (default: 'NA')

Output:
categories.category*.categoryId
categories.category*.name

Votes.getBill


This method dumps general information on a bill.

Input: billId*

Output:
bill.billnumber
bill.parentbill
bill.title
bill.officialtitle
bill.dateintroduced
bill.type
bill.categories.category*.categoryId
bill.categories.category*.name
bill.billtextLink
bill.sponsors.sponsor*.candidateId
bill.sponsors.sponsor*.name
bill.sponsors.sponsor*.type
bill.committeeSponsors.committeeSponsor*.committeeId
bill.committeeSponsors.committeeSponsor*.name
bill.actions.action*.actionId
bill.actions.action*.level
bill.actions.action*.stage
bill.actions.action*.outcome
bill.actions.action*.statusDate
bill.actions.action*.rollNumber
bill.actions.action*.yea
bill.actions.action*.nay
bill.actions.action*.voiceVote
bill.amendments.amendment*.billNumber
bill.amendments.amendment*.actionId
bill.amendments.amendment*.title
bill.amendments.amendment*.statusDate

Votes.getBillAction


This gets detailed action information on a certain stage of the bill.

Input: actionId*

Output:
action.billId
action.billNumber
action.actionId
action.category
action.categoryId
action.type
action.stateId
action.level
action.stage
action.outcome
action.rollNumber
action.yea
action.nay
action.voiceVote
action.title
action.officialTitle
action.highlight
action.synopsis
action.officialSynopsis
action.note

Votes.getBillActionVotes


Method provides votes listed by candidate on a certain bill action.

Input: actionId*

Output:
votes.vote*.candidateId
votes.vote*.candidateName
votes.vote*.officeParties
votes.vote*.action

Votes.getBillActionVoteByOfficial


Returns a single vote according to official and action.

Input: actionId*, candidateId*

Output:
votes.vote.candidateId
votes.vote.candidateName
votes.vote.officeParties
votes.vote.action

Votes.getByBillNumber


Returns a list of bills that are like the billNumber input.

Input: billNumber*

Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsByCategoryYearState


Returns a list of bills that fit the category, year, and state input.

Input: categoryId*, year*, stateId

Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsByYearState


Returns a list of bills that fit the year and state input.

Input: year*, stateId

Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsByOfficialYearOffice


Returns a list of bills that fit the candidate and year.

Input: candidateId*, year*, officeId (Default: NULL(all))

Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsByOfficialCategoryOffice


Returns a list of bills that fit the candidate and category.

Input: candidateId*, categoryId*, officeId (Default: NULL(all))
Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getByOfficial


This method dumps all the bills an official has voted on based on the candidateId, officeId, categoryId, and year

Input: candidateId*, officeId, categoryId, year
Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill.categories.category*.categoryId
bills.bill.categories.category*.name
bills.bill*.officeId
bills.bill*.office
bills.bill*.vote
bills.bill*.actionId
bills.bill*.stage

Votes.getBillsBySponsorYear


Returns a list of bills that fit the sponsor's candidateId and year.

Input: candidateId*, year*
Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsBySponsorCategory


Returns a list of bills that fit the sponsor's candidateId and category.

Input: candidateId*, categoryId*
Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getBillsByStateRecent


Returns a list of recent bills according to the state. Max returned is 100 or however much less you want.

Input: amount (default: 100, max: 100), state (default: 'NA')
Output:
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.title
bills.bill*.type

Votes.getVetoes


Returns a list of vetoes according to candidate.

Input: candidateId
Output:
bills.bill*.vetoId
bills.bill*.statusDate
bills.bill*.billId
bills.bill*.billNumber
bills.bill*.billTitle
bills.bill*.vetoCode
bills.bill*.vetoType
bills.bill*.billSummary
bills.bill*.billLink
bills.bill*.vetoLetterLink