GovernmentPublic API
Ayes and Noes
UK House of Commons MPs, parties and recorded votes
Before you call it
What this listing means in practice
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.
HTTPS supported
Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.
CORS enabled
The provider sends browser-friendly CORS headers, so you can call the API from client-side JavaScript without a proxy — subject to any key restrictions.
Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.
https://ayesandnoes.co.uk/developersNo 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 Ayes and Noes
Ayes and Noes needs no API key. That puts it among 92 of the 126 government APIs we list that you can try without signing up.
It also supports HTTPS and CORS, so you can call it straight from browser JavaScript with no key and no proxy. Only 27 government APIs tick all three boxes.
Documentation is on ayesandnoes.co.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 Ayes and Noes
Works in the browser or in Node.
JavaScript// Replace the path with an endpoint from the Ayes and Noes docs
const res = await fetch("https://ayesandnoes.co.uk/developers/<endpoint>");
if (!res.ok) throw new Error(`Ayes and Noes returned ${res.status}`);
const data = await res.json();Compare
Ayes and Noes vs similar APIs
| API | Auth | HTTPS | CORS |
|---|---|---|---|
| Ayes and Noes | No key | Yes | Yes |
| OpenMercantil | No key | Yes | Yes |
| Open Government, Portugal | No key | Yes | Yes |
| Open Government, Poland | No key | Yes | Yes |
| Open Government, Norway | No key | Yes | Yes |
| MORVS | No key | Yes | Yes |
FAQ
Common questions about Ayes and Noes
Does Ayes and Noes need an API key?
No. Ayes and Noes is listed with no authentication, so you can send a request without registering.
Can I call Ayes and Noes from the browser?
CORS is listed as enabled, so frontend JavaScript can call it directly.
Is Ayes and Noes free?
No key is required, which usually means free access, but providers can still limit volume. Check Ayes and Noes's docs for rate limits and fair-use terms.
What are some alternatives to Ayes and Noes?
Other government APIs in the directory include OpenMercantil (no key), Open Government, Portugal (no key), Open Government, Poland (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.
Same category
More Government APIs
Next step
Keep looking until the constraints fit.
Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.