Skip to content

House of Commons Oral and Written Questions API API

by parliament.uk

No authHTTPSOpen Data
Open documentation ↗

Overview

An API that allows querying all tabled oral and written questions, and motions for the House of Commons.

House of Commons Oral and Written Questions API is an open data API from parliament.uk. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 4 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
http://oralquestionsandmotions-api.parliament.uk
Version
v1
Endpoints
4
Spec updated
2023-03-03

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://oralquestionsandmotions-api.parliament.uk/EarlyDayMotions/list" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("http://oralquestionsandmotions-api.parliament.uk/EarlyDayMotions/list", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://oralquestionsandmotions-api.parliament.uk/EarlyDayMotions/list",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/EarlyDayMotion/{id}Returns a single Early Day Motion by ID
GET/EarlyDayMotions/listReturns a list of Early Day Motions
GET/oralquestions/listReturns a list of oral questions
GET/oralquestiontimes/listReturns a list of oral question times

Questions

Does the House of Commons Oral and Written Questions API API need an API key?

No. The House of Commons Oral and Written Questions API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the House of Commons Oral and Written Questions API API support HTTPS?

Yes, the House of Commons Oral and Written Questions API API is served over HTTPS.

How many endpoints does the House of Commons Oral and Written Questions API API have?

Its OpenAPI description lists 4 endpoints in version v1. All of them are shown on this page.

What are alternatives to the House of Commons Oral and Written Questions API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).