UK Parliament API
Returns UK Parliament members, parties, constituencies and bills, including member details and synopses.
View as Markdown| GET | /ukparliament/members | Members of the House of Commons and the House of Lords whose name contains the text, with their party and constituency. |
| GET | /ukparliament/member | One Member of Parliament or Lord by id: name, gender, party, house, constituency and whether the seat is current. |
| GET | /ukparliament/memberSynopsis | The short synopsis of one Member: their seat and years of service, as plain text. |
| GET | /ukparliament/parties | The political parties that have members in one house, with their abbreviation and colours. |
| GET | /ukparliament/constituencies | Parliamentary constituencies whose name contains the text, with the member who represents each now. |
| GET | /ukparliament/bills | Bills before Parliament, or that were, whose short title contains the text, most recently updated first. |
| GET | /ukparliament/bill | One bill by its id: its titles, the house it is in, its current stage, its sponsors and whether it became an Act. |
| GET | /ukparliament/divisions | House of Commons votes (divisions) whose title contains the text, newest first, with the Aye and No counts. Without a query, the newest votes. Page with cursor. |
| GET | /ukparliament/division | One House of Commons vote by its division id: its title, counts and how each Member voted, Aye or No. |
| GET | /ukparliament/committees | Committees of Parliament, select and joint, whose name contains the text, with their house and the page on committees.parliament.uk. Page with cursor. |
members
/v1/ukparliament/membersMembers of the House of Commons and the House of Lords whose name contains the text, with their party and constituency.
Parameters
namestring required | Text in the member's name, such as abbott. e.g. abbott |
currentboolean | true keeps only current members. |
takeinteger | Members per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
constituency | string |
current | boolean |
house | string |
id | string |
nameDisplay | string |
nameList | string |
party | string |
curl "https://api.hoshime.com/v1/ukparliament/members?name=abbott" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/members?name=abbott", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/members?name=abbott", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "constituency": "Hackney North and Stoke Newington", "current": true, "house": "Commons", "id": "172", "nameDisplay": "Ms Diane Abbott", "nameList": "Abbott, Ms Diane", "party": "Labour" }, { "constituency": "Ipswich", "current": true, "house": "Commons", "id": "5131", "nameDisplay": "Jack Abbott", "nameList": "Abbott, Jack", "party": "Labour (Co-op)" } ], "meta": { "cached": false, "endpoint": "members", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
member
/v1/ukparliament/memberOne Member of Parliament or Lord by id: name, gender, party, house, constituency and whether the seat is current.
Parameters
idinteger required | Member id, such as 172 for Diane Abbott. e.g. 172 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
constituency | string |
current | boolean |
fullTitle | string |
gender | string |
house | string |
id | string |
nameDisplay | string |
nameList | string |
party | string |
since | string |
status | string |
thumbnail | string |
curl "https://api.hoshime.com/v1/ukparliament/member?id=172" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/member?id=172", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/member?id=172", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "constituency": "Hackney North and Stoke Newington", "current": true, "fullTitle": "Rt Hon Diane Abbott MP", "gender": "F", "house": "Commons", "id": "172", "nameDisplay": "Ms Diane Abbott", "nameList": "Abbott, Ms Diane", "party": "Labour", "since": "1987-06-11T00:00:00", "status": "Current Member", "thumbnail": "https://members-api.parliament.uk/api/Members/172/Thumbnail" }, "meta": { "cached": false, "endpoint": "member", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
memberSynopsis
/v1/ukparliament/memberSynopsisThe short synopsis of one Member: their seat and years of service, as plain text.
Parameters
idinteger required | Member id, such as 172. e.g. 172 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
id | string |
text | string |
curl "https://api.hoshime.com/v1/ukparliament/memberSynopsis?id=172" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/memberSynopsis?id=172", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/memberSynopsis?id=172", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "id": "172", "text": "The Rt Hon Ms Diane Abbott is the Labour MP for Hackney North and Stoke Newington , and has been an MP continually since 11 June 1987." }, "meta": { "cached": false, "endpoint": "memberSynopsis", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
parties
/v1/ukparliament/partiesThe political parties that have members in one house, with their abbreviation and colours.
Parameters
housestring | Commons or Lords.CommonsLordsdefault Commonse.g. Commons |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
abbreviation | string |
backgroundColour | string |
foregroundColour | string |
id | string |
independent | boolean |
name | string |
curl "https://api.hoshime.com/v1/ukparliament/parties?house=Commons" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/parties?house=Commons", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/parties?house=Commons", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "abbreviation": "APNI", "backgroundColour": "cdaf2d", "foregroundColour": "FFFFFF", "id": "1", "independent": false, "name": "Alliance" }, { "abbreviation": "Con", "backgroundColour": "0063ba", "foregroundColour": "ffffff", "id": "4", "independent": false, "name": "Conservative" } ], "meta": { "cached": false, "endpoint": "parties", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
constituencies
/v1/ukparliament/constituenciesParliamentary constituencies whose name contains the text, with the member who represents each now.
Parameters
querystring required | Text in the constituency name, such as cities. e.g. cities |
takeinteger | Constituencies to return, from 1 to 100. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
endDate | string |
id | string |
member | string |
memberId | string |
name | string |
startDate | string |
curl "https://api.hoshime.com/v1/ukparliament/constituencies?query=cities" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/constituencies?query=cities", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/constituencies?query=cities", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "endDate": "", "id": "3987", "member": "Rachel Blake", "memberId": "5257", "name": "Cities of London and Westminster", "startDate": "2024-05-31" } ], "meta": { "cached": false, "endpoint": "constituencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
bills
/v1/ukparliament/billsBills before Parliament, or that were, whose short title contains the text, most recently updated first.
Parameters
querystring required | Text in the bill's title, such as health. e.g. health |
takeinteger | Bills per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
currentHouse | string |
defeated | boolean |
id | string |
isAct | boolean |
lastUpdate | string |
originatingHouse | string |
shortTitle | string |
stage | string |
withdrawn | boolean |
curl "https://api.hoshime.com/v1/ukparliament/bills?query=health" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/bills?query=health", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/bills?query=health", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "currentHouse": "Commons", "defeated": false, "id": "1292", "isAct": false, "lastUpdate": "2014-05-15T10:49:29", "originatingHouse": "Commons", "shortTitle": "Access to Mental Health Services Bill", "stage": "2nd reading", "withdrawn": false }, { "currentHouse": "Commons", "defeated": false, "id": "838", "isAct": false, "lastUpdate": "2012-05-01T15:12:56", "originatingHouse": "Commons", "shortTitle": "Charitable Healthcare Providers (Value Added Tax Relief) Bill", "stage": "2nd reading", "withdrawn": false } ], "meta": { "cached": false, "endpoint": "bills", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
bill
/v1/ukparliament/billOne bill by its id: its titles, the house it is in, its current stage, its sponsors and whether it became an Act.
Parameters
idinteger required | Bill id, such as 1292. e.g. 1292 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
currentHouse | string |
defeated | boolean |
id | string |
isAct | boolean |
lastUpdate | string |
longTitle | string |
originatingHouse | string |
shortTitle | string |
sponsors | string[] |
stage | string |
withdrawn | boolean |
curl "https://api.hoshime.com/v1/ukparliament/bill?id=1292" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/bill?id=1292", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/bill?id=1292", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currentHouse": "Commons", "defeated": false, "id": "1292", "isAct": false, "lastUpdate": "2014-05-15T10:49:29", "longTitle": "A Bill to provide for establishing maximum waiting times and establishing standards for access to evidence-based psychological therapies for…", "originatingHouse": "Commons", "shortTitle": "Access to Mental Health Services Bill", "sponsors": [ "Mr Mike Thornton" ], "stage": "2nd reading", "withdrawn": false }, "meta": { "cached": false, "endpoint": "bill", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
divisions
/v1/ukparliament/divisionsHouse of Commons votes (divisions) whose title contains the text, newest first, with the Aye and No counts. Without a query, the newest votes. Page with cursor.
Parameters
querystring | Text in the vote's title, such as railways. Omit it for the newest votes. e.g. Railways |
takeinteger | Votes per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
ayeCount | integer (int64) |
date | string |
id | string |
isDeferred | boolean |
noCount | integer (int64) |
number | integer (int64) |
title | string |
url | string |
curl "https://api.hoshime.com/v1/ukparliament/divisions?query=Railways" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/divisions?query=Railways", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/divisions?query=Railways", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "ayeCount": 1280, "date": "…", "id": "abc123", "isDeferred": false, "noCount": 1280, "number": 0, "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "divisions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
division
/v1/ukparliament/divisionOne House of Commons vote by its division id: its title, counts and how each Member voted, Aye or No.
Parameters
idinteger required | Division id, as the divisions endpoint gives it, such as 2476. e.g. 2476 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
18 fields
ayeCount | integer (int64) |
ayes | MemberVote[] |
constituency | string |
memberId | string |
name | string |
party | string |
date | string |
id | string |
isDeferred | boolean |
noCount | integer (int64) |
noes | MemberVote[] |
constituency | string |
memberId | string |
name | string |
party | string |
number | integer (int64) |
title | string |
url | string |
curl "https://api.hoshime.com/v1/ukparliament/division?id=2476" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/division?id=2476", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/division?id=2476", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "ayeCount": 1280, "ayes": [ { "constituency": "…", "memberId": "abc123", "name": "…", "party": "…" } ], "date": "…", "id": "abc123", "isDeferred": false, "noCount": 1280, "noes": [ { "constituency": "…", "memberId": "abc123", "name": "…", "party": "…" } ], "number": 0, "title": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "division", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }
committees
/v1/ukparliament/committeesCommittees of Parliament, select and joint, whose name contains the text, with their house and the page on committees.parliament.uk. Page with cursor.
Parameters
querystring | Text in the committee's name, such as health. Omit it for all committees. e.g. health |
takeinteger | Committees per page, from 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
category | string |
house | string |
id | string |
name | string |
url | string |
curl "https://api.hoshime.com/v1/ukparliament/committees?query=health" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ukparliament/committees?query=health", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ukparliament/committees?query=health", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "category": "…", "house": "…", "id": "abc123", "name": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "committees", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "ukparliament", "requestId": "req_2Xb9kQ…", "units": 1 } }