Congress Member Votes

v0.2.1
io.github.pipeworx-io/congress-member-votes Checked 4 days ago Published 1 month ago

Congress Member Votes -- how each U.S.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

member_vote_positions

ANSWERS "how did Rep. X vote on bill Y" / "what were X's last 20 votes" / "did X vote against the budget resolution" -- one member's recorded position (Yea, Nay, Present, Not Voting, or not on the roll) on roll calls, newest first -- House members from the U.S. House Clerk's roll-call votes, senators (chamber "senate") from the Congressional Record, where the Senate's roll calls are printed. Filter by `bill` (e.g. "H R 1"), `question_contains` (matched against question, bill number and description) or a roll range. Quorum calls, Speaker elections and Senate rolls whose record could not be deri…

ParameterTypeDescription
billstringLegislation number as the Clerk prints it, e.g. "H R 1", "H J RES 104", "S 2403" (punctuation and spacing ignored; exact match).
bioguide_idstringBioguide id, e.g. "P000197".
chamberstring"house" (default) or "senate". The two chambers number their roll calls independently.
congressnumberCongress number, e.g. 119. Default: the newest held.
from_rollnumberFirst roll number to consider.
include_non_recordedbooleanInclude quorum calls and Speaker-election rolls (default false).
limitnumberRolls to return (default 20, max 50).
namestringSurname as the Clerk prints it, e.g. "Pelosi"; combine with state when several members share it.
question_containsstringCase-insensitive text to match in the vote question, bill number or description, e.g. "suspend the rules", "continuing appropriations".
sessionnumber1 or 2. Default: the newest held for the default Congress.
statestringTwo-letter state code to disambiguate a surname.
to_rollnumberLast roll number to consider.

member_attendance_party_line

ANSWERS "how many votes did Rep. X miss", "how often does X vote with their party", "party unity score" -- attendance and party-line share for ONE member (House, or a senator with chamber "senate") over a session (or a roll range), computed from the U.S. House Clerk's roll-call votes or, for the Senate, the Congressional Record's printed roll calls. Nothing is returned as a bare percentage: attendance gives its denominator (recorded roll calls the member was on the roll for; quorum calls, Speaker elections and Senate rolls that could not be derived are excluded and counted; rolls before the me…

ParameterTypeDescription
bioguide_idstringBioguide id, e.g. "P000197".
chamberstring"house" (default) or "senate". The two chambers number their roll calls independently.
congressnumberCongress number, e.g. 119. Default: the newest held.
from_rollnumberFirst roll number of the range (default 1).
namestringSurname as the Clerk prints it, e.g. "Pelosi"; combine with state when several members share it.
sessionnumber1 or 2. Default: the newest held for the default Congress.
statestringTwo-letter state code to disambiguate a surname.
to_rollnumberLast roll number of the range (default: last roll covered).

roll_call_positions

ANSWERS "who voted against roll call 100", "how did Texas Republicans split on roll 250", "how many Democrats voted Yea" -- every member's position on ONE roll call (House: the U.S. House Clerk's roll-call votes; Senate: the Congressional Record) with Yea/Nay/Present/Not Voting tallies by party. Pass party (D/R/I), state or position (yea/nay/present/not_voting) to list matching members; with none of these only the tallies and the roll's question, result and bill are returned. A roll number that does not exist in that session returns a named reason.

ParameterTypeDescription
roll_number *numberRoll call number within the session, e.g. 100.
chamberstring"house" (default) or "senate". The two chambers number their roll calls independently.
congressnumberCongress number, e.g. 119. Default: the newest held.
partystring"D", "R" or "I" to list only that party.
positionstringyea, nay, present or not_voting.
sessionnumber1 or 2. Default: the newest held for the default Congress.
statestringTwo-letter state code to list only that state's members.