Statutory Instruments API
parliament · Data
An API exposing details of the various types of Statutory Instruments laid before Parliament.
Authentication
Sample Requests
Returns a list of proposed negative statutory instruments.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument?Name=test&Skip=1&Take=1&DepartmentId=1&LayingBodyId=example&RecommendedForProcedureChange=true"
import requests
params = {
"Name": "test",
"Skip": "1",
"Take": "1",
"DepartmentId": "1",
"LayingBodyId": "example",
"RecommendedForProcedureChange": "true"
}
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument');
url.searchParams.set('Name', 'test');
url.searchParams.set('Skip', '1');
url.searchParams.set('Take', '1');
url.searchParams.set('DepartmentId', '1');
url.searchParams.set('LayingBodyId', 'example');
url.searchParams.set('RecommendedForProcedureChange', '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/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument")
q := baseURL.Query()
q.Set("Name", "test")
q.Set("Skip", "1")
q.Set("Take", "1")
q.Set("DepartmentId", "1")
q.Set("LayingBodyId", "example")
q.Set("RecommendedForProcedureChange", "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/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument")
uri.query = URI.encode_www_form({
"Name" => "test",
"Skip" => "1",
"Take" => "1",
"DepartmentId" => "1",
"LayingBodyId" => "example",
"RecommendedForProcedureChange" => "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/statutoryinstruments/v1/api/v1/ProposedNegativeStatutoryInstrument?" . http_build_query([
"Name" => "test",
"Skip" => "1",
"Take" => "1",
"DepartmentId" => "1",
"LayingBodyId" => "example",
"RecommendedForProcedureChange" => "true"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of statutory instruments.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/StatutoryInstrument?Name=test&Skip=1&Take=1&House=example&DepartmentId=1&LayingBodyId=example&MotionToStop=true&ScheduledDebate=true&StatutoryInstrumentType=example&ConcernsRaisedByCommittee=true&ParliamentaryProcessConcluded=example"
import requests
params = {
"Name": "test",
"Skip": "1",
"Take": "1",
"House": "example",
"DepartmentId": "1",
"LayingBodyId": "example",
"MotionToStop": "true",
"ScheduledDebate": "true",
"StatutoryInstrumentType": "example",
"ConcernsRaisedByCommittee": "true",
"ParliamentaryProcessConcluded": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/StatutoryInstrument",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/StatutoryInstrument');
url.searchParams.set('Name', 'test');
url.searchParams.set('Skip', '1');
url.searchParams.set('Take', '1');
url.searchParams.set('House', 'example');
url.searchParams.set('DepartmentId', '1');
url.searchParams.set('LayingBodyId', 'example');
url.searchParams.set('MotionToStop', 'true');
url.searchParams.set('ScheduledDebate', 'true');
url.searchParams.set('StatutoryInstrumentType', 'example');
url.searchParams.set('ConcernsRaisedByCommittee', 'true');
url.searchParams.set('ParliamentaryProcessConcluded', 'example');
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/statutoryinstruments/v1/api/v1/StatutoryInstrument")
q := baseURL.Query()
q.Set("Name", "test")
q.Set("Skip", "1")
q.Set("Take", "1")
q.Set("House", "example")
q.Set("DepartmentId", "1")
q.Set("LayingBodyId", "example")
q.Set("MotionToStop", "true")
q.Set("ScheduledDebate", "true")
q.Set("StatutoryInstrumentType", "example")
q.Set("ConcernsRaisedByCommittee", "true")
q.Set("ParliamentaryProcessConcluded", "example")
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/statutoryinstruments/v1/api/v1/StatutoryInstrument")
uri.query = URI.encode_www_form({
"Name" => "test",
"Skip" => "1",
"Take" => "1",
"House" => "example",
"DepartmentId" => "1",
"LayingBodyId" => "example",
"MotionToStop" => "true",
"ScheduledDebate" => "true",
"StatutoryInstrumentType" => "example",
"ConcernsRaisedByCommittee" => "true",
"ParliamentaryProcessConcluded" => "example"
})
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/statutoryinstruments/v1/api/v1/StatutoryInstrument?" . http_build_query([
"Name" => "test",
"Skip" => "1",
"Take" => "1",
"House" => "example",
"DepartmentId" => "1",
"LayingBodyId" => "example",
"MotionToStop" => "true",
"ScheduledDebate" => "true",
"StatutoryInstrumentType" => "example",
"ConcernsRaisedByCommittee" => "true",
"ParliamentaryProcessConcluded" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns all laying bodies.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/LayingBody"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/LayingBody",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/LayingBody'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/parliament.uk/statutoryinstruments/v1/api/v1/LayingBody"
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/statutoryinstruments/v1/api/v1/LayingBody")
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/statutoryinstruments/v1/api/v1/LayingBody";
$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 Statutory Instruments API?
Statutory Instruments 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. Statutory Instruments API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide