Skip to content
API Builders
DP

GovernmentPublic API

Data.parliament.uk

Contains live datasets including information about petitions, bills, MP votes, attendance and more

Visit documentationSnapshot 2026-10-26

Before you call it

What this listing means in practice

01

No key to obtain

You can make a request immediately. Be considerate with volume anyway: open APIs often publish informal rate limits, and some will block clients that hammer them.

02

Listed as HTTP only

Prefer a provider endpoint with TLS before shipping this to production. Calling over plain HTTP exposes request and response data in transit.

03

CORS not confirmed

If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.

Documentationexternal

Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.

https://explore.data.parliament.uk/?learnmore=Members

No API calls are proxied by this directory. Links go directly to the provider.

API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.

Overview

About Data.parliament.uk

Data.parliament.uk needs no API key. That puts it among 92 of the 126 government APIs we list that you can try without signing up.

It is listed as HTTP only. 118 of 126 government APIs support HTTPS, so look at those first if this is going into production.

Documentation is on explore.data.parliament.uk.

Government APIs in general

Government APIs publish official data: legislation, statistics, budgets, company registries and public services. Coverage depends heavily on the country.

What people build with them

  • Civic tech and transparency projects
  • Pulling official statistics into reports
  • Checking public registries

Watch out for

Official APIs are reliable but slow to change. Expect older formats, and watch for planned migrations announced on the portal.

First request

Calling Data.parliament.uk

Run this on a server or in a serverless function, because CORS is not confirmed.

JavaScript// Replace the path with an endpoint from the Data.parliament.uk docs
const res = await fetch("https://explore.data.parliament.uk/?learnmore=Members/<endpoint>");
if (!res.ok) throw new Error(`Data.parliament.uk returned ${res.status}`);
const data = await res.json();

Compare

Data.parliament.uk vs similar APIs

APIAuthHTTPSCORS
Data.parliament.ukNo keyNoUnknown
MORVSNo keyYesYes
LocalGov.jpNo keyYesYes
Indian PincodeNo keyYesYes
Indian MSP BenchmarksNo keyYesYes
Indian Mandi PricesNo keyYesYes

FAQ

Common questions about Data.parliament.uk

Does Data.parliament.uk need an API key?

No. Data.parliament.uk is listed with no authentication, so you can send a request without registering.

Can I call Data.parliament.uk from the browser?

CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.

Is Data.parliament.uk free?

No key is required, which usually means free access, but providers can still limit volume. Check Data.parliament.uk's docs for rate limits and fair-use terms.

What are some alternatives to Data.parliament.uk?

Other government APIs in the directory include MORVS (no key), LocalGov.jp (no key), Indian Pincode (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.

Next step

Keep looking until the constraints fit.

Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.