v1

latestOpenAPI 3.0.42026-07-134379123.4 KB
Members

Returns a list of current members of the Commons or Lords

get/api/Members/Search

Query parameters

Namestring

Members where name contains term specified

Locationstring

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. To explicitly search by area (ignoring name of constituency); please prefix query with region:.

PostTitlestring

Members which have held the post specified

PartyIdinteger

Members which are currently affiliated with party with party ID

House1 | 2

Members where their most recent house is the house specified

ConstituencyIdinteger

Members which currently hold the constituency with constituency id

NameStartsWithstring

Members with surname begining with letter(s) specified

Genderstring

Members with the gender specified

MembershipStartedSincestring date-time

Members who started on or after the date given

MembershipEnded.MembershipEndedSincestring date-time

Members who left the House on or after the date given

MembershipEnded.MembershipEndReasonIdsinteger[]
MembershipInDateRange.WasMemberOnOrAfterstring date-time

Members who were active on or after the date specified

MembershipInDateRange.WasMemberOnOrBeforestring date-time

Members who were active on or before the date specified

MembershipInDateRange.WasMemberOfHouse1 | 2

Members who were active in the house specifid

IsEligibleboolean

Members currently Eligible to sit in their House

IsCurrentMemberboolean

Members who are current or former members

PolicyInterestIdinteger

Members with specified policy interest

Experiencestring

Members with specified experience

skipinteger

The number of records to skip from the first, default is 0

takeinteger

The number of records to return, default is 20. Maximum is 20

Response

OK

totalResultsinteger
resultContextstring nullable
skipinteger
takeinteger
resultType0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192