{"@context": "https://schema.org", "@type": "WebAPI", "name": "Members API API", "description": "An API which retrieves Members data.", "provider": {"@type": "Organization", "name": "parliament.uk"}, "documentation": "https://members-api.parliament.uk/swagger/v1/swagger.json"}
Index / APIs / parliament.uk

Members API API

An API which retrieves Members data.

Every row below was read from the vendor's own OpenAPI document. The summary text is theirs. What this registry adds is that each operation is indexed with its method, path, base URL and auth scheme, so a search for a capability can answer with a call rather than a name, and that the endpoint is probed on a schedule.

Specifications as held by the APIs.guru corpus, whose newest record is 2023-04-21. Operations the vendor has added since are not listed here; the origin links above are the vendor's own current documents.

base URLs: https://bills-api.parliament.uk http://commonsvotes-api.parliament.uk http://oralquestionsandmotions-api.parliament.uk https://oralquestionsandmotions-api.parliament.uk https://api.parliament.uk/search

find it by capability: POST /search {"query":{"text":"..."}} returns these operations with their invocation detail. Connect any agent client.

Members API vv1

An API which retrieves Members data.

methodpathwhat the vendor says it does
GET/api/Location/Browse/{locationType}/{locationName}Returns a list of locations, both parent and child Location
GET/api/Location/Constituency/SearchReturns a list of constituencies Location
GET/api/Location/Constituency/{id}Returns a constituency by ID Location
GET/api/Location/Constituency/{id}/ElectionResult/LatestReturns latest election result by constituency id Location
GET/api/Location/Constituency/{id}/ElectionResult/{electionId}Returns an election result by constituency and election id Location
GET/api/Location/Constituency/{id}/ElectionResultsReturns a list of election results by constituency ID Location
GET/api/Location/Constituency/{id}/GeometryReturns geometry by constituency ID Location
GET/api/Location/Constituency/{id}/RepresentationsReturns a list of representations by constituency ID Location
GET/api/Location/Constituency/{id}/SynopsisReturns a synopsis by constituency ID Location
GET/api/LordsInterests/RegisterReturns a list of registered interests LordsInterests
GET/api/LordsInterests/StaffReturns a list of staff LordsInterests
GET/api/Members/HistoryReturn members by ID with list of their historical names, parties and memberships Members
GET/api/Members/SearchReturns a list of current members of the Commons or Lords Members
GET/api/Members/SearchHistoricalReturns a list of members of the Commons or Lords Members
GET/api/Members/{id}Return member by ID Members
GET/api/Members/{id}/BiographyReturn biography of member by ID Members
GET/api/Members/{id}/ContactReturn list of contact details of member by ID Members
GET/api/Members/{id}/ContributionSummaryReturn contribution summary of member by ID Members
GET/api/Members/{id}/EdmsReturn list of early day motions of member by ID Members
GET/api/Members/{id}/ExperienceReturn experience of member by ID Members
GET/api/Members/{id}/FocusReturn list of areas of focus of member by ID Members
GET/api/Members/{id}/LatestElectionResultReturn latest election result of member by ID Members
GET/api/Members/{id}/PortraitReturn portrait of member by ID Members
GET/api/Members/{id}/PortraitUrlReturn portrait url of member by ID Members
GET/api/Members/{id}/RegisteredInterestsReturn list of registered interests of member by ID Members
GET/api/Members/{id}/StaffReturn list of staff of member by ID Members
GET/api/Members/{id}/SynopsisReturn synopsis of member by ID Members
GET/api/Members/{id}/ThumbnailReturn thumbnail of member by ID Members
GET/api/Members/{id}/ThumbnailUrlReturn thumbnail url of member by ID Members
GET/api/Members/{id}/VotingReturn list of votes by member by ID Members
GET/api/Members/{id}/WrittenQuestionsReturn list of written questions by member by ID Members
GET/api/Parties/GetActive/{house}Returns a list of current parties with at least one active member. Parties
GET/api/Parties/LordsByType/{forDate}Returns the composition of the House of Lords by peerage type. Parties
GET/api/Parties/StateOfTheParties/{house}/{forDate}Returns current state of parties Parties
GET/api/Posts/Departments/{type}Returns a list of departments. Posts
GET/api/Posts/GovernmentPostsReturns a list of government posts. Posts
GET/api/Posts/OppositionPostsReturns a list of opposition posts. Posts
GET/api/Posts/SpeakerAndDeputies/{forDate}Returns a list containing the speaker and deputy speakers. Posts
GET/api/Posts/SpokespersonsReturns a list of spokespersons. Posts
GET/api/Reference/AnsweringBodiesReturns a list of answering bodies. Reference

and 3 more operation(s) in this specification, all searchable.

