WebService::UK::Parliament::Bills - Query the UK Parliament Bills API
Version 0.04
use WebService::UK::Parliament::Bills; my $client = WebService::UK::Parliament::Bills->new(); my $data = $client->$endpoint($params);
The following documentation is automatically generated using the UK Parliament OpenAPI specification.
An API which retrieves Members data.
Returns a list of locations, both parent and child
get
/api/Location/Browse/{locationType}/{locationName}
Location by type of location
integer
0 1 2 3
Location by name specified
string
Returns a list of constituencies
/api/Location/Constituency/Search
Constituencies containing serach term in their name
The number of records to skip from the first, default is 0
format: int32
The number of records to return, default is 20. Maximum is 20
Returns a constituency by ID
/api/Location/Constituency/{id}
Constituency by ID
Returns latest election result by constituency id
/api/Location/Constituency/{id}/ElectionResult/Latest
Latest election result by constituency id
Returns an election result by constituency and election id
/api/Location/Constituency/{id}/ElectionResult/{electionId}
Election result by constituency id
Election result by election id
Returns a list of election results by constituency ID
/api/Location/Constituency/{id}/ElectionResults
Elections results by constituency ID
Returns geometry by constituency ID
/api/Location/Constituency/{id}/Geometry
Geometry by constituency ID
Returns a list of representations by constituency ID
/api/Location/Constituency/{id}/Representations
Representations by constituency ID
Returns a synopsis by constituency ID
/api/Location/Constituency/{id}/Synopsis
Synopsis by constituency ID
Returns a list of registered interests
/api/LordsInterests/Register
Registered interests containing search term
Page of results to return, default 0. Results per page 20.
Registered interests that have been deleted
boolean
Returns a list of staff
/api/LordsInterests/Staff
Staff containing search term
Return members by ID with list of their historical names, parties and memberships
/api/Members/History
List of MemberIds to find
array
{"type":"integer","format":"int32"}
Returns a list of current members of the Commons or Lords
/api/Members/Search
Members where name contains term specified
Members where postcode or geographical location matches the term specified
Members which have held the post specified
Members which are currently affiliated with party with party ID
Members where their most recent house is the house specified
1 2
Members which currently hold the constituency with constituency id
Members with surname begining with letter(s) specified
Members with the gender specified
Members who started on or after the date given
format: date-time
Members who left the House on or after the date given
{"format":"int32","type":"integer"}
Members who were active on or after the date specified
Members who were active on or before the date specified
Members who were active in the house specifid
Members currently Eligible to sit in their House
Members who are current or former members
Members with specified policy interest
Members with specified experience
Returns a list of members of the Commons or Lords
/api/Members/SearchHistorical
Members with names containing the term specified
Members that were an active member of the Commons or Lords on the date specified
Return member by ID
/api/Members/{id}
Member by ID specified
Member object will be populated with details from the date specified
Return biography of member by ID
/api/Members/{id}/Biography
Biography of Member by ID specified
Return list of contact details of member by ID
/api/Members/{id}/Contact
Contact details of Member by ID specified
Return contribution summary of member by ID
/api/Members/{id}/ContributionSummary
Contribution summary of Member by ID specified
Return list of early day motions of member by ID
/api/Members/{id}/Edms
Early day motions of Member by ID specified
Return experience of member by ID
/api/Members/{id}/Experience
Experience of Member by ID specified
Return list of areas of focus of member by ID
/api/Members/{id}/Focus
Areas of focus of Member by ID specified
Return latest election result of member by ID
/api/Members/{id}/LatestElectionResult
Latest election result of Member by ID specified
Return portrait of member by ID
/api/Members/{id}/Portrait
Portrait of Member by ID specified
Return portrait url of member by ID
/api/Members/{id}/PortraitUrl
Portrait url of Member by ID specified
Return list of registered interests of member by ID
/api/Members/{id}/RegisteredInterests
Registered interests of Member by ID specified
Return list of staff of member by ID
/api/Members/{id}/Staff
Staff of Member by ID specified
Return synopsis of member by ID
/api/Members/{id}/Synopsis
Synopsis of Member by ID specified
Return thumbnail of member by ID
/api/Members/{id}/Thumbnail
Thumbnail of Member by ID specified
Return thumbnail url of member by ID
/api/Members/{id}/ThumbnailUrl
Thumbnail url of Member by ID specified
Return list of votes by member by ID
/api/Members/{id}/Voting
Votes by Member by ID specified
Return list of written questions by member by ID
/api/Members/{id}/WrittenQuestions
Written questions by Member by ID specified
Returns a list of current parties with at least one active member.
/api/Parties/GetActive/{house}
Current parties by house
Returns the composition of the House of Lords by peerage type.
/api/Parties/LordsByType/{forDate}
Composition of the Lords for date specified.
Returns current state of parties
/api/Parties/StateOfTheParties/{house}/{forDate}
State of parties in Commons or Lords.
State of parties for the date specified
Returns a list of departments.
/api/Posts/Departments/{type}
Departments by type
0 1 2
Returns a list of government posts.
/api/Posts/GovernmentPosts
Government posts by department ID
Returns a list of opposition posts.
/api/Posts/OppositionPosts
Opposition posts by department ID
Returns a list containing the speaker and deputy speakers.
/api/Posts/SpeakerAndDeputies/{forDate}
Speaker and deputy speakers for date specified
Returns a list of spokespersons.
/api/Posts/Spokespersons
Spokespersons by party ID
Returns a list of answering bodies.
/api/Reference/AnsweringBodies
/api/Reference/Departments
Returns department logo.
/api/Reference/Departments/{id}/Logo
Logo by department ID
Returns a list of policy interest.
/api/Reference/PolicyInterests
LNATION, <thisusedtobeanemail at gmail.com>
<thisusedtobeanemail at gmail.com>
Please report any bugs or feature requests to bug-webservice-uk-parliament at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-UK-Parliament. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-webservice-uk-parliament at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc WebService::UK::Parliament
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=WebService-UK-Parliament
CPAN Ratings
https://cpanratings.perl.org/d/WebService-UK-Parliament
Search CPAN
https://metacpan.org/release/WebService-UK-Parliament
The first ticehurst bathroom experience
This software is Copyright (c) 2022 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install WebService::UK::Parliament, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::UK::Parliament
CPAN shell
perl -MCPAN -e shell install WebService::UK::Parliament
For more information on module installation, please visit the detailed CPAN module installation guide.