c0mm0.com — the continuously verified register of European data

Register record·API·GB·GOVERNMENTVERIFIED · checked 32m ago
M

Members API

APIProfiled3/7PreviewSubscribe🇬🇧United Kingdom

An API provided by the UK Parliament that retrieves data on Members, including Members of the House of Commons and House of Lords. It offers structured access to information such as membership details, biographical data, and related parliamentary records. The API is freely accessible without authentication and is aimed at supporting applications and services that need up-to-date data on current and former Members of Parliament, covering national-level parliamentary information for the United Kingdom.An API which retrieves Members data.

74
good

Weighted across five axes. Tap a ring for what it measures.

Data schema (123 fields)

Filterable via the API (40)
locationTypelocationNamesearchTextskiptakeidelectionIdsearchTermpageincludeDeletedNameLocationPostTitlePartyIdHouseConstituencyIdNameStartsWithGenderMembershipStartedSinceMembershipEnded.MembershipEndedSinceMembershipEnded.MembershipEndReasonIdsMembershipInDateRange.WasMemberOnOrAfterMembershipInDateRange.WasMemberOnOrBeforeMembershipInDateRange.WasMemberOfHouseIsEligibleIsCurrentMemberPolicyInterestIdExperiencenamedateToSearchFordetailsForDateidscropTypewebVersionhouseforDatedepartmentIdpartyIdtypenameContains
FieldTypeDescription
locationTypeFilterable via the APILocation typestringType of location used to filter results.Location by type of location
locationNameFilterable via the APILocation namestringName of the location to filter results by.Location by name specified
searchTextFilterable via the APISearch textstringSearch term to match against constituency names.Constituencies containing serach term in their name
skipFilterable via the APIinteger (int32)Number of records to skip before returning results, default 0.The number of records to skip from the first, default is 0
takeFilterable via the APIinteger (int32)Number of records to return, default and maximum 20.The number of records to return, default is 20. Maximum is 20
idFilterable via the APIinteger (int32)Filters results by constituency ID.Constituency by ID
electionIdFilterable via the APIElection idinteger (int32)Filters election results by election ID.Election result by election id
searchTermFilterable via the APISearch termstringSearch term to match against registered interests.Registered interests containing search term
pageFilterable via the APIinteger (int32)Page number of results to return, 20 results per page.Page of results to return, default 0. Results per page 20.
includeDeletedFilterable via the APIInclude deletedbooleanWhether to include registered interests that have been deleted.Registered interests that have been deleted
NameFilterable via the APIstringFilters members whose name contains the given term.Members where name contains term specified
LocationFilterable via the APIstringFilters members by postcode or geographical location match.Members where postcode or geographical location matches the term specified Searches for current constituencies with full postcode, or outward code; and name of constituency If there are no results based on above, searches for all current and past constituencies in specified area of UK.
PostTitleFilterable via the APIPost titlestringFilters members who have held the specified post.Members which have held the post specified
PartyIdFilterable via the APIParty idinteger (int32)Filters members currently affiliated with the given party ID.Members which are currently affiliated with party with party ID
HouseFilterable via the APIstringFilters members by their most recent House.Members where their most recent house is the house specified
ConstituencyIdFilterable via the APIConstituency idinteger (int32)Filters members who currently hold the given constituency.Members which currently hold the constituency with constituency id
NameStartsWithFilterable via the APIName starts withstringFilters members whose surname starts with the given letters.Members with surname begining with letter(s) specified
GenderFilterable via the APIstringFilters members by gender.Members with the gender specified
MembershipStartedSinceFilterable via the APIMembership started sincestring (date-time)Filters members who started membership on or after this date.Members who started on or after the date given
MembershipEnded.MembershipEndedSinceFilterable via the APIMembership ended.membership ended sincestring (date-time)Filters members who left the House on or after this date.Members who left the House on or after the date given
MembershipEnded.MembershipEndReasonIdsFilterable via the APIMembership ended.membership end reason idsarrayList of reason IDs for a member's membership ending.List of reason IDs for a member's membership ending.
MembershipInDateRange.WasMemberOnOrAfterFilterable via the APIMembership in date range.was member on or afterstring (date-time)Filters members who were active on or after this date.Members who were active on or after the date specified
MembershipInDateRange.WasMemberOnOrBeforeFilterable via the APIMembership in date range.was member on or beforestring (date-time)Filters members who were active on or before this date.Members who were active on or before the date specified
MembershipInDateRange.WasMemberOfHouseFilterable via the APIMembership in date range.was member of housestringFilters members who were active in the specified House.Members who were active in the house specifid
IsEligibleFilterable via the APIIs eligiblebooleanWhether the member is currently eligible to sit in their House.Members currently Eligible to sit in their House
IsCurrentMemberFilterable via the APIIs current memberbooleanWhether to filter for current or former members.Members who are current or former members
PolicyInterestIdFilterable via the APIPolicy interest idinteger (int32)Filters members by a specified policy interest ID.Members with specified policy interest
ExperienceFilterable via the APIstringFilters members by a specified experience.Members with specified experience
nameFilterable via the APIstringFilters members whose name contains the given term.Members with names containing the term specified
dateToSearchForFilterable via the APIDate to search forstring (date-time)Filters members who were active in the Commons or Lords on this date.Members that were an active member of the Commons or Lords on the date specified
detailsForDateFilterable via the APIDetails for datestring (date-time)Date for which member details should be populated.Member object will be populated with details from the date specified
idsFilterable via the APIarrayList of member IDs to retrieve.List of MemberIds to find
cropTypeFilterable via the APICrop typestringType of image crop to apply to the member's photo.Type of image crop to apply to the member's photo.
webVersionFilterable via the APIWeb versionbooleanWhether to return the web-optimised version of the image.Whether to return the web-optimised version of the image.
houseFilterable via the APIstringFilters registered interests of a member by House.Registered interests of Member by House specified
forDateFilterable via the APIFor datestring (date-time)Date for which the state of parties is requested.State of parties for the date specified
departmentIdFilterable via the APIDepartment idinteger (int32)Filters government posts by department ID.Government posts by department ID
partyIdFilterable via the APIParty idinteger (int32)Filters spokespersons by party ID.Spokespersons by party ID
typeFilterable via the APIstringFilters departments by type.Departments by type
nameContainsFilterable via the APIName containsstringFilters results whose name contains the given term.Filters results whose name contains the given term.
shortNameAnsweringBodystringShort name of the answering government body.Short name of the answering government body.
targetAnsweringBodystringTarget reference for the answering body.Target reference for the answering body.
departmentAnsweringBodyunknownDepartment associated with the answering body.Department associated with the answering body.
typeIdBiographyExperienceinteger (int32)Identifier for the type of biography experience entry.Identifier for the type of biography experience entry.
titleBiographyExperiencestringJob title held in this biography experience entry.Job title held in this biography experience entry.
organisationBiographyExperiencestringOrganisation associated with this biography experience entry.Organisation associated with this biography experience entry.
startMonthBiographyExperienceinteger (int32)Month the experience entry started.Month the experience entry started.
startYearBiographyExperienceinteger (int32)Year the experience entry started.Year the experience entry started.
endMonthBiographyExperienceinteger (int32)Month the experience entry ended.Month the experience entry ended.
endYearBiographyExperienceinteger (int32)Year the experience entry ended.Year the experience entry ended.
valueBiographyExperienceListItemarray<object>List of biography experience entries.List of biography experience entries.
linksBiographyExperienceListItemarray<object>Related links for the biography experience list.Related links for the biography experience list.
startDateBiographyItemstring (date-time)Date the biography item started.Date the biography item started.
endDateBiographyItemstring (date-time)Date the biography item ended.Date the biography item ended.
additionalInfoBiographyItemstringAdditional text information about the biography item.Additional text information about the biography item.
additionalInfoLinkBiographyItemstringLink to further information about the biography item.Link to further information about the biography item.
currentRepresentationConstituencyunknownCurrent member representing this constituency.Current member representing this constituency.
itemsConstituencyMembersServiceSearchResultarray<object>List of constituency members search result items.List of constituency members search result items.
totalResultsConstituencyMembersServiceSearchResultinteger (int32)Total number of results found for the search.Total number of results found for the search.
resultContextConstituencyMembersServiceSearchResultstringContextual information about the search result.Contextual information about the search result.
resultTypeConstituencyMembersServiceSearchResultunknownType classification of the search result.Type classification of the search result.
memberConstituencyRepresentationunknownMember details for this constituency representation.Member details for this constituency representation.
representationConstituencyRepresentationunknownRepresentation details for the constituency member.Representation details for the constituency member.
typeDescriptionContactInformationstringDescription of the contact information type.Description of the contact information type.
isPreferredContactInformationbooleanWhether this is the preferred contact method.Whether this is the preferred contact method.
isWebAddressContactInformationbooleanWhether the contact entry is a web address.Whether the contact entry is a web address.
notesContactInformationstringAdditional notes about the contact information.Additional notes about the contact information.
line1ContactInformationstringFirst line of the contact address.First line of the contact address.
line2ContactInformationstringSecond line of the contact address.Second line of the contact address.
line3ContactInformationstringThird line of the contact address.Third line of the contact address.
line4ContactInformationstringFourth line of the contact address.Fourth line of the contact address.
line5ContactInformationstringFifth line of the contact address.Fifth line of the contact address.
postcodeContactInformationstringPostcode of the contact address.Postcode of the contact address.
phoneContactInformationstringTelephone number for the contact.Telephone number for the contact.
faxContactInformationstringFax number for the contact.Fax number for the contact.
emailContactInformationstringEmail address for the contact.Email address for the contact.
websiteContactInformationstringWebsite address for the contact.Website address for the contact.
totalContributionsDebateContributioninteger (int32)Total number of contributions in the debate.Total number of contributions in the debate.
debateTitleDebateContributionstringTitle of the debate.Title of the debate.
debateIdDebateContributioninteger (int32)Identifier for the debate.Identifier for the debate.
debateWebsiteIdDebateContributionstringWebsite identifier for the debate.Website identifier for the debate.
sittingDateDebateContributionstring (date-time)Date the debate sitting took place.Date the debate sitting took place.
sectionDebateContributionstringSection of parliamentary business the debate falls under.Section of parliamentary business the debate falls under.
firstTimecodeDebateContributionstring (date-time)Timestamp of the first contribution in the debate.Timestamp of the first contribution in the debate.
speechCountDebateContributioninteger (int32)Number of speeches made in the debate.Number of speeches made in the debate.
questionCountDebateContributioninteger (int32)Number of questions asked in the debate.Number of questions asked in the debate.
supplementaryQuestionCountDebateContributioninteger (int32)Number of supplementary questions asked in the debate.Number of supplementary questions asked in the debate.
interventionCountDebateContributioninteger (int32)Number of interventions made in the debate.Number of interventions made in the debate.
answerCountDebateContributioninteger (int32)Number of answers given in the debate.Number of answers given in the debate.
pointsOfOrderCountDebateContributioninteger (int32)Number of points of order raised in the debate.Number of points of order raised in the debate.
statementsCountDebateContributioninteger (int32)Number of statements made in the debate.Number of statements made in the debate.
numberEarlyDayMotionstringReference number of the early day motion.Reference number of the early day motion.
isPrayerEarlyDayMotionbooleanWhether the early day motion is a prayer motion.Whether the early day motion is a prayer motion.
isAmendmentEarlyDayMotionbooleanWhether the early day motion is an amendment.Whether the early day motion is an amendment.
dateTabledEarlyDayMotionstring (date-time)Date the early day motion was tabled.Date the early day motion was tabled.
sponsorsCountEarlyDayMotioninteger (int32)Number of sponsors supporting the early day motion.Number of sponsors supporting the early day motion.
memberIdElectionCandidateinteger (int32)Identifier of the member standing as a candidate.Identifier of the member standing as a candidate.
partyElectionCandidateunknownPolitical party of the election candidate.Political party of the election candidate.
resultChangeElectionCandidatestringChange in result compared to a previous election.Change in result compared to a previous election.
rankOrderElectionCandidateinteger (int32)Rank order of the candidate by votes received.Rank order of the candidate by votes received.
votesElectionCandidateinteger (int32)Number of votes received by the candidate.Number of votes received by the candidate.
voteShareElectionCandidatenumber (double)Percentage share of the vote received by the candidate.Percentage share of the vote received by the candidate.
resultElectionResultstringOutcome of the election result.Outcome of the election result.
isNotionalElectionResultbooleanWhether the election result is a notional calculation.Whether the election result is a notional calculation.
electorateElectionResultinteger (int32)Total number of registered electors in the constituency.Total number of registered electors in the constituency.
turnoutElectionResultinteger (int32)Number of votes cast in the election.Number of votes cast in the election.
majorityElectionResultinteger (int32)Vote margin between the winning and second-placed candidate.Vote margin between the winning and second-placed candidate.
winningPartyElectionResultunknownPolitical party that won the election.Political party that won the election.
electionTitleElectionResultstringTitle of the election.Title of the election.
electionDateElectionResultstring (date-time)Date the election was held.Date the election was held.
isGeneralElectionElectionResultbooleanWhether the election was a general election.Whether the election was a general election.
constituencyNameElectionResultstringName of the constituency for this election result.Name of the constituency for this election result.
candidatesElectionResultarray<object>List of candidates who stood in the election.List of candidates who stood in the election.
descriptionGenericReferenceDatastringDescriptive text for this reference data item.Descriptive text for this reference data item.
urlGovernmentDepartmentstringWeb address for the government department.Web address for the government department.
imageUrlGovernmentDepartmentstringURL of the image representing the government department.URL of the image representing the government department.
hansardNameGovernmentOppositionPoststringHansard name for the government or opposition post.Hansard name for the government or opposition post.
postHoldersGovernmentOppositionPostarray<object>List of people who have held this post.List of people who have held this post.
governmentDepartmentsGovernmentOppositionPostarray<object>List of government departments associated with this post.List of government departments associated with this post.
createdWhenGovernmentOppositionPoststring (date-time)Date the post record was created.Date the post record was created.
orderGovernmentOppositionPostinteger (int32)Display order of the post relative to others.Display order of the post relative to others.
layingMinisterNameGovernmentOppositionPostHolderstringName of the laying minister for this post.Name of the laying minister for this post.
isPaidGovernmentOppositionPostHolderbooleanWhether the post holder receives a salary for the role.Whether the post holder receives a salary for the role.

