c0mm0.com — the continuously verified register of European data

Register record·API·GB·GOVERNMENTVERIFIED · checked 6h ago
W

Written Questions Service API

APIProfiled3/7PreviewSubscribe🇬🇧United Kingdom

This API provides data on written parliamentary questions and their answers, as well as written ministerial statements, published by UK Parliament. It covers material submitted and answered in the House of Commons and House of Lords, allowing access to the text of questions, responses, and statements along with related metadata such as dates and members involved. The service is freely accessible without authentication and supports national-level coverage of UK parliamentary proceedings, useful for tracking government responses and ministerial announcements over time.Data around written questions and answers, as well as written ministerial statements.

OpenAPI specAPI base URLVisit homepage
74
good

Weighted across five axes. Tap a ring for what it measures.

Data schema (89 fields)

Filterable via the API (29)
dateFromdateTohouseskiptakeaskingMemberIdansweringMemberIdtabledWhenFromdateForAnswerWhenFromdateForAnswerWhenTotabledWhenToansweredansweredWhenFromansweredWhenToquestionStatusincludeWithdrawnexpandMembercorrectedWhenFromcorrectedWhenTosessionStatussearchTermuINansweringBodiesmembersiddateuinmadeWhenFrommadeWhenTo
FieldTypeDescription
dateFromFilterable via the APIDate fromstring (date-time)Filters daily reports to those on or after this date.Daily report with report date on or after the date specified. Date format yyyy-mm-dd
dateToFilterable via the APIDate tostring (date-time)Filters daily reports to those on or before this date.Daily report with report date on or before the date specified. Date format yyyy-mm-dd
houseFilterable via the APIstringFilters by parliamentary House; defaults to both Houses.Daily report relating to the House specified. Defaults to Bicameral
skipFilterable via the APIinteger (int32)Number of records to skip for pagination, default 0.Number of records to skip, default is 0
takeFilterable via the APIinteger (int32)Number of records to return, default 20.Number of records to take, default is 20
askingMemberIdFilterable via the APIAsking member idinteger (int32)Filters written questions by the ID of the asking member.Written questions asked by member with member ID specified
answeringMemberIdFilterable via the APIAnswering member idinteger (int32)Filters written questions by the ID of the answering member.Written questions answered by member with member ID specified
tabledWhenFromFilterable via the APITabled when fromstring (date-time)Filters written questions tabled on or after this date.Written questions tabled on or after the date specified. Date format yyyy-mm-dd
dateForAnswerWhenFromFilterable via the APIDate for answer when fromstring (date-time)Filters questions with a due answer date on or after this date.Written questions DateForAnswer on or after the date specified format yyyy-mm-dd
dateForAnswerWhenToFilterable via the APIDate for answer when tostring (date-time)Filters questions with a due answer date on or before this date.Written questions DateForAnswer on or before the date specified format yyyy-mm-dd
tabledWhenToFilterable via the APITabled when tostring (date-time)Filters written questions tabled on or before this date.Written questions tabled on or before the date specified. Date format yyyy-mm-dd
answeredFilterable via the APIstringFilters questions by answered, unanswered, or either status.Written questions that have been answered, unanswered or either.
answeredWhenFromFilterable via the APIAnswered when fromstring (date-time)Filters written questions answered on or after this date.Written questions answered on or after the date specified. Date format yyyy-mm-dd
answeredWhenToFilterable via the APIAnswered when tostring (date-time)Filters written questions answered on or before this date.Written questions answered on or before the date specified. Date format yyyy-mm-dd
questionStatusFilterable via the APIQuestion statusstringFilters written questions by their status.Written questions with the status specified
includeWithdrawnFilterable via the APIInclude withdrawnbooleanWhether to include withdrawn written questions in results.Include written questions that have been withdrawn
expandMemberFilterable via the APIExpand memberbooleanWhether to include full member details in results.Expand the details of Members in the results
correctedWhenFromFilterable via the APICorrected when fromstring (date-time)Filters written questions corrected on or after this date.Written questions corrected on or after the date specified. Date format yyyy-mm-dd
correctedWhenToFilterable via the APICorrected when tostring (date-time)Filters written questions corrected on or before this date.Written questions corrected on or before the date specified. Date format yyyy-mm-dd
sessionStatusFilterable via the APISession statusstringFilters questions by parliamentary session status.The Session status for which the Questions data will be returned
searchTermFilterable via the APISearch termstringFilters written questions or statements by text search term.Written questions / statements containing the search term specified, searches item content
uINFilterable via the APIU instringFilters written questions or statements by their unique identifying number.Written questions / statements with the uin specified
answeringBodiesFilterable via the APIAnswering bodiesarrayFilters by IDs of the government bodies answering the questions.Written questions / statements relating to the answering bodies with the IDs specified
membersFilterable via the APIarrayFilters by IDs of members related to the questions or statements.Written questions / statements relating to the members with the IDs specified
idFilterable via the APIinteger (int32)Identifier of the written question.written question with ID specified
dateFilterable via the APIstring (date-time)Filters written questions by a specific date.Written question on date specified
uinFilterable via the APIstringUnique identifying number of the written question.Written question with uid specified
madeWhenFromFilterable via the APIMade when fromstring (date-time)Filters written statements made on or after this date.Written statements made on or after the date specified. Date format yyyy-mm-dd
madeWhenToFilterable via the APIMade when tostring (date-time)Filters written statements made on or before this date.Written statements made on or before the date specified. Date format yyyy-mm-dd
urlAttachmentViewModelstringURL to download the attachment file.URL to download the attachment file.
titleAttachmentViewModelstringTitle of the attachment.Title of the attachment.
fileTypeAttachmentViewModelstringFile format of the attachment.File format of the attachment.
fileSizeBytesAttachmentViewModelinteger (int64)Size of the attachment file in bytes.Size of the attachment file in bytes.
valueDailyReportViewModelItemobjectContent of the daily report item.Content of the daily report item.
linksDailyReportViewModelItemarray<object>Related hyperlinks associated with the daily report item.Related hyperlinks associated with the daily report item.
totalResultsDailyReportViewModelSearchResultinteger (int32)Total number of matching daily report results.Total number of matching daily report results.
resultsDailyReportViewModelSearchResultarray<object>List of daily report items matching the search.List of daily report items matching the search.
questionUinGroupedQuestionViewModelstringUnique identifying number of a grouped question.Unique identifying number of a grouped question.
dateTabledGroupedQuestionViewModelstring (date-time)Date the grouped question was tabled.Date the grouped question was tabled.
linkedStatementIdLinkedStatementsinteger (int32)Identifier of a statement linked to this record.Identifier of a statement linked to this record.
linkTypeLinkedStatementsobjectType of relationship between linked statements.Type of relationship between linked statements.
linkDateLinkedStatementsstring (date-time)Date the linked statement relationship was created.Date the linked statement relationship was created.
listAsMemberViewModelstringName format used to list the member.Name format used to list the member.
nameMemberViewModelstringFull name of the member.Full name of the member.
partyMemberViewModelstringPolitical party of the member.Political party of the member.
partyColourMemberViewModelstringColour associated with the member's political party.Colour associated with the member's political party.
partyAbbreviationMemberViewModelstringAbbreviated name of the member's political party.Abbreviated name of the member's political party.
memberFromMemberViewModelstringConstituency or region the member represents.Constituency or region the member represents.
thumbnailUrlMemberViewModelstringURL to the member's thumbnail image.URL to the member's thumbnail image.
askingMemberQuestionsViewModelobjectDetails of the member who asked the question.Details of the member who asked the question.
memberHasInterestQuestionsViewModelbooleanWhether the asking member has a declared interest.Whether the asking member has a declared interest.
dateForAnswerQuestionsViewModelstring (date-time)Due date by which the question is to be answered.Due date by which the question is to be answered.
questionTextQuestionsViewModelstringFull text of the written question.Full text of the written question.
answeringBodyIdQuestionsViewModelinteger (int32)Identifier of the government body answering the question.Identifier of the government body answering the question.
answeringBodyNameQuestionsViewModelstringName of the government body answering the question.Name of the government body answering the question.
isWithdrawnQuestionsViewModelbooleanWhether the question has been withdrawn.Whether the question has been withdrawn.
isNamedDayQuestionsViewModelbooleanWhether the question was tabled for a named day answer.Whether the question was tabled for a named day answer.
groupedQuestionsQuestionsViewModelarray<string>UINs of other questions grouped with this one.UINs of other questions grouped with this one.
answerIsHoldingQuestionsViewModelbooleanWhether the answer given is a holding answer.Whether the answer given is a holding answer.
answerIsCorrectionQuestionsViewModelbooleanWhether the answer is a correction of a previous answer.Whether the answer is a correction of a previous answer.
answeringMemberQuestionsViewModelobjectDetails of the member who answered the question.Details of the member who answered the question.
correctingMemberIdQuestionsViewModelinteger (int32)Identifier of the member who corrected the answer.Identifier of the member who corrected the answer.
correctingMemberQuestionsViewModelobjectDetails of the member who corrected the answer.Details of the member who corrected the answer.
dateAnsweredQuestionsViewModelstring (date-time)Date the question was answered.Date the question was answered.
answerTextQuestionsViewModelstringFull text of the answer given.Full text of the answer given.
originalAnswerTextQuestionsViewModelstringOriginal answer text before any correction.Original answer text before any correction.
comparableAnswerTextQuestionsViewModelstringNormalised answer text used for comparison purposes.Normalised answer text used for comparison purposes.
dateAnswerCorrectedQuestionsViewModelstring (date-time)Date the answer was corrected.Date the answer was corrected.
dateHoldingAnswerQuestionsViewModelstring (date-time)Date a holding answer was given.Date a holding answer was given.
attachmentCountQuestionsViewModelinteger (int32)Number of attachments associated with the question.Number of attachments associated with the question.
headingQuestionsViewModelstringSubject heading of the question.Subject heading of the question.
attachmentsQuestionsViewModelarray<object>List of files attached to the question.List of files attached to the question.
groupedQuestionsDatesQuestionsViewModelarray<object>Tabled dates of questions grouped with this one.Tabled dates of questions grouped with this one.
memberIdStatementsViewModelinteger (int32)Identifier of the member who made the statement.Identifier of the member who made the statement.
memberStatementsViewModelobjectDetails of the member who made the statement.Details of the member who made the statement.
memberRoleStatementsViewModelstringMinisterial or other role held by the member.Ministerial or other role held by the member.
dateMadeStatementsViewModelstring (date-time)Date the statement was made.Date the statement was made.
textStatementsViewModelstringFull text of the statement.Full text of the statement.
noticeNumberStatementsViewModelinteger (int32)Notice number assigned to the statement.Notice number assigned to the statement.
hasAttachmentsStatementsViewModelbooleanWhether the statement has associated attachments.Whether the statement has associated attachments.
hasLinkedStatementsStatementsViewModelbooleanWhether the statement has linked statements.Whether the statement has linked statements.
linkedStatementsStatementsViewModelarray<object>List of statements linked to this one.List of statements linked to this one.
relLinkstringRelationship type of the link.Relationship type of the link.
hrefLinkstringURL target of the link.URL target of the link.
methodLinkstringHTTP method used for the link.HTTP method used for the link.
typeProblemDetailsstringURI identifying the type of error.URI identifying the type of error.
statusProblemDetailsinteger (int32)HTTP status code of the error response.HTTP status code of the error response.
detailProblemDetailsstringHuman-readable explanation of the error.Human-readable explanation of the error.
instanceProblemDetailsstringURI identifying the specific occurrence of the error.URI identifying the specific occurrence of the error.

Schema captured from openapi 20 days ago.

Verification Status

Using the API

Configuration

Base URL
https://writtenquestions-api.parliament.uk
Version
v1
Format
openapi
Endpoints
7

Try the API

GET/api/dailyreports/dailyreports

Returns a list of daily reports

GET/api/writtenquestions/questions

Returns a list of written questions

GET/api/writtenquestions/questions/{id}

Returns a written question

GET/api/writtenquestions/questions/{date}/{uin}

Returns a written question

GET/api/writtenstatements/statements

Returns a list of written statements

Requests are proxied through our servers. Only GET endpoints are testable.

Endpoints (7)

/api7 endpoints
GET
/api/dailyreports/dailyreports

Returns a list of daily reports

GET
/api/writtenquestions/questions

Returns a list of written questions

GET
/api/writtenquestions/questions/{id}

Returns a written question

GET
/api/writtenquestions/questions/{date}/{uin}

Returns a written question

GET
/api/writtenstatements/statements

Returns a list of written statements

GET
/api/writtenstatements/statements/{id}

Returns a written statement

GET
/api/writtenstatements/statements/{date}/{uin}

Returns a written statemnet

Query examples

curl -s 'https://writtenquestions-api.parliament.uk/swagger/v1/swagger.json' -H 'Accept: application/json'

Machine-readable API description (use it to generate clients).

Machine-readable & source

Written Questions Service API — live verification badge

Embed this badge in a README or wiki — it always shows the latest verification state and quality tier.