UK Parliament Written Questions Search - Full Answers avatar

UK Parliament Written Questions Search - Full Answers

Under maintenance

Pricing

from $0.00005 / actor start

Go to Apify Store
UK Parliament Written Questions Search - Full Answers

UK Parliament Written Questions Search - Full Answers

Under maintenance

Search Commons and Lords written questions by keyword and date. Full question and answer text, department, asking and answering members, holding and corrected answers. Official Parliament API.

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

Michal Pšenčík

Michal Pšenčík

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Search written questions in the House of Commons and the House of Lords by keyword and date, and get one row per question with the full question text and the full answer, the asking and answering members, the department and every date: tabled, due, answered, holding answer and correction. Data comes from Parliament's official Written Questions API.

Parliament's list search cuts both texts short (the question at 255 characters, the answer after a few lines with ...). This actor fetches each question's own record, so every row carries the complete texts.

Useful for public-affairs and policy work: every question MPs and peers asked government about your topic last week, with what ministers answered, in a spreadsheet or a monitoring pipeline.

Input

FieldWhat it does
Search termKeyword or phrase, 2-100 characters (default energy). Empty lists every question.
Date to filter onTabled (default) or Answered.
From date / To dateYYYY-MM-DD, both included. Defaults: the last 60 days up to today (UTC). At most 366 days.
HouseBoth (default), House of Commons or House of Lords.
Answered statusAny (default), answered only or unanswered only.
Include withdrawn questionsOff by default.
Maximum questions1 to 1000 (default 50).
{
"searchTerm": "battery",
"dateField": "tabled",
"dateFrom": "2026-10-01",
"dateTo": "2026-10-22",
"house": "Both",
"answeredStatus": "Any",
"includeWithdrawn": false,
"maxItems": 50
}

The search is Parliament's own ("searches item content"); the actor sends your term as is and does not filter the results further. Questions come in the order the API lists them, and the first maxItems are returned.

Output

One row per question. Example (22 Oct 2026, answer shortened here):

{
"id": 1949544,
"uin": "35189",
"house": "Commons",
"heading": "Telecommunications: Supported Housing",
"dateTabled": "2026-10-15",
"dateForAnswer": "2026-10-19",
"dateAnswered": "2026-10-22",
"dateHoldingAnswer": null,
"dateAnswerCorrected": null,
"questionText": "To ask the Secretary of State for Digital, Culture, Media and Sport, what assessment her department has made of the potential impact of homecare telecommunications in the event of a power cut.",
"answerHtml": "<p>The Government is committed to ensuring that any risks ...</p>",
"answerText": "The Government is committed to ensuring that any risks ...\n\nIn November 2024 and March 2026, ...",
"originalAnswerHtml": null,
"answerIsHolding": false,
"answerIsCorrection": false,
"isWithdrawn": false,
"isNamedDay": false,
"answeringBodyId": 10,
"answeringBodyName": "Department for Digital, Culture, Media and Sport",
"askingMember": { "id": 5265, "name": "James MacCleary", "party": "Liberal Democrat", "memberFrom": "Lewes" },
"answeringMember": { "id": 3966, "name": "Ian Murray", "party": "Labour", "memberFrom": "Edinburgh South" },
"groupedQuestionUins": [],
"attachmentCount": 0,
"sourceUrl": "https://questions-statements-api.parliament.uk/api/writtenquestions/questions/1949544",
"fetchedAt": "2026-10-22T21:00:00.000Z"
}
  • answerHtml is the answer exactly as Parliament publishes it; answerText is the same answer as plain text with paragraphs separated by a blank line. Both are null for an unanswered question.
  • originalAnswerHtml holds the earlier answer when an answer was corrected. answerIsHolding and answerIsCorrection are null on unanswered questions, as the API sends them.
  • Members carry id, name, party and constituency (memberFrom). If the API sends no member details, only the id is filled. answeringMember is null until a question is answered.
  • Dates are calendar dates (YYYY-MM-DD); the API sends no time zone. attachmentCount counts attachments; their content is not downloaded.

Run summary

The key-value store record SUMMARY (free) shows the resolved query, the API's totalResults, how many ids were listed, selected and stored, whether the query was exhausted or capped by maxItems, and every selected question that has no row, with its reason: detail_not_found, detail_error, invalid_record, not_fetched_deadline, not_fetched_source_stop, not_stored_budget, not_stored_deadline, not_stored_max_items, not_stored or delivery_uncertain. complete is true only when every question the query matched was listed and stored; a run capped by maxItems reports complete: false and cappedByMaxItems: true. stoppedReason says why a run stopped early.

Pricing

Pay per event: $0.002 per stored question (with its full detail record) and $0.00005 per run start. Each row is billed once, when it is stored; rows already stored stay billed even if the run later fails or stops. Errors, rows not stored, invalid or filtered inputs, questions whose record could not be fetched, and the SUMMARY carry no item fee. The apify-actor-start event applies to every run, including failed and empty ones. The actor keeps no state between runs: searching the same window again bills the questions again.

Examples: the default 50 questions cost $0.10005, a weekly report of 200 questions $0.40005, 1,000 questions $2.00005.

Limits

  • Source: https://questions-statements-api.parliament.uk, public, no key. One request at a time, 1.5 s after each list page and 0.5 s between question records. A list page can take 10-30 s, so a 1,000-question run takes roughly 15-20 minutes.
  • A run does at most 30 minutes of work; questions not fetched by then are listed in SUMMARY and the run reports stoppedReason: "deadline".
  • A 403 or 429 from the API, or an HTML page instead of JSON, stops the run: rows already stored stay delivered.
  • Written questions only: no written statements, oral questions or Hansard debates. No links to the human-facing website (it sits behind a browser check).
  • Members of Parliament are public office-holders; the actor exports only name, party and constituency as Parliament publishes them.