House of Commons Written Questions

MPs can ask government ministers questions for written answer. These are often used to obtain detailed information about policies and statistics on the activities of government departments.

Use this dataset:

  • If you want to explore the subjects MPs are raising with the government.

House of Commons Written Questions Search

This provides a user interface which allows you to search and download the dataset using multiple filters. Selecting this option will show you the first few records from the dataset and then allow you to select data from the dataset by filtering on any of the attributes for questions. You will then be able to download or display the data in the following formats: CSV (e.g. for use in Microsoft Excel), TTL, Text, XML, JSON or RDF (e.g. for developers)

House of Commons Written Questions API

Developers can build API calls using the explorer tool. Help for the APIs can be found at http://explore.data.parliament.uk/?learnmore=Commons%20Written%20Questions

Lords and Commons Written Answers to Written Questions Search

This provides a user interface which allows you to search for answers to written questions using multiple filters. Selecting this option will show you the first few records from the dataset and then allow you to select data from the dataset by filtering on any of the attributes for answers. You will then be able to download or display the data in the following formats: CSV (e.g. for use in Microsoft Excel), TTL, Text, XML, JSON or RDF (e.g. for developers)

Lords and Commons Written Answers to Written Questions API

Developers can build API calls using the explorer tool. Help for the APIs can be found at http://explore.data.parliament.uk/?learnmore=Parliamentary%20Questions%20Answered

House Of Commons Written Questions Atom Feed

The feed contains the 20 most recent resources for Commons written questions. This format is mainly for developers. It returns the links to resources that contain the following:

Each resource has up to seven resource files.

xml

This is a JSON representation of the question as published by the Commons’internal system. It contains rich metadata such as rubrics and full audit trails.

qnaxml

This is an XML representation of the question. It contains a subset of the information contained within the JSON file.

answerxml

This is an XML representation of the answer. It contains a subset of the information contained within the JSON file. Lords Questions for Written Answer also exist in an equivalent format, so it may be useful if you want to consume question data on a bicameral basis. The XML corresponds to the Question element in the schema. The question has the following fields:

qnardf

QnaRDF is an RDF/XML representation of some of the properties of the answer.

answerrdf

AnswerRDF is an RDF/XML representation of some of the properties of the answer.

hansard

Is a text file with the heading as it will appear in Hansard.

hansardrdf

RDF/XML representation of some of the properties of the Hansard text.