Skip to content

Members API API

by parliament.uk

No authHTTPSOpen Data
Open documentation ↗

Overview

An API which retrieves Members data.

Members API is an open data API from parliament.uk. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 43 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Version
v1
Endpoints
43
Spec updated
2023-03-03

Endpoints

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

Questions

Does the Members API API need an API key?

No. The Members API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Members API API support HTTPS?

Yes, the Members API API is served over HTTPS.

How many endpoints does the Members API API have?

Its OpenAPI description lists 43 endpoints in version v1. All of them are shown on this page.

What are alternatives to the Members API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).