Schema captured from openapi 22 days ago.

Verification Status

Using the API

Configuration

Base URL
https://members-api.parliament.uk
Version
v1
Format
openapi
Endpoints
43

Try the API

GET/api/Location/Browse/{locationType}/{locationName}

Returns a list of locations, both parent and child

GET/api/Location/Constituency/Search

Returns a list of constituencies

GET/api/Location/Constituency/{id}

Returns a constituency by ID

GET/api/Location/Constituency/{id}/Synopsis

Returns a synopsis by constituency ID

GET/api/Location/Constituency/{id}/Representations

Returns a list of representations by constituency ID

Requests are proxied through our servers. Only GET endpoints are testable.

Endpoints (43)

/api43 endpoints
GET
/api/Location/Browse/{locationType}/{locationName}

Returns a list of locations, both parent and child

GET
/api/Location/Constituency/Search

Returns a list of constituencies

GET
/api/Location/Constituency/{id}

Returns a constituency by ID

GET
/api/Location/Constituency/{id}/Synopsis

Returns a synopsis by constituency ID

GET
/api/Location/Constituency/{id}/Representations

Returns a list of representations by constituency ID

GET
/api/Location/Constituency/{id}/Geometry

Returns geometry by constituency ID

GET
/api/Location/Constituency/{id}/ElectionResults

Returns a list of election results by constituency ID

GET
/api/Location/Constituency/{id}/ElectionResult/{electionId}

Returns an election result by constituency and election id

GET
/api/Location/Constituency/{id}/ElectionResult/Latest

Returns latest election result by constituency id

GET
/api/LordsInterests/Register

Returns a list of registered interests

GET
/api/LordsInterests/Staff

Returns a list of staff

GET
/api/Members/Search

Returns a list of current members of the Commons or Lords

GET
/api/Members/SearchHistorical

Returns a list of members of the Commons or Lords

GET
/api/Members/{id}

Return member by ID

GET
/api/Members/{id}/Biography

Return biography of member by ID

GET
/api/Members/{id}/Contact

Return list of contact details of member by ID

GET
/api/Members/{id}/ContributionSummary

Return contribution summary of member by ID

GET
/api/Members/{id}/Edms

Return list of early day motions of member by ID

GET
/api/Members/{id}/Experience

Return experience of member by ID

GET
/api/Members/{id}/Focus

Return list of areas of focus of member by ID

GET
/api/Members/History

Return members by ID with list of their historical names, parties and memberships

GET
/api/Members/{id}/LatestElectionResult

Return latest election result of member by ID

GET
/api/Members/{id}/Portrait

Return portrait of member by ID

