Lords Votes API
An API that allows querying of Lords Votes data.
Data & analytics#openapi#open-data
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
An API that allows querying of Lords Votes data.
Endpoints 5
Divisions
- GETReturn Divisions results grouped by party
/data/Divisions/groupedbyparty?SearchTerm=string&MemberId=0&IncludeWhenMemberWasTeller=true&StartDate=2024-01-01T00:00:00Z&EndDate=2024-01-01T00:00:00Z&DivisionNumber=0&TotalVotesCast.Comparator=LessThan&TotalVotesCast.ValueToCompare=0&Majority.Comparator=LessThan&Majority.ValueToCompare=0Get a list of Divisions which contain grouped by party - GETReturn voting records for a Member
/data/Divisions/membervoting?MemberId=1&SearchTerm=string&IncludeWhenMemberWasTeller=true&StartDate=2024-01-01T00:00:00Z&EndDate=2024-01-01T00:00:00Z&DivisionNumber=0&TotalVotesCast.Comparator=LessThan&TotalVotesCast.ValueToCompare=0&Majority.Comparator=LessThan&Majority.ValueToCompare=0&skip=0&take=25Get a list of voting records for a Member. - GETReturn a list of Divisions
/data/Divisions/search?SearchTerm=string&MemberId=0&IncludeWhenMemberWasTeller=true&StartDate=2024-01-01T00:00:00Z&EndDate=2024-01-01T00:00:00Z&DivisionNumber=0&TotalVotesCast.Comparator=LessThan&TotalVotesCast.ValueToCompare=0&Majority.Comparator=LessThan&Majority.ValueToCompare=0&skip=0&take=25Get a list of Divisions which meet the specified criteria. - GETReturn total results count
/data/Divisions/searchTotalResults?SearchTerm=string&MemberId=0&IncludeWhenMemberWasTeller=true&StartDate=2024-01-01T00:00:00Z&EndDate=2024-01-01T00:00:00Z&DivisionNumber=0&TotalVotesCast.Comparator=LessThan&TotalVotesCast.ValueToCompare=0&Majority.Comparator=LessThan&Majority.ValueToCompare=0Get total count of Divisions meeting the specified query, useful for paging lists etc... - GETReturn a Division
/data/Divisions/:divisionIdGet a single Division which has the Id specified.
API details
- Authentication
- None declared in the description
- Operations
- 5 operations on 5 pathsGET 5
- Main resources
- Divisions 5
- Response formats
application/jsontext/jsontext/plain- Description format
- OpenAPI 3.0.1, API version
v1 - Links
- OpenAPI document · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Lords Votes API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Lords Votes API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Return Divisions results grouped by party” (GET /data/Divisions/groupedbyparty?SearchTerm=string&MemberId=0&IncludeWhenMemberWasTeller=true&StartDate=2024-01-01T00:00:00Z&EndDate=2024-01-01T00:00:00Z&DivisionNumber=0&TotalVotesCast.Comparator=LessThan&TotalVotesCast.ValueToCompare=0&Majority.Comparator=LessThan&Majority.ValueToCompare=0), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Lords Votes API?
An API that allows querying of Lords Votes data. It is listed under Data & analytics and has 5 endpoints.
Who publishes the Lords Votes API?
It is listed from Parliament's public API description (an OpenAPI document), not published by Parliament on Swastik Codes. Anyone who controls parliament.uk can claim the profile by adding a DNS TXT record.
How do I authenticate with the Lords Votes API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Lords Votes API have?
5 operations on 5 paths (5 GET). The largest groups are Divisions.
Is forking the Lords Votes API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.