# House of Commons Oral and Written Questions API API

> House of Commons Oral and Written Questions API API on Apizie: 4 endpoints (Returns a single Early Day Motion by ID, Returns a list of Early Day Motions, Returns a list of oral questions, Returns a list of oral question times) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `open-data:parliament-uk-oralquestions`
- Category: Open Data
- Status: live
- Source: https://www.parliament.uk/
- Page: https://zieapi.vercel.app/api/open-data/parliament-uk-oralquestions
- OpenAPI: https://zieapi.vercel.app/api/open-data/parliament-uk-oralquestions/openapi.json

An API that allows querying all tabled oral and written questions, and motions for the House of Commons.

## Endpoints

### Returns a single Early Day Motion by ID
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/published-early-day-motion-get`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | yes | Early Day Motion with the ID specified. |

### Returns a list of Early Day Motions
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/get-early-day-motions-list`

| Parameter | Type | Required | Description |
|---|---|---|---|
| parameters.edmIds | array | no | Early Day Motions with an ID in the list provided. |
| parameters.uINWithAmendmentSuffix | string | no | Early Day Motions with an UINWithAmendmentSuffix provided. |
| parameters.searchTerm | string | no | Early Day Motions where the title includes the search term provided. |
| parameters.currentStatusDateStart | string | no | Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD. |
| parameters.currentStatusDateEnd | string | no | Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD. |
| parameters.isPrayer | boolean | no | Early Day Motions which are a prayer against a Negative Statutory Instrument. |
| parameters.memberId | integer | no | Return Early Day Motions tabled by Member with ID provided. |
| parameters.includeSponsoredByMember | boolean | no | Include Early Day Motions sponsored by Member specified |
| parameters.tabledStartDate | string | no | Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD. |
| parameters.tabledEndDate | string | no | Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD. |
| parameters.statuses | array | no | Early Day Motions where current status is in the selected list. |
| parameters.orderBy | string | no | Order results by date tabled, title or signature count. Default is date tabled. |
| parameters.skip | integer | no | The number of records to skip from the first, default is 0. |
| parameters.take | integer | no | The number of records to return, default is 25, maximum is 100. |

### Returns a list of oral questions
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/published-oral-question-get`

| Parameter | Type | Required | Description |
|---|---|---|---|
| parameters.answeringDateStart | string | no | Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD. |
| parameters.answeringDateEnd | string | no | Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD. |
| parameters.questionType | string | no | Oral Questions where the question type is the selected type, substantive or topical. |
| parameters.oralQuestionTimeId | integer | no | Oral Questions where the question is within the question time with the ID provided |
| parameters.askingMemberIds | array | no | The ID of the member asking the question. Lists of member IDs for each house are available Commons and Lords . |
| parameters.uINs | array | no | The UIN for the question - note that UINs reset at the start of each Parliamentary session. |
| parameters.answeringBodyIds | array | no | Which answering body is to respond. A list of answering bodies can be found here . |
| parameters.skip | integer | no | The number of records to skip from the first, default is 0. |
| parameters.take | integer | no | The number of records to return, default is 25, maximum is 100. |

### Returns a list of oral question times
`GET https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/published-oral-question-time-get`

| Parameter | Type | Required | Description |
|---|---|---|---|
| parameters.answeringDateStart | string | no | Oral Questions Time where the answering date has been set on or after the date provided. Date format YYYY-MM-DD. |
| parameters.answeringDateEnd | string | no | Oral Questions Time where the answering date has been set on or before the date provided. Date format YYYY-MM-DD. |
| parameters.deadlineDateStart | string | no | Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD. |
| parameters.deadlineDateEnd | string | no | Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD. |
| parameters.oralQuestionTimeId | integer | no | Identifier of the OQT |
| parameters.answeringBodyIds | array | no | Which answering body is to respond. A list of answering bodies can be found here . |
| parameters.skip | integer | no | The number of records to skip from the first, default is 0. |
| parameters.take | integer | no | The number of records to return, default is 25, maximum is 100. |

## Example
```
curl "https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/published-early-day-motion-get" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the House of Commons Oral and Written Questions API API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/open-data:parliament-uk-oralquestions/published-early-day-motion-get with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the House of Commons Oral and Written Questions API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the House of Commons Oral and Written Questions API API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key open-data:parliament-uk-oralquestions.

### What is the status of the House of Commons Oral and Written Questions API API?
Live: works with just an Apizie key
