Government and law

UK Parliament Members API

by members-api.parliament.uk

Government and law Added on November 7th, 2026 Checked and working on November 7th, 2026
Visit members-api.parliament.uk →

What it does

The UK Parliament Members API gives data about Members of the House of Commons and the House of Lords: names, parties, constituencies, contact details, roles, interests and voting records, for example to look up the MP for a constituency. Responses are JSON, with an OpenAPI description. Free, no key needed.
  • API
  • HTTP-GET
  • JSON
  • REST

At a glance

API key
Not needed · More APIs with no key
Pricing
Free, no key needed.
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, HTTP-GET
Provider
members-api.parliament.uk
Last checked
Working on November 7th, 2026

More information: https://members-api.parliament.uk/index.html

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

members-api.parliament.uk
UK Parliament Members API

Example request

curl

curl 'https://members-api.parliament.uk/api/Members/Search?Name=Starmer&take=1'

JavaScript

const response = await fetch("https://members-api.parliament.uk/api/Members/Search?Name=Starmer&take=1");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://members-api.parliament.uk/api/Members/Search?Name=Starmer&take=1",
    timeout=30,
)
print(response.json())

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried UK Parliament Members API.