specification origin: https://members-api.parliament.uk/swagger/v1/swagger.json

Bills API vv1

API to get and search for information regarding Bills, their stages, associated amendments and publications.

methodpathwhat the vendor says it does
GET/api/v1/BillTypesReturns a list of Bill types. BillTypes
GET/api/v1/BillsReturns a list of Bills. Bills
GET/api/v1/Bills/{billId}Return a Bill. Bills
GET/api/v1/Bills/{billId}/NewsArticlesReturns a list of news articles for a Bill. BillNews
GET/api/v1/Bills/{billId}/PublicationsReturn a list of Bill publications. Publications
GET/api/v1/Bills/{billId}/StagesReturns all Bill stages. Bills
GET/api/v1/Bills/{billId}/Stages/{billStageId}Returns a Bill stage. Bills
GET/api/v1/Bills/{billId}/Stages/{billStageId}/AmendmentsReturns a list of amendments. Amendments
GET/api/v1/Bills/{billId}/Stages/{billStageId}/Amendments/{amendmentId}Returns an amendment. Amendments
GET/api/v1/Bills/{billId}/Stages/{stageId}/PublicationsReturn a list of Bill stage publications. Publications
GET/api/v1/PublicationTypesReturns a list of publication types. PublicationTypes
GET/api/v1/Publications/{publicationId}/Documents/{documentId}Return information on a document. Documents
GET/api/v1/Publications/{publicationId}/Documents/{documentId}/DownloadReturn a document. Documents
GET/api/v1/Rss/Bills/{id}.rssReturns an Rss feed of a certain Bill. Rss
GET/api/v1/Rss/allbills.rssReturns an Rss feed of all Bills. Rss
GET/api/v1/Rss/privatebills.rssReturns an Rss feed of private Bills. Rss
GET/api/v1/Rss/publicbills.rssReturns an Rss feed of public Bills. Rss
GET/api/v1/SittingsReturns a list of Sittings. Sittings
GET/api/v1/StagesReturns a list of Bill stages. Stages

specification origin: https://bills-api.parliament.uk/swagger/v1/swagger.json

Erskine May API vv1

An API that allows querying of Erskine May data.

methodpathwhat the vendor says it does
GET/api/Chapter/{chapterNumber}Returns a single chapter overview by chapter number. Chapter
GET/api/IndexTerm/browseReturns a list of index terms by start letter. IndexTerm
GET/api/IndexTerm/{indexTermId}Returns an index term by id. IndexTerm
GET/api/PartReturns a list of all parts. Part
GET/api/Part/{partNumber}Returns a part by part number. Part
GET/api/Search/IndexTermSearchResults/{searchTerm}Returns a list of index terms which contain the search term. Search
GET/api/Search/Paragraph/{reference}Returns a section overview by reference. Search
GET/api/Search/ParagraphSearchResults/{searchTerm}Returns a list of paragraphs which contain the search term. Search
GET/api/Search/SectionSearchResults/{searchTerm}Returns a list of sections which contain the search term. Search
GET/api/Section/{sectionId}Returns a section by section id. Section
GET/api/Section/{sectionId},{step}Returns a section overview by section id and step. Section

specification origin: https://erskinemay-api.parliament.uk/swagger/v1/swagger.json

Statutory Instruments API vv1

An API exposing details of the various types of Statutory Instruments laid before Parliament.

methodpathwhat the vendor says it does
GET/api/v1/BusinessItem/{id}Returns business item by ID. BusinessItem
GET/api/v1/LayingBodyReturns all laying bodies. LayingBody
GET/api/v1/ProcedureReturns all procedures. Procedure
GET/api/v1/Procedure/{id}Returns procedure by ID. Procedure
GET/api/v1/ProposedNegativeStatutoryInstrumentReturns a list of proposed negative statutory instruments. ProposedNegativeStatutoryInstrument
GET/api/v1/ProposedNegativeStatutoryInstrument/{id}Returns proposed negative statutory instrument by ID. ProposedNegativeStatutoryInstrument
GET/api/v1/ProposedNegativeStatutoryInstrument/{id}/BusinessItemsReturns business items belonging to a proposed negative statutory instrument. ProposedNegativeStatutoryInstrum
GET/api/v1/StatutoryInstrumentReturns a list of statutory instruments. StatutoryInstrument
GET/api/v1/StatutoryInstrument/{id}Returns a statutory instrument by ID. StatutoryInstrument
GET/api/v1/StatutoryInstrument/{id}/BusinessItemsReturns business items belonging to statutory instrument with ID. StatutoryInstrument

specification origin: https://statutoryinstruments-api.parliament.uk/swagger/v1/swagger.json

Written Questions Service API vv1

