Data.parliament.uk API
Overview
Data.parliament.uk provides live datasets from the UK Parliament, including information on MPs, bills, petitions, votes, and attendance records. No API key is required, so you can start querying parliamentary data immediately. It is ideal for civic tech projects, political research, or anyone interested in UK legislative transparency.
Beginner Tip
Use the Members API endpoint with a member's ID to get their biography, party affiliation, and constituency—you can find member IDs by browsing the search interface at explore.data.parliament.uk.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Data.parliament.uk",
"description": "Contains live datasets including information about petitions, bills, MP votes, attendance and more",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
MemberId Unique numeric identifier for the parliament member. DisplayAs Full name of the member as displayed in parliament records. Party Political party the member is affiliated with. Constituency Name of the constituency the member represents. House Which house the member belongs to—Commons or Lords. Implementation Example
const url = "https://explore.data.parliament.uk/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil
⭐ Beginner's PickBrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).