This Choreo returns information on roll call votes in the U.S. Congress since 1789. Detailed information about the GovTrack Vote API is available here.
The Choreo has optional parameters which can be used to filter the result. Here's an example of a set of optional inputs that limit the list of votes:
Congress: 112
Session: 2012
Category: procedural
Operators can be used with filter parameters as well. This is indicated in the input descriptions. The syntax for filter operators is: {Operator}: {ParameterValue}. Valid operators are: contains, exact, gt, gte, lt, lte, in, startswith, and range. Here's an example of an input that uses a filter operator:
Congress: lt: 113
The above example requests roll call votes where the congress field is less than 113.
The following is a sample of the JSON information returned by this Choreo:
{
"meta": {
"limit": 20,
"next": "/api/v1/vote/?category=procedural&session=2012&limit=20&congress=112&offset=20",
"offset": 0,
"previous": null,
"total_count": 122
},
"objects": [
{
"category": "procedural",
"category_label": "Procedural",
"chamber": "house",
"chamber_label": "House",
"congress": 112,
"created": "2012-01-17T18:53:00",
"id": "36",
"link": "http://www.govtrack.us/congress/votes/112-2012/h1",
"number": 1,
"options": {
"+": "Aye",
"-": "No",
"0": "Not Voting",
"P": "Present"
},
"question": "Call of the House: QUORUM",
"related_bill": null,
"required": "QUORUM",
"resource_uri": "/api/v1/vote/36/",
"result": "Passed",
"session": "2012",
"source": "house",
"source_label": "house.gov",
"source_link": "http://clerk.house.gov/evs/2012/roll001.xml",
"total_minus": 0,
"total_other": 434,
"total_plus": 0,
"vote_type": "Quorum Call"
},
{
"category": "procedural",
"category_label": "Procedural",
"chamber": "house",
"chamber_label": "House",
"congress": 112,
"created": "2012-01-18T13:59:00",
"id": "117",
"link": "http://www.govtrack.us/congress/votes/112-2012/h2",
"number": 2,
"options": {
"+": "Yea",
"-": "Nay",
"0": "Not Voting",
"P": "Present"
},
"question": "On Ordering the Previous Question: H RES 515 Addressing a motion to proceed under section 3101A of title 31, United States Code",
"related_bill": {
"bill_resolution_type": "resolution",
"bill_type": "house_resolution",
"bill_type_label": "H.Res.",
"congress": 112,
"current_status": "passed_simpleres",
"current_status_date": "2012-01-18",
"current_status_description": "This simple resolution passed on January 18, 2012. That is the end of the legislative process for a simple resolution.",
"current_status_label": "Passed (Simple Resolution)",
"display_number": "H.Res. 515",
"docs_house_gov_postdate": null,
"id": "70247",
"introduced_date": "2012-01-17",
"is_alive": false,
"is_current": true,
"link": "http://www.govtrack.us/congress/bills/112/hres515",
"number": 515,
"resource_uri": "/api/v1/bill/70247/",
"senate_floor_schedule_postdate": null,
"sponsor": {
"bioguideid": "S001184",
"birthday": "1965-09-19",
"firstname": "Tim",
"gender": "male",
"gender_label": "Male",
"id": "412471",
"lastname": "Scott",
"link": "http://www.govtrack.us/congress/members/tim_scott/412471",
"metavidid": "",
"middlename": "",
"name": "Rep. Tim Scott [R-SC1]",
"namemod": "",
"nickname": "",
"osid": "N00031782",
"pvsid": "11940",
"resource_uri": "/api/v1/person/412471/",
"sortname": "Scott, Tim (Rep.) [R-SC1]",
"twitterid": "RepTimScott",
"youtubeid": "RepTimScott"
},
"sponsor_role": {
"congress_numbers": [
112
],
"current": true,
"description": "Representative for South Carolina's 1st congressional district",
"district": 1,
"enddate": "2012-12-31",
"id": "42025",
"party": "Republican",
"resource_uri": "/api/v1/role/42025/",
"role_type": "representative",
"role_type_label": "Representative",
"senator_class": null,
"startdate": "2011-01-05",
"state": "SC",
"title": "Rep.",
"title_long": "Representative",
"website": "http://timscott.house.gov/"
},
"thomas_link": "http://thomas.loc.gov/cgi-bin/bdquery/z?d112:hres515:",
"title": "H.Res. 515: Addressing a motion to proceed under section 3101A of title 31, United States Code.",
"title_without_number": "Addressing a motion to proceed under section 3101A of title 31, United States Code."
}