Statutory Instruments API
An API exposing details of the various types of Statutory Instruments laid before Parliament.
Data & analytics#openapi#open-data
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
An API exposing details of the various types of Statutory Instruments laid before Parliament.
Endpoints 10
BusinessItem
- GETReturns business item by ID.
/api/v1/BusinessItem/:id?LaidPaper=StatutoryInstrument
LayingBody
- GETReturns all laying bodies.
/api/v1/LayingBody
Procedure
- GETReturns all procedures.
/api/v1/Procedure - GETReturns procedure by ID.
/api/v1/Procedure/:id
ProposedNegativeStatutoryInstrument
- GETReturns a list of proposed negative statutory instruments.
/api/v1/ProposedNegativeStatutoryInstrument?Name=string&RecommendedForProcedureChange=true&DepartmentId=1&LayingBodyId=string&Skip=0&Take=0 - GETReturns proposed negative statutory instrument by ID.
/api/v1/ProposedNegativeStatutoryInstrument/:id - GETReturns business items belonging to a proposed negative statutory instrument.
/api/v1/ProposedNegativeStatutoryInstrument/:id/BusinessItems
StatutoryInstrument
- GETReturns a list of statutory instruments.
/api/v1/StatutoryInstrument?Name=string&StatutoryInstrumentType=DraftAffirmative&ScheduledDebate=true&MotionToStop=true&ConcernsRaisedByCommittee=true&ParliamentaryProcessConcluded=NotConcluded&DepartmentId=1&LayingBodyId=string&House=Commons&Skip=0&Take=0 - GETReturns a statutory instrument by ID.
/api/v1/StatutoryInstrument/:id - GETReturns business items belonging to statutory instrument with ID.
/api/v1/StatutoryInstrument/:id/BusinessItems
API details
- Authentication
- None declared in the description
- Operations
- 10 operations on 10 pathsGET 10
- Main resources
- ProposedNegativeStatutoryInstrument 3StatutoryInstrument 3Procedure 2BusinessItem 1LayingBody 1
- Response formats
application/jsontext/jsontext/plain- Description format
- OpenAPI 3.0.1, API version
v1 - Links
- OpenAPI document · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Statutory Instruments API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Statutory Instruments API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Returns business item by ID.” (GET /api/v1/BusinessItem/:id?LaidPaper=StatutoryInstrument), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Statutory Instruments API?
An API exposing details of the various types of Statutory Instruments laid before Parliament. It is listed under Data & analytics and has 10 endpoints.
Who publishes the Statutory Instruments API?
It is listed from Parliament's public API description (an OpenAPI document), not published by Parliament on Swastik Codes. Anyone who controls parliament.uk can claim the profile by adding a DNS TXT record.
How do I authenticate with the Statutory Instruments API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Statutory Instruments API have?
10 operations on 10 paths (10 GET). The largest groups are ProposedNegativeStatutoryInstrument, StatutoryInstrument, Procedure, BusinessItem.
Is forking the Statutory Instruments API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.