User-level API’s#
The user-level API consists of thin python stubs for each interface provided by the Washington legislature’s web services.
The module name is the XML service name, converted to lower case, without the word “Service” on the end. The module name is not converted to snake_case, so CommitteeMeetingService is in the committeemeeting module
The function in the service is the XML API name, converted from camel case to snake case, so GetAmendments becomes get_amendments.
The argment names are also converted to camel_case within each wrapper function
Note
The details of using each API are not documented here. See the link to the page on the legistature website with technical details and a test form.
AmendmentService#
- amendment.get_amendments(year: int) Dict[str, Any] [source]#
Returns list of amendments submitted to the rostrum during the year. Exception thrown for invalid year.
See: http://wslwebservices.leg.wa.gov/amendmentservice.asmx?op=GetAmendments
CommitteeService#
- committee.get_active_committee_members(agency: str, committee_name: str) Dict[str, Any] [source]#
Lists active committee members for the given standing committee. Exception thrown for invalid agency or committee name. Agency should be House or Senate. CommitteeName is the Name Property returned in GetActiveHouseCommittees/GetActiveSenateCommittees.
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetActiveCommitteeMembers
- committee.get_active_committees() Dict[str, Any] [source]#
All active House and Senate standing committees.
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetActiveCommittees
- committee.get_active_house_committees() Dict[str, Any] [source]#
All active House standing committees.
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetActiveHouseCommittees
- committee.get_active_senate_committees() Dict[str, Any] [source]#
All active Senate standing committees.
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetActiveSenateCommittees
- committee.get_committee_members(biennium: str, agency: str, committee_name: str) Dict[str, Any] [source]#
Lists committee members for the given standing committee. Exception thrown for invalid biennium, agency, or committee name. Expects biennium to be in the format: 2005-06. Agency should be House or Senate. CommitteeName is the Name Property returned in GetHouseCommittees/GetSenateCommittees.
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetCommitteeMembers
- committee.get_committees(biennium: str) Dict[str, Any] [source]#
All House and Senate standing committees during the given biennium. Exception thrown for invalid biennium. Expects iennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetCommittees
- committee.get_house_committees(biennium: str) Dict[str, Any] [source]#
All House standing committees during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetHouseCommittees
- committee.get_senate_committees(biennium: str) Dict[str, Any] [source]#
All Senate standing committees during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/committeeservice.asmx?op=GetSenateCommittees
CommitteeMeetingService#
- committeemeeting.get_committee_meeting_items(agenda_id: int) Dict[str, Any] [source]#
Returns a list of meeting items for a specific Committee Meeting.
See: http://wslwebservices.leg.wa.gov/committeemeetingservice.asmx?op=GetCommitteeMeetingItems
- committeemeeting.get_committee_meetings(begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
Returns a list of Committee Meetings for a given date range. Exception thrown for invalid date range.
See: http://wslwebservices.leg.wa.gov/committeemeetingservice.asmx?op=GetCommitteeMeetings
- committeemeeting.get_revised_committee_meetings(changed_since_date: datetime) Dict[str, Any] [source]#
Returns a list of Committee Meetings that have been revised since a given date.
See: http://wslwebservices.leg.wa.gov/committeemeetingservice.asmx?op=GetRevisedCommitteeMeetings
LegislationService#
The wrapper function for GetLegislativeBillListFeatureData in the LegislationService is not yet implemented.
- legislation.get_amendments_for_biennium(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns a list of all pending and acted on amendments for the bill during the biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetAmendmentsForBiennium
- legislation.get_amendments_for_year(year: int, bill_number: int) Dict[str, Any] [source]#
Returns a list of all pending and acted on amendments for the bill during the year. Exception thrown for invalid year.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetAmendmentsForYear
- legislation.get_current_status(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns the current status of the bill in the legislative process. Exception thrown for invalid biennium or if no status found. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetCurrentStatus
- legislation.get_hearings(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns a list of committee hearings for the bill. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetHearings
- legislation.get_house_legislation_passed_house(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all House bills that have passed the House.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetHouseLegislationPassedHouse
- legislation.get_house_legislation_passed_senate(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all House bills that have passed the Senate.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetHouseLegislationPassedSenate
- legislation.get_legislation(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns legislation information on the bill. If substitutes to the bill have been proposed, they will be listed separately. The active flag is true for versions that can be passed on the floor. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislation
- legislation.get_legislation_by_request_number(biennium: str, request_number: str) Dict[str, Any] [source]#
Returns legislation information based on the original request number of the draft submitted. Exception thrown for invalid biennium or requestNumber or if no information found. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationByRequestNumber
- legislation.get_legislation_by_year(year: int) Dict[str, Any] [source]#
Returns summary legislation information on all bills active during the year. If substitutes to the bill have been proposed, they will be listed separately. The active flag is true for versions that can be passed on the floor. Exception thrown for invalid year. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationByYear
- legislation.get_legislation_governor_partial_veto(biennium: str, agency: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have been partially vetoed by the governor.<br/>Exception thrown for invalid agency or biennium.<br/>Expects biennium to be in the format: 2005-06<br/>Agency should be House or Senate.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationGovernorPartialVeto
- legislation.get_legislation_governor_signed(biennium: str, agency: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have been signed by the governor.<br/>Exception thrown for invalid agency or biennium.<br/>Expects biennium to be in the format: 2005-06<br/>Agency should be House or Senate.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationGovernorSigned
- legislation.get_legislation_governor_veto(biennium: str, agency: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have been vetoed by the governor.<br/>Exception thrown for invalid agency or biennium.<br/>Expects biennium to be in the format: 2005-06<br/>Agency should be House or Senate.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationGovernorVeto
- legislation.get_legislation_info_introduced_since(since_date: datetime) Dict[str, Any] [source]#
Returns summary legislation information on all bills introduced since the date given. If substitutes to the bill have been proposed, they will be listed separately. The active flag is true for versions that can be passed on the floor.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationInfoIntroducedSince
- legislation.get_legislation_introduced_since(since_date: datetime) Dict[str, Any] [source]#
Returns detailed legislation information on all bills introduced since the date given. If substitutes to the bill have been proposed, they will be listed separately. The active flag is true for versions that can be passed on the floor.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationIntroducedSince
- legislation.get_legislation_not_yet_introduced_in_house_of_origin(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on bills that are active, have available bill text, and have not yet been introduced in the house of origin.<br/>Expects biennium to be in the format: 2005-06
- legislation.get_legislation_passed_house(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have passed the House.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationPassedHouse
- legislation.get_legislation_passed_house_within_time_frame(begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
Returns summary legislation information on all bills that House passed off the floor for the first time between the begin and end date (even if the bill is not currently passed the House - For example, a House bill that the House passed may have been amended in the Senate and the House has not passed the amended version of the bill. This bill would still be returned in this method. If you don’t want that bill, use the GetLegislationPassedHouse.).
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationPassedHouseWithinTimeFrame
- legislation.get_legislation_passed_legislature(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have passed the legislature.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationPassedLegislature
- legislation.get_legislation_passed_legislature_within_time_frame(begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have passed the legislature within the begin and end date.
- legislation.get_legislation_passed_original_body_and_not_introduced_in_opposite_body(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on bills that have passed the originating body and not yet introduced in opposite body.<br/>Expects biennium to be in the format: 2005-06
- legislation.get_legislation_passed_senate(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have passed the Senate.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationPassedSenate
- legislation.get_legislation_passed_senate_within_time_frame(begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
Returns summary legislation information on all bills that Senate passed off the floor for the first time between the begin and end date (even if the bill is not currently passed the House - For example, a Senate bill that the Senate passed may have been amended in the House and the Senate has not passed the amended version of the bill. This bill would still be returned in this method. If you don’t want that bill, use the GetLegislationPassedSenate.).
- legislation.get_legislation_types() Dict[str, Any] [source]#
Returns a list of all valid types of legislation.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislationTypes
- legislation.get_legislative_status_changes_by_bill_id(biennium: str, bill_id: str, begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislativeStatusChangesByBillId
- legislation.get_legislative_status_changes_by_bill_number(biennium: str, bill_number: int, begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislativeStatusChangesByBillNumber
- legislation.get_legislative_status_changes_by_date_range(biennium: str, begin_date: datetime, end_date: datetime) Dict[str, Any] [source]#
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetLegislativeStatusChangesByDateRange
- legislation.get_pre_filed_legislation_info() Dict[str, Any] [source]#
Returns summary legislation information on all prefiled bills (currently in prefiled status). Once a bill is formally introduced, its information can be obtained by calling the GetLegislation method.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetPreFiledLegislationInfo
- legislation.get_prefiled_legislation() Dict[str, Any] [source]#
Returns detailed legislation information on all prefiled bills (currently in prefiled status). Once a bill is formally introduced, its information can be obtained by calling the GetLegislation method.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetPrefiledLegislation
- legislation.get_published_enrolled_legislation(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all bills that have been enrolled and published by the legislature.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetPublishedEnrolledLegislation
- legislation.get_rcw_cites_affected(biennium: str, bill_id: str) Dict[str, Any] [source]#
Returns RCW Cites referenced within the legislation. Exception thrown for invalid biennium or billId. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetRcwCitesAffected
- legislation.get_roll_calls(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns list of roll calls taken on the bill. Exception thrown for invalid biennium. Expects biennium in the format 2005-06.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetRollCalls
- legislation.get_senate_legislation_passed_house(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all Senate bills that have passed the House.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetSenateLegislationPassedHouse
- legislation.get_senate_legislation_passed_senate(biennium: str) Dict[str, Any] [source]#
Returns summary legislation information on all Senate bills that have passed the Senate.<br/>Exception thrown for invalid biennium.<br/>Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetSenateLegislationPassedSenate
- legislation.get_session_law_chapter(biennium: str, bill_id: str) Dict[str, Any] [source]#
Returns chapter and session law information on given bill. Exception thrown for invalid biennium or billId. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetSessionLawChapter
- legislation.get_sponsors(biennium: str, bill_id: str) Dict[str, Any] [source]#
Returns list of bill sponsors. Exception thrown for invalid biennium or billId. Expects biennium in the format 2005-06.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetSponsors
- legislation.get_total_legislation_introduced_by_date_range(begin_date: datetime, end_date: datetime, leg_type_id: int, agency_id: int, all_versions: bool) Dict[str, Any] [source]#
Returns legislation introduced in the given date range by the given legislation type.
See: http://wslwebservices.leg.wa.gov/legislationservice.asmx?op=GetTotalLegislationIntroducedByDateRange
LegislativeDocumentService#
- legislativedocument.get_all_documents_by_class(biennium: str, document_class: str) Dict[str, Any] [source]#
Lists all legislative documents of the given document class. Exception thrown for invalid biennium or documentClass. Expects the biennium in the format: 2005-06. Information is available back to 1991-92. The results will include URLs to PDF and HTM versions of each document.
See: http://wslwebservices.leg.wa.gov/legislativedocumentservice.asmx?op=GetAllDocumentsByClass
- legislativedocument.get_document_classes(biennium: str) Dict[str, Any] [source]#
Returns available bill family document types for the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06. Information is available back to 1991-92.
See: http://wslwebservices.leg.wa.gov/legislativedocumentservice.asmx?op=GetDocumentClasses
- legislativedocument.get_documents(biennium: str, named_like: str) Dict[str, Any] [source]#
Lists legislative documents with names starting with the namedlike value. Exception thrown for invalid biennium or namedLike or when no documents found. Expects the biennium in the format: 2005-06. Information is available back to 1991-92.For Initiatives to the Legislature, enter the following in namedLike: Initiative.<br>The results will include URLs to PDF and HTM versions of each document.
See: http://wslwebservices.leg.wa.gov/legislativedocumentservice.asmx?op=GetDocuments
- legislativedocument.get_documents_by_class(biennium: str, document_class: str, named_like: str) Dict[str, Any] [source]#
Lists legislative documents of the given document class with names starting with the namedlike value. Exception thrown for invalid biennium, documentClass or namedLike or when no documents found. Expects the biennium in the format: 2005-06. Information is available back to 1991-92. For Initiatives to the Legislature, enter the following in namedLike: Initiative. The results will include URLs to PDF and HTM versions of each document.
See: http://wslwebservices.leg.wa.gov/legislativedocumentservice.asmx?op=GetDocumentsByClass
RCWCiteAffectedService#
- rcwciteaffected.get_legislation_affecting_rcw(biennium: str, rcw_cite: str) Dict[str, Any] [source]#
Returns legislation that affect the RCW within the title, chapter, or section. Exception thrown for invalid biennium or rcwCite. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/rcwciteaffectedservice.asmx?op=GetLegislationAffectingRcw
- rcwciteaffected.get_legislation_affecting_rcw_cite(biennium: str, rcw_cite: str) Dict[str, Any] [source]#
Returns legislation that affect the RCW Cite. Exception thrown for invalid biennium or rcwCite. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/rcwciteaffectedservice.asmx?op=GetLegislationAffectingRcwCite
SessionLawService#
- sessionlaw.get_bill_by_chapter_number(year: int, session: int, chapter_number: int) Dict[str, Any] [source]#
Returns Bill information for a chapter. Exception thrown for invalid year or when no legislation found. Expects year in the format: YYYY. Session is the SessionCode (0=Regular Session, 1=1st Special Session, etc.).
See: http://wslwebservices.leg.wa.gov/sessionlawservice.asmx?op=GetBillByChapterNumber
- sessionlaw.get_chapter_numbers_by_year(year: int) Dict[str, Any] [source]#
Returns all Chapters for a year. Exception thrown for invalid year. Expects year in the format: YYYY.
See: http://wslwebservices.leg.wa.gov/sessionlawservice.asmx?op=GetChapterNumbersByYear
- sessionlaw.get_session_law_by_bill(biennium: str, bill_number: int) Dict[str, Any] [source]#
Returns session law information for a bill. Note: This will not return information on Initiatives to the Legislature. Exception thrown for invalid biennium or when no session law found. Expects biennium to be in the format: 2005-06.
See: http://wslwebservices.leg.wa.gov/sessionlawservice.asmx?op=GetSessionLawByBill
- sessionlaw.get_session_law_by_bill_id(biennium: str, bill_id: str) Dict[str, Any] [source]#
Returns session law information for a billId. Exception thrown for invalid biennium or when no session law found. Expects biennium to be in the format: 2005-06.
See: http://wslwebservices.leg.wa.gov/sessionlawservice.asmx?op=GetSessionLawByBillId
- sessionlaw.get_session_law_by_initiative_number(initiative_number: int) Dict[str, Any] [source]#
Returns session law information for an Initiative to the Legislature. Exception thrown when no session law found.
See: http://wslwebservices.leg.wa.gov/sessionlawservice.asmx?op=GetSessionLawByInitiativeNumber
SponsorService#
- sponsor.get_house_sponsors(biennium: str) Dict[str, Any] [source]#
All Representatives that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetHouseSponsors
- sponsor.get_requesters(biennium: str) Dict[str, Any] [source]#
All entities that can request legislation for the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetRequesters
- sponsor.get_senate_sponsors(biennium: str) Dict[str, Any] [source]#
All Senators that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetSenateSponsors
- sponsor.get_sponsors(biennium: str) Dict[str, Any] [source]#
All Representatives and Senators that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetSponsors