Written Questions Service API
Data around written questions and answers, as well as written ministerial statements.
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
Data around written questions and answers, as well as written ministerial statements.
Endpoints 7
DailyReports
- GETReturns a list of daily reports
/api/dailyreports/dailyreports?dateFrom=2024-01-01T00:00:00Z&dateTo=2024-01-01T00:00:00Z&house=Bicameral&skip=0&take=0
WrittenQuestions
- GETReturns a list of written questions
/api/writtenquestions/questions?askingMemberId=1&answeringMemberId=1&tabledWhenFrom=2024-01-01T00:00:00Z&tabledWhenTo=2024-01-01T00:00:00Z&answered=Any&answeredWhenFrom=2024-01-01T00:00:00Z&answeredWhenTo=2024-01-01T00:00:00Z&questionStatus=NotAnswered&includeWithdrawn=true&expandMember=true&correctedWhenFrom=2024-01-01T00:00:00Z&correctedWhenTo=2024-01-01T00:00:00Z&searchTerm=string&uIN=string&answeringBodies=0&members=0&house=Bicameral&skip=0&take=0 - GETReturns a written question
/api/writtenquestions/questions/:date/:uin?expandMember=true - GETReturns a written question
/api/writtenquestions/questions/:id?expandMember=true
WrittenStatements
- GETReturns a list of written statements
/api/writtenstatements/statements?madeWhenFrom=2024-01-01T00:00:00Z&madeWhenTo=2024-01-01T00:00:00Z&searchTerm=string&uIN=string&answeringBodies=0&members=0&house=Bicameral&skip=0&take=0&expandMember=true - GETReturns a written statemnet
/api/writtenstatements/statements/:date/:uin?expandMember=true - GETReturns a written statement
/api/writtenstatements/statements/:id?expandMember=true
API details
- Authentication
- None declared in the description
- Operations
- 7 operations on 7 pathsGET 7
- Main resources
- WrittenQuestions 3WrittenStatements 3DailyReports 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 Written Questions Service 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 Written Questions Service 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 list of daily reports” (GET /api/dailyreports/dailyreports?dateFrom=2024-01-01T00:00:00Z&dateTo=2024-01-01T00:00:00Z&house=Bicameral&skip=0&take=0), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Written Questions Service API?
Data around written questions and answers, as well as written ministerial statements. It is listed under Data & analytics and has 7 endpoints.
Who publishes the Written Questions Service 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 Written Questions Service 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 Written Questions Service API have?
7 operations on 7 paths (7 GET). The largest groups are WrittenQuestions, WrittenStatements, DailyReports.
Is forking the Written Questions Service API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.