House of Commons Oral and Written Questions API
An API that allows querying all tabled oral and written questions, and motions for the House of Commons.
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 that allows querying all tabled oral and written questions, and motions for the House of Commons.
Endpoints 4
Early Day Motions
- GETReturns a single Early Day Motion by ID
/EarlyDayMotion/:idGet a single Early Day Motion which has the ID specified. - GETReturns a list of Early Day Motions
/EarlyDayMotions/list?parameters.edmIds=0¶meters.uINWithAmendmentSuffix=string¶meters.searchTerm=string¶meters.currentStatusDateStart=2024-01-01T00:00:00Z¶meters.currentStatusDateEnd=2024-01-01T00:00:00Z¶meters.isPrayer=true¶meters.memberId=0¶meters.includeSponsoredByMember=true¶meters.tabledStartDate=2024-01-01T00:00:00Z¶meters.tabledEndDate=2024-01-01T00:00:00Z¶meters.statuses=Published¶meters.orderBy=DateTabledAsc¶meters.skip=0¶meters.take=0Get a list of Early Day Motions which meet the specified criteria. Only supports Published and Withdrawn status.
Oral Questions
- GETReturns a list of oral questions
/oralquestions/list?parameters.answeringDateStart=2024-01-01T00:00:00Z¶meters.answeringDateEnd=2024-01-01T00:00:00Z¶meters.questionType=Substantive¶meters.oralQuestionTimeId=0¶meters.askingMemberIds=0¶meters.uINs=0¶meters.answeringBodyIds=0¶meters.skip=0¶meters.take=0A list of oral questions meeting the specified criteria.
Oral Question Times
- GETReturns a list of oral question times
/oralquestiontimes/list?parameters.answeringDateStart=2024-01-01T00:00:00Z¶meters.answeringDateEnd=2024-01-01T00:00:00Z¶meters.deadlineDateStart=2024-01-01T00:00:00Z¶meters.deadlineDateEnd=2024-01-01T00:00:00Z¶meters.oralQuestionTimeId=0¶meters.answeringBodyIds=0¶meters.skip=0¶meters.take=0A list of oral question times meeting the specified criteria.
API details
- Base URL
http://oralquestionsandmotions-api.parliament.ukhttps://oralquestionsandmotions-api.parliament.uk- Authentication
- None declared in the description
- Operations
- 4 operations on 4 pathsGET 4
- Main resources
- Early Day Motions 2Oral Question Times 1Oral Questions 1
- Response formats
application/jsontext/jsonapplication/xml- Description format
- OpenAPI 3.0.0, API version
v1 - Links
- OpenAPI document · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the House of Commons Oral and Written Questions 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 House of Commons Oral and Written Questions 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 a single Early Day Motion by ID” (GET /EarlyDayMotion/:id), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the House of Commons Oral and Written Questions API?
An API that allows querying all tabled oral and written questions, and motions for the House of Commons. It is listed under Data & analytics and has 4 endpoints.
Who publishes the House of Commons Oral and Written Questions 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.
What is the base URL of the House of Commons Oral and Written Questions API?
Its description lists 2 base URLs: http://oralquestionsandmotions-api.parliament.uk, https://oralquestionsandmotions-api.parliament.uk. The first is the usual one; the others are typically sandbox or regional servers.
How do I authenticate with the House of Commons Oral and Written Questions 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 House of Commons Oral and Written Questions API have?
4 operations on 4 paths (4 GET). The largest groups are Early Day Motions, Oral Question Times, Oral Questions.
Is forking the House of Commons Oral and Written Questions API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.