GET
/api/Members/{id}/PortraitUrl

Return portrait url of member by ID

GET
/api/Members/{id}/RegisteredInterests

Return list of registered interests of member by ID

GET
/api/Members/{id}/Staff

Return list of staff of member by ID

GET
/api/Members/{id}/Synopsis

Return synopsis of member by ID

GET
/api/Members/{id}/Thumbnail

Return thumbnail of member by ID

GET
/api/Members/{id}/ThumbnailUrl

Return thumbnail url of member by ID

GET
/api/Members/{id}/Voting

Return list of votes by member by ID

GET
/api/Members/{id}/WrittenQuestions

Return list of written questions by member by ID

GET
/api/Parties/StateOfTheParties/{house}/{forDate}

Returns current state of parties

GET
/api/Parties/LordsByType/{forDate}

Returns the composition of the House of Lords by peerage type.

GET
/api/Parties/GetActive/{house}

Returns a list of current parties with at least one active member.

GET
/api/Posts/GovernmentPosts

Returns a list of government posts.

GET
/api/Posts/OppositionPosts

Returns a list of opposition posts.

GET
/api/Posts/Spokespersons

Returns a list of spokespersons.

GET
/api/Posts/Departments/{type}

Returns a list of departments.

GET
/api/Posts/SpeakerAndDeputies/{forDate}

Returns a list containing the speaker and deputy speakers.

GET
/api/Reference/PolicyInterests

Returns a list of policy interest.

GET
/api/Reference/Departments

Returns a list of departments.

GET
/api/Reference/AnsweringBodies

Returns a list of answering bodies.

GET
/api/Reference/Departments/{id}/Logo

Returns department logo.

Query examples

curl -s 'https://members-api.parliament.uk/swagger/v1/swagger.json' -H 'Accept: application/json'

Machine-readable API description (use it to generate clients).

Machine-readable & source

Members API — live verification badge

Embed this badge in a README or wiki — it always shows the latest verification state and quality tier.