Skip to content

UK Parliament API

10 endpointsGovernment & Open DataGBsocial:read7 real examples

Returns UK Parliament members, parties, constituencies and bills, including member details and synopses.

View as Markdown
GET/ukparliament/membersMembers of the House of Commons and the House of Lords whose name contains the text, with their party and constituency.
GET/ukparliament/memberOne Member of Parliament or Lord by id: name, gender, party, house, constituency and whether the seat is current.
GET/ukparliament/memberSynopsisThe short synopsis of one Member: their seat and years of service, as plain text.
GET/ukparliament/partiesThe political parties that have members in one house, with their abbreviation and colours.
GET/ukparliament/constituenciesParliamentary constituencies whose name contains the text, with the member who represents each now.
GET/ukparliament/billsBills before Parliament, or that were, whose short title contains the text, most recently updated first.
GET/ukparliament/billOne bill by its id: its titles, the house it is in, its current stage, its sponsors and whether it became an Act.
GET/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.
GET/ukparliament/divisionOne House of Commons vote by its division id: its title, counts and how each Member voted, Aye or No.
GET/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.

members

GET/v1/ukparliament/members

Members of the House of Commons and the House of Lords whose name contains the text, with their party and constituency.

scope social:read1 unitcached 1 hpaginated

Parameters

name
string
required
Text in the member's name, such as abbott.
e.g. abbott
current
boolean
true keeps only current members.
take
integer
Members per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
constituencystring
currentboolean
housestring
idstring
nameDisplaystring
nameListstring
partystring
curl "https://api.hoshime.com/v1/ukparliament/members?name=abbott" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/ukparliament/member

One Member of Parliament or Lord by id: name, gender, party, house, constituency and whether the seat is current.

scope social:read1 unitcached 1 h

Parameters

id
integer
required
Member id, such as 172 for Diane Abbott.
e.g. 172
tunnel
string
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.
proxy
string
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.
profileId
string
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
constituencystring
currentboolean
fullTitlestring
genderstring
housestring
idstring
nameDisplaystring
nameListstring
partystring
sincestring
statusstring
thumbnailstring
curl "https://api.hoshime.com/v1/ukparliament/member?id=172" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/ukparliament/memberSynopsis

The short synopsis of one Member: their seat and years of service, as plain text.

scope social:read1 unitcached 24 h

Parameters

id
integer
required
Member id, such as 172.
e.g. 172
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
textstring
curl "https://api.hoshime.com/v1/ukparliament/memberSynopsis?id=172" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/ukparliament/parties

The political parties that have members in one house, with their abbreviation and colours.

scope social:read1 unitcached 24 hpaginated

Parameters

house
string
Commons or Lords.
CommonsLords
default Commonse.g. Commons
tunnel
string
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.
proxy
string
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.
profileId
string
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
abbreviationstring
backgroundColourstring
foregroundColourstring
idstring
independentboolean
namestring
curl "https://api.hoshime.com/v1/ukparliament/parties?house=Commons" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/ukparliament/constituencies

Parliamentary constituencies whose name contains the text, with the member who represents each now.

scope social:read1 unitcached 24 hpaginated

Parameters

query
string
required
Text in the constituency name, such as cities.
e.g. cities
take
integer
Constituencies to return, from 1 to 100.
default 10
tunnel
string
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.
proxy
string
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.
profileId
string
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
endDatestring
idstring
memberstring
memberIdstring
namestring
startDatestring
curl "https://api.hoshime.com/v1/ukparliament/constituencies?query=cities" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/ukparliament/bills

Bills before Parliament, or that were, whose short title contains the text, most recently updated first.

scope social:read1 unitcached 30 minpaginated

Parameters

query
string
required
Text in the bill's title, such as health.
e.g. health
take
integer
Bills per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
currentHousestring
defeatedboolean
idstring
isActboolean
lastUpdatestring
originatingHousestring
shortTitlestring
stagestring
withdrawnboolean
curl "https://api.hoshime.com/v1/ukparliament/bills?query=health" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

id
integer
required
Bill id, such as 1292.
e.g. 1292
tunnel
string
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.
proxy
string
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.
profileId
string
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
currentHousestring
defeatedboolean
idstring
isActboolean
lastUpdatestring
longTitlestring
originatingHousestring
shortTitlestring
sponsorsstring[]
stagestring
withdrawnboolean
curl "https://api.hoshime.com/v1/ukparliament/bill?id=1292" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 10 minpaginated

Parameters

query
string
Text in the vote's title, such as railways. Omit it for the newest votes.
e.g. Railways
take
integer
Votes per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
ayeCountinteger (int64)
datestring
idstring
isDeferredboolean
noCountinteger (int64)
numberinteger (int64)
titlestring
urlstring
curl "https://api.hoshime.com/v1/ukparliament/divisions?query=Railways" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/ukparliament/division

One House of Commons vote by its division id: its title, counts and how each Member voted, Aye or No.

scope social:read1 unitcached 1 h

Parameters

id
integer
required
Division id, as the divisions endpoint gives it, such as 2476.
e.g. 2476
tunnel
string
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.
proxy
string
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.
profileId
string
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
ayeCountinteger (int64)
ayesMemberVote[]
constituencystring
memberIdstring
namestring
partystring
datestring
idstring
isDeferredboolean
noCountinteger (int64)
noesMemberVote[]
constituencystring
memberIdstring
namestring
partystring
numberinteger (int64)
titlestring
urlstring
curl "https://api.hoshime.com/v1/ukparliament/division?id=2476" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/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.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
Text in the committee's name, such as health. Omit it for all committees.
e.g. health
take
integer
Committees per page, from 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
categorystring
housestring
idstring
namestring
urlstring
curl "https://api.hoshime.com/v1/ukparliament/committees?query=health" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open