Data around written questions and answers, as well as written ministerial statements.

methodpathwhat the vendor says it does
GET/api/dailyreports/dailyreportsReturns a list of daily reports DailyReports
GET/api/writtenquestions/questionsReturns a list of written questions WrittenQuestions
GET/api/writtenquestions/questions/{date}/{uin}Returns a written question WrittenQuestions
GET/api/writtenquestions/questions/{id}Returns a written question WrittenQuestions
GET/api/writtenstatements/statementsReturns a list of written statements WrittenStatements
GET/api/writtenstatements/statements/{date}/{uin}Returns a written statemnet WrittenStatements
GET/api/writtenstatements/statements/{id}Returns a written statement WrittenStatements

specification origin: https://writtenquestions-api.parliament.uk/swagger/v1/swagger.json

Treaties API vv1

An API exposing details of the treaties laid before Parliament.

methodpathwhat the vendor says it does
GET/api/BusinessItem/{id}Returns business item by ID. BusinessItem
GET/api/GovernmentOrganisationReturns all government organisations. GovernmentOrganisation
GET/api/SeriesMembershipReturns all series memberships. SeriesMembership
GET/api/TreatyReturns a list of treaties. Treaty
GET/api/Treaty/{id}Returns a treaty by ID. Treaty
GET/api/Treaty/{id}/BusinessItemsReturns business items belonging to the treaty with ID. Treaty

specification origin: https://treaties-api.parliament.uk/swagger/v1/swagger.json

Commons Votes API vv1

An API that allows querying of Commons Votes data.

methodpathwhat the vendor says it does
GET/data/division/{divisionId}.{format}Return a Division Single Division which has the specified Id Divisions
GET/data/divisions.{format}/groupedbypartyReturn Divisions results grouped by party Division results which meet the specified criteria grouped by partie
GET/data/divisions.{format}/membervotingReturn voting records for a Member List of voting records for a member which meet the specified criteria. Divi
GET/data/divisions.{format}/searchReturn a list of Divisions List of Divisions which meet the specified criteria Divisions
GET/data/divisions.{format}/searchTotalResultsReturn total results count Total count of Divisions meeting the specified criteria Divisions

specification origin: https://commonsvotes-api.parliament.uk/swagger/docs/v1

Lords Votes API vv1

An API that allows querying of Lords Votes data.

methodpathwhat the vendor says it does
GET/data/Divisions/groupedbypartyReturn Divisions results grouped by party Get a list of Divisions which contain grouped by party Divisions
GET/data/Divisions/membervotingReturn voting records for a Member Get a list of voting records for a Member. Divisions
GET/data/Divisions/searchReturn a list of Divisions Get a list of Divisions which meet the specified criteria. Divisions
GET/data/Divisions/searchTotalResultsReturn total results count Get total count of Divisions meeting the specified query, useful for paging lists e
GET/data/Divisions/{divisionId}Return a Division Get a single Division which has the Id specified. Divisions

specification origin: https://lordsvotes-api.parliament.uk/swagger/v1/swagger.json

House of Commons Oral and Written Questions API vv1

An API that allows querying all tabled oral and written questions, and motions for the House of Commons.

methodpathwhat the vendor says it does
GET/EarlyDayMotion/{id}Returns a single Early Day Motion by ID Get a single Early Day Motion which has the ID specified. Early Day Mo
GET/EarlyDayMotions/listReturns a list of Early Day Motions Get a list of Early Day Motions which meet the specified criteria. Only su
GET/oralquestions/listReturns a list of oral questions A list of oral questions meeting the specified criteria. Oral Questions
GET/oralquestiontimes/listReturns a list of oral question times A list of oral question times meeting the specified criteria. Oral Quest

specification origin: https://oralquestionsandmotions-api.parliament.uk/swagger/docs/v1

UK Parliament Search Service vLive

Performs search on parliament.uk domain. Implements [OpenSearch specification](https://github.com/dewitt/opensearch). Throttled at 10 requests per second per IP address.

methodpathwhat the vendor says it does
GET/descriptionOpenSearch description document Description
GET/querySearch results Query
GET/query.{extension}Search results Query

specification origin: https://api.parliament.uk/search/openapi.json

Annunciator content API vv1

Get data from the annunciator system.

methodpathwhat the vendor says it does
GET/api/Message/message/{annunciator}/currentReturn the current message by annunciator type Message
GET/api/Message/message/{annunciator}/{date}Return the most recent message by annunciator after date time specified Message

specification origin: https://now-api.parliament.uk/swagger/v1/swagger.json

nothing on this page is a rating, an endorsement or a claim about quality. Reachability is what our probes observed from one network; answering is a floor under usefulness, not a measure of it.