House of Commons Oral and Written Questions API
parliament · Data
An API that allows querying all tabled oral and written questions, and motions for the House of Commons.
Authentication
Sample Requests
Get a list of Early Day Motions which meet the specified criteria. Only supports Published and Withdrawn status.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list?parameters.skip=1¶meters.take=1¶meters.edmIds=example¶meters.orderBy=DateTabledAsc¶meters.isPrayer=true¶meters.memberId=1¶meters.statuses=example¶meters.searchTerm=example¶meters.tabledEndDate=example¶meters.tabledStartDate=example¶meters.currentStatusDateEnd=example¶meters.currentStatusDateStart=example¶meters.uINWithAmendmentSuffix=example¶meters.includeSponsoredByMember=true"
import requests
params = {
"parameters.skip": "1",
"parameters.take": "1",
"parameters.edmIds": "example",
"parameters.orderBy": "DateTabledAsc",
"parameters.isPrayer": "true",
"parameters.memberId": "1",
"parameters.statuses": "example",
"parameters.searchTerm": "example",
"parameters.tabledEndDate": "example",
"parameters.tabledStartDate": "example",
"parameters.currentStatusDateEnd": "example",
"parameters.currentStatusDateStart": "example",
"parameters.uINWithAmendmentSuffix": "example",
"parameters.includeSponsoredByMember": "true"
}
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list');
url.searchParams.set('parameters.skip', '1');
url.searchParams.set('parameters.take', '1');
url.searchParams.set('parameters.edmIds', 'example');
url.searchParams.set('parameters.orderBy', 'DateTabledAsc');
url.searchParams.set('parameters.isPrayer', 'true');
url.searchParams.set('parameters.memberId', '1');
url.searchParams.set('parameters.statuses', 'example');
url.searchParams.set('parameters.searchTerm', 'example');
url.searchParams.set('parameters.tabledEndDate', 'example');
url.searchParams.set('parameters.tabledStartDate', 'example');
url.searchParams.set('parameters.currentStatusDateEnd', 'example');
url.searchParams.set('parameters.currentStatusDateStart', 'example');
url.searchParams.set('parameters.uINWithAmendmentSuffix', 'example');
url.searchParams.set('parameters.includeSponsoredByMember', 'true');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list")
q := baseURL.Query()
q.Set("parameters.skip", "1")
q.Set("parameters.take", "1")
q.Set("parameters.edmIds", "example")
q.Set("parameters.orderBy", "DateTabledAsc")
q.Set("parameters.isPrayer", "true")
q.Set("parameters.memberId", "1")
q.Set("parameters.statuses", "example")
q.Set("parameters.searchTerm", "example")
q.Set("parameters.tabledEndDate", "example")
q.Set("parameters.tabledStartDate", "example")
q.Set("parameters.currentStatusDateEnd", "example")
q.Set("parameters.currentStatusDateStart", "example")
q.Set("parameters.uINWithAmendmentSuffix", "example")
q.Set("parameters.includeSponsoredByMember", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list")
uri.query = URI.encode_www_form({
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.edmIds" => "example",
"parameters.orderBy" => "DateTabledAsc",
"parameters.isPrayer" => "true",
"parameters.memberId" => "1",
"parameters.statuses" => "example",
"parameters.searchTerm" => "example",
"parameters.tabledEndDate" => "example",
"parameters.tabledStartDate" => "example",
"parameters.currentStatusDateEnd" => "example",
"parameters.currentStatusDateStart" => "example",
"parameters.uINWithAmendmentSuffix" => "example",
"parameters.includeSponsoredByMember" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/EarlyDayMotions/list?" . http_build_query([
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.edmIds" => "example",
"parameters.orderBy" => "DateTabledAsc",
"parameters.isPrayer" => "true",
"parameters.memberId" => "1",
"parameters.statuses" => "example",
"parameters.searchTerm" => "example",
"parameters.tabledEndDate" => "example",
"parameters.tabledStartDate" => "example",
"parameters.currentStatusDateEnd" => "example",
"parameters.currentStatusDateStart" => "example",
"parameters.uINWithAmendmentSuffix" => "example",
"parameters.includeSponsoredByMember" => "true"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));A list of oral questions meeting the specified criteria.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list?parameters.skip=1¶meters.take=1¶meters.uINs=example¶meters.questionType=Substantive¶meters.askingMemberIds=example¶meters.answeringBodyIds=example¶meters.answeringDateEnd=example¶meters.answeringDateStart=example¶meters.oralQuestionTimeId=1"
import requests
params = {
"parameters.skip": "1",
"parameters.take": "1",
"parameters.uINs": "example",
"parameters.questionType": "Substantive",
"parameters.askingMemberIds": "example",
"parameters.answeringBodyIds": "example",
"parameters.answeringDateEnd": "example",
"parameters.answeringDateStart": "example",
"parameters.oralQuestionTimeId": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list');
url.searchParams.set('parameters.skip', '1');
url.searchParams.set('parameters.take', '1');
url.searchParams.set('parameters.uINs', 'example');
url.searchParams.set('parameters.questionType', 'Substantive');
url.searchParams.set('parameters.askingMemberIds', 'example');
url.searchParams.set('parameters.answeringBodyIds', 'example');
url.searchParams.set('parameters.answeringDateEnd', 'example');
url.searchParams.set('parameters.answeringDateStart', 'example');
url.searchParams.set('parameters.oralQuestionTimeId', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list")
q := baseURL.Query()
q.Set("parameters.skip", "1")
q.Set("parameters.take", "1")
q.Set("parameters.uINs", "example")
q.Set("parameters.questionType", "Substantive")
q.Set("parameters.askingMemberIds", "example")
q.Set("parameters.answeringBodyIds", "example")
q.Set("parameters.answeringDateEnd", "example")
q.Set("parameters.answeringDateStart", "example")
q.Set("parameters.oralQuestionTimeId", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list")
uri.query = URI.encode_www_form({
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.uINs" => "example",
"parameters.questionType" => "Substantive",
"parameters.askingMemberIds" => "example",
"parameters.answeringBodyIds" => "example",
"parameters.answeringDateEnd" => "example",
"parameters.answeringDateStart" => "example",
"parameters.oralQuestionTimeId" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestions/list?" . http_build_query([
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.uINs" => "example",
"parameters.questionType" => "Substantive",
"parameters.askingMemberIds" => "example",
"parameters.answeringBodyIds" => "example",
"parameters.answeringDateEnd" => "example",
"parameters.answeringDateStart" => "example",
"parameters.oralQuestionTimeId" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));A list of oral question times meeting the specified criteria.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list?parameters.skip=1¶meters.take=1¶meters.deadlineDateEnd=example¶meters.answeringBodyIds=example¶meters.answeringDateEnd=example¶meters.deadlineDateStart=example¶meters.answeringDateStart=example¶meters.oralQuestionTimeId=1"
import requests
params = {
"parameters.skip": "1",
"parameters.take": "1",
"parameters.deadlineDateEnd": "example",
"parameters.answeringBodyIds": "example",
"parameters.answeringDateEnd": "example",
"parameters.deadlineDateStart": "example",
"parameters.answeringDateStart": "example",
"parameters.oralQuestionTimeId": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list');
url.searchParams.set('parameters.skip', '1');
url.searchParams.set('parameters.take', '1');
url.searchParams.set('parameters.deadlineDateEnd', 'example');
url.searchParams.set('parameters.answeringBodyIds', 'example');
url.searchParams.set('parameters.answeringDateEnd', 'example');
url.searchParams.set('parameters.deadlineDateStart', 'example');
url.searchParams.set('parameters.answeringDateStart', 'example');
url.searchParams.set('parameters.oralQuestionTimeId', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list")
q := baseURL.Query()
q.Set("parameters.skip", "1")
q.Set("parameters.take", "1")
q.Set("parameters.deadlineDateEnd", "example")
q.Set("parameters.answeringBodyIds", "example")
q.Set("parameters.answeringDateEnd", "example")
q.Set("parameters.deadlineDateStart", "example")
q.Set("parameters.answeringDateStart", "example")
q.Set("parameters.oralQuestionTimeId", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list")
uri.query = URI.encode_www_form({
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.deadlineDateEnd" => "example",
"parameters.answeringBodyIds" => "example",
"parameters.answeringDateEnd" => "example",
"parameters.deadlineDateStart" => "example",
"parameters.answeringDateStart" => "example",
"parameters.oralQuestionTimeId" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/parliament.uk/oralquestions/v1/oralquestiontimes/list?" . http_build_query([
"parameters.skip" => "1",
"parameters.take" => "1",
"parameters.deadlineDateEnd" => "example",
"parameters.answeringBodyIds" => "example",
"parameters.answeringDateEnd" => "example",
"parameters.deadlineDateStart" => "example",
"parameters.answeringDateStart" => "example",
"parameters.oralQuestionTimeId" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with House of Commons Oral and Written Questions API?
House of Commons Oral and Written Questions API is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. House of Commons Oral and Written Questions API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide