c0mm0.com — the continuously verified register of European data

Register record·API·GB·GOVERNMENTFAILING · checked 5h ago
H

House of Commons Oral and Written Questions API

APIDiscovered1/7blocked by verifiedPreviewSubscribe🇬🇧United Kingdom

This API provides access to tabled oral and written parliamentary questions, as well as motions submitted in the House of Commons. Maintained by UK Parliament, it allows users to query records of questions posed by Members of Parliament to government ministers and departments, along with associated motions. The API covers the national parliamentary scope of the United Kingdom and can be used to track legislative activity, monitor topics raised in the Commons, and research the parliamentary record without requiring authentication.An API that allows querying all tabled oral and written questions, and motions for the House of Commons.

OpenAPI specAPI base URLVisit homepage
63
good

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

Data schema (111 fields)

Filterable via the API (24)
idparameters.edmIdsparameters.uINWithAmendmentSuffixparameters.searchTermparameters.currentStatusDateStartparameters.currentStatusDateEndparameters.isPrayerparameters.memberIdparameters.includeSponsoredByMemberparameters.tabledStartDateparameters.tabledEndDateparameters.statusesparameters.orderByparameters.skipparameters.takeparameters.answeringDateStartparameters.answeringDateEndparameters.questionTypeparameters.oralQuestionTimeIdparameters.askingMemberIdsparameters.uINsparameters.answeringBodyIdsparameters.deadlineDateStartparameters.deadlineDateEnd
FieldTypeDescription
idFilterable via the APIinteger (int32)Unique identifier of the Early Day Motion requested.Early Day Motion with the ID specified.
parameters.edmIdsFilterable via the APIParameters.edm idsarrayFilter Early Day Motions by a list of IDs.Early Day Motions with an ID in the list provided.
parameters.uINWithAmendmentSuffixFilterable via the APIParameters.u inwith amendment suffixstringFilter Early Day Motions by UIN combined with amendment suffix.Early Day Motions with an UINWithAmendmentSuffix provided.
parameters.searchTermFilterable via the APIParameters.search termstringFilter Early Day Motions whose title contains this search term.Early Day Motions where the title includes the search term provided.
parameters.currentStatusDateStartFilterable via the APIParameters.current status date startstring (date-time)Filter to motions whose current status was set on or after this date.Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD.
parameters.currentStatusDateEndFilterable via the APIParameters.current status date endstring (date-time)Filter to motions whose current status was set on or before this date.Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD.
parameters.isPrayerFilterable via the APIParameters.is prayerbooleanFilter to motions that are a prayer against a Negative Statutory Instrument.Early Day Motions which are a prayer against a Negative Statutory Instrument.
parameters.memberIdFilterable via the APIParameters.member idinteger (int32)Filter to motions tabled by the specified Member.Return Early Day Motions tabled by Member with ID provided.
parameters.includeSponsoredByMemberFilterable via the APIParameters.include sponsored by memberbooleanWhether to include motions sponsored, not just tabled, by the Member.Include Early Day Motions sponsored by Member specified
parameters.tabledStartDateFilterable via the APIParameters.tabled start datestring (date-time)Filter to motions tabled on or after this date.Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD.
parameters.tabledEndDateFilterable via the APIParameters.tabled end datestring (date-time)Filter to motions tabled on or before this date.Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD.
parameters.statusesFilterable via the APIarrayFilter to motions whose current status is in this list.Early Day Motions where current status is in the selected list.
parameters.orderByFilterable via the APIParameters.order bystringField to sort results by: date tabled, title, or signature count.Order results by date tabled, title or signature count. Default is date tabled.
parameters.skipFilterable via the APIinteger (int32)Number of records to skip before returning results.The number of records to skip from the first, default is 0.
parameters.takeFilterable via the APIinteger (int32)Maximum number of records to return.The number of records to return, default is 25, maximum is 100.
parameters.answeringDateStartFilterable via the APIParameters.answering date startstring (date-time)Filter Oral Questions with an answering date on or after this date.Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.
parameters.answeringDateEndFilterable via the APIParameters.answering date endstring (date-time)Filter Oral Questions with an answering date on or before this date.Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.
parameters.questionTypeFilterable via the APIParameters.question typestringFilter Oral Questions by type: substantive or topical.Oral Questions where the question type is the selected type, substantive or topical.
parameters.oralQuestionTimeIdFilterable via the APIParameters.oral question time idinteger (int32)Filter Oral Questions belonging to a specific question time.Oral Questions where the question is within the question time with the ID provided
parameters.askingMemberIdsFilterable via the APIParameters.asking member idsarrayFilter questions by the IDs of the asking Members.The ID of the member asking the question. Lists of member IDs for each house are available <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/query/house=Commons" target="_blank">Commons</a> and <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/qu
parameters.uINsFilterable via the APIParameters.u insarrayFilter by Unique Identifying Number(s) of the question.The UIN for the question - note that UINs reset at the start of each Parliamentary session.
parameters.answeringBodyIdsFilterable via the APIParameters.answering body idsarrayFilter by the IDs of the government bodies expected to answer.Which answering body is to respond. A list of answering bodies can be found <a target="_blank" href="http://data.parliament.uk/membersdataplatform/services/mnis/referencedata/AnsweringBodies/">here</a>.
parameters.deadlineDateStartFilterable via the APIParameters.deadline date startstring (date-time)Filter Oral Question Times with a deadline on or after this date.Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD.
parameters.deadlineDateEndFilterable via the APIParameters.deadline date endstring (date-time)Filter Oral Question Times with a deadline on or before this date.Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD.
PagingInfoApiResponse[PublishedEarlyDayMotionDetails]objectPagination and result-count metadata for the response.Pagination and result-count metadata for the response.
StatusCodeApiResponse[PublishedEarlyDayMotionDetails]stringHTTP-style status code of the API response.HTTP-style status code of the API response.
SuccessApiResponse[PublishedEarlyDayMotionDetails]booleanIndicates whether the API request succeeded.Indicates whether the API request succeeded.
ErrorsApiResponse[PublishedEarlyDayMotionDetails]array<string>List of error messages returned with the response.List of error messages returned with the response.
ResponseApiResponse[PublishedEarlyDayMotionDetails]objectMain data payload returned by the API call.Main data payload returned by the API call.
SkipPagingInfointeger (int32)Number of records skipped in this page of results.Number of records skipped in this page of results.
TakePagingInfointeger (int32)Number of records requested per page.Number of records requested per page.
TotalPagingInfointeger (int32)Total number of matching records for the current filter.Total number of matching records for the current filter.
GlobalTotalPagingInfointeger (int32)Total number of records across all filters, unfiltered.Total number of records across all filters, unfiltered.
StatusCountsPagingInfoarray<object>Counts of matching records grouped by status.Counts of matching records grouped by status.
GlobalStatusCountsPagingInfoarray<object>Counts of all records grouped by status, ignoring filters.Counts of all records grouped by status, ignoring filters.
SponsorsPublishedEarlyDayMotionDetailsarray<object>List of Members sponsoring the Early Day Motion.List of Members sponsoring the Early Day Motion.
AmendmentsPublishedEarlyDayMotionDetailsarray<object>List of amendments tabled against the Early Day Motion.List of amendments tabled against the Early Day Motion.
IdPublishedEarlyDayMotionDetailsinteger (int32)Unique identifier of the Early Day Motion.Unique identifier of the Early Day Motion.
StatusPublishedEarlyDayMotionDetailsstringCurrent status of the Early Day Motion.Current status of the Early Day Motion.
StatusDatePublishedEarlyDayMotionDetailsstring (date-time)Date the current status was set.Date the current status was set.
MemberIdPublishedEarlyDayMotionDetailsinteger (int32)ID of the Member who tabled the motion.ID of the Member who tabled the motion.
PrimarySponsorPublishedEarlyDayMotionDetailsobjectDetails of the Member who is the primary sponsor.Details of the Member who is the primary sponsor.
TitlePublishedEarlyDayMotionDetailsstringTitle of the Early Day Motion.Title of the Early Day Motion.
MotionTextPublishedEarlyDayMotionDetailsstringFull text of the Early Day Motion.Full text of the Early Day Motion.
AmendmentToMotionIdPublishedEarlyDayMotionDetailsinteger (int32)ID of the motion this amendment applies to, if any.ID of the motion this amendment applies to, if any.
UINPublishedEarlyDayMotionDetailsinteger (int32)Unique Identifying Number of the motion.Unique Identifying Number of the motion.
AmendmentSuffixPublishedEarlyDayMotionDetailsstringSuffix letter identifying an amendment to the motion.Suffix letter identifying an amendment to the motion.
DateTabledPublishedEarlyDayMotionDetailsstring (date-time)Date the motion was tabled.Date the motion was tabled.
PrayingAgainstNegativeStatutoryInstrumentIdPublishedEarlyDayMotionDetailsinteger (int32)ID of the Negative Statutory Instrument the motion prays against.ID of the Negative Statutory Instrument the motion prays against.
StatutoryInstrumentNumberPublishedEarlyDayMotionDetailsinteger (int32)Number of the related Statutory Instrument.Number of the related Statutory Instrument.
StatutoryInstrumentYearPublishedEarlyDayMotionDetailsstringYear of the related Statutory Instrument.Year of the related Statutory Instrument.
StatutoryInstrumentTitlePublishedEarlyDayMotionDetailsstringTitle of the related Statutory Instrument.Title of the related Statutory Instrument.
UINWithAmendmentSuffixPublishedEarlyDayMotionDetailsstringMotion's UIN combined with its amendment suffix.Motion's UIN combined with its amendment suffix.
SponsorsCountPublishedEarlyDayMotionDetailsinteger (int32)Number of Members sponsoring the motion.Number of Members sponsoring the motion.
StatusIdStatusCountinteger (int32)Identifier of a specific motion status.Identifier of a specific motion status.
CountStatusCountinteger (int32)Number of motions with this status.Number of motions with this status.
MemberPublishedEarlyDayMotionSponsorobjectDetails of the Member who is sponsoring the motion.Details of the Member who is sponsoring the motion.
SponsoringOrderPublishedEarlyDayMotionSponsorinteger (int32)Order in which the sponsor added their name.Order in which the sponsor added their name.
CreatedWhenPublishedEarlyDayMotionSponsorstring (date-time)Date and time the sponsorship record was created.Date and time the sponsorship record was created.
IsWithdrawnPublishedEarlyDayMotionSponsorbooleanWhether the sponsor has withdrawn their support.Whether the sponsor has withdrawn their support.
WithdrawnDatePublishedEarlyDayMotionSponsorstring (date-time)Date the sponsor withdrew their support.Date the sponsor withdrew their support.
MnisIdMemberForDateinteger (int32)Member's ID in the Members Names Information Service.Member's ID in the Members Names Information Service.
PimsIdMemberForDateinteger (int32)Member's ID in the Parliamentary Information Management System.Member's ID in the Parliamentary Information Management System.
NameMemberForDatestringFull name of the Member.Full name of the Member.
ListAsMemberForDatestringName used to list the Member alphabetically.Name used to list the Member alphabetically.
ConstituencyMemberForDatestringConstituency represented by the Member.Constituency represented by the Member.
PartyMemberForDatestringPolitical party of the Member.Political party of the Member.
PartyIdMemberForDateinteger (int32)Identifier of the Member's political party.Identifier of the Member's political party.
PartyColourMemberForDatestringColour associated with the Member's party.Colour associated with the Member's party.
PhotoUrlMemberForDatestringURL of the Member's photograph.URL of the Member's photograph.
QuestionTypePublishedWrittenQuestionstringType of the written question, e.g. named day or ordinary.Type of the written question, e.g. named day or ordinary.
QuestionTextPublishedWrittenQuestionstringFull text of the written question.Full text of the written question.
AnsweringBodyIdPublishedWrittenQuestioninteger (int32)ID of the government body expected to answer.ID of the government body expected to answer.
AnsweringBodyPublishedWrittenQuestionstringName of the government body expected to answer.Name of the government body expected to answer.
DueForAnswerPublishedWrittenQuestionstring (date-time)Date by which the question is due to be answered.Date by which the question is due to be answered.
AnsweredWhenPublishedWrittenQuestionstring (date-time)Date the question was answered.Date the question was answered.
TabledWhenPublishedWrittenQuestionstring (date-time)Date the question was tabled.Date the question was tabled.
AskingMemberPublishedWrittenQuestionobjectDetails of the Member who asked the question.Details of the Member who asked the question.
AnsweringMinisterPublishedWrittenQuestionobjectDetails of the minister who answered the question.Details of the minister who answered the question.
AnswerPublishedWrittenQuestionstringFull text of the answer given.Full text of the answer given.
AnsweringMinisterTitlePublishedWrittenQuestionstringTitle of the minister who gave the answer.Title of the minister who gave the answer.
AskingMemberIdPublishedWrittenQuestioninteger (int32)ID of the Member who asked the question.ID of the Member who asked the question.
AnsweringMinisterIdPublishedWrittenQuestioninteger (int32)ID of the minister who answered the question.ID of the minister who answered the question.
EdmIdsPublishedEarlyDayMotionQueryParametersarray<integer (int32)>List of Early Day Motion IDs to filter by.Early Day Motions with an ID in the list provided.
SearchTermPublishedEarlyDayMotionQueryParametersstringSearch term to match within motion titles.Early Day Motions where the title includes the search term provided.
CurrentStatusDateStartPublishedEarlyDayMotionQueryParametersstring (date-time)Start date for filtering by current status date.Early Day Motions where the current status has been set on or after the date provided. Date format YYYY-MM-DD.
CurrentStatusDateEndPublishedEarlyDayMotionQueryParametersstring (date-time)End date for filtering by current status date.Early Day Motions where the current status has been set on or before the date provided. Date format YYYY-MM-DD.
IsPrayerPublishedEarlyDayMotionQueryParametersbooleanWhether to filter for motions praying against a Negative Statutory Instrument.Early Day Motions which are a prayer against a Negative Statutory Instrument.
IncludeSponsoredByMemberPublishedEarlyDayMotionQueryParametersbooleanWhether to include motions sponsored by the given Member.Include Early Day Motions sponsored by Member specified
TabledStartDatePublishedEarlyDayMotionQueryParametersstring (date-time)Start date for filtering by date tabled.Early Day Motions where the date tabled is on or after the date provided. Date format YYYY-MM-DD.
TabledEndDatePublishedEarlyDayMotionQueryParametersstring (date-time)End date for filtering by date tabled.Early Day Motions where the date tabled is on or before the date provided. Date format YYYY-MM-DD.
StatusesPublishedEarlyDayMotionQueryParametersarray<string>List of statuses to filter motions by.Early Day Motions where current status is in the selected list.
OrderByPublishedEarlyDayMotionQueryParametersstringField used to sort the returned motions.Order results by date tabled, title or signature count. Default is date tabled.
AnsweringDateStartPublishedOralQuestionQueryParametersstring (date-time)Start date for filtering Oral Questions by answering date.Oral Questions where the answering date has been set on or after the date provided. Date format YYYY-MM-DD.
AnsweringDateEndPublishedOralQuestionQueryParametersstring (date-time)End date for filtering Oral Questions by answering date.Oral Questions where the answering date has been set on or before the date provided. Date format YYYY-MM-DD.
OralQuestionTimeIdPublishedOralQuestionQueryParametersinteger (int32)ID of the question time to filter Oral Questions by.Oral Questions where the question is within the question time with the ID provided
AskingMemberIdsPublishedOralQuestionQueryParametersarray<integer (int32)>List of Member IDs to filter questions by asker.The ID of the member asking the question. Lists of member IDs for each house are available <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/query/house=Commons" target="_blank">Commons</a> and <a href="http://data.parliament.uk/membersdataplatform/services/mnis/members/qu
UINsPublishedOralQuestionQueryParametersarray<integer (int32)>List of Unique Identifying Numbers to filter questions by.The UIN for the question - note that UINs reset at the start of each Parliamentary session.
AnsweringBodyIdsPublishedOralQuestionQueryParametersarray<integer (int32)>List of answering body IDs to filter questions by.Which answering body is to respond. A list of answering bodies can be found <a target="_blank" href="http://data.parliament.uk/membersdataplatform/services/mnis/referencedata/AnsweringBodies/">here</a>.
NumberPublishedOralQuestioninteger (int32)Order number of the oral question in its session.Order number of the oral question in its session.
RemovedFromToBeAskedWhenPublishedOralQuestionstring (date-time)Date the question was removed from the list to be asked.Date the question was removed from the list to be asked.
DeclarableInterestDetailPublishedOralQuestionstringDetails of a declarable interest relevant to the question.Details of a declarable interest relevant to the question.
HansardLinkPublishedOralQuestionstringLink to the Hansard record of the question.Link to the Hansard record of the question.
AnsweringWhenPublishedOralQuestionstring (date-time)Date and time the question was or will be answered.Date and time the question was or will be answered.
DeadlineDateStartPublishedOralQuestionTimeQueryParametersstring (date-time)Start date for filtering Oral Question Times by deadline.Oral Questions Time where the deadline date has been set on or after the date provided. Date format YYYY-MM-DD.
DeadlineDateEndPublishedOralQuestionTimeQueryParametersstring (date-time)End date for filtering Oral Question Times by deadline.Oral Questions Time where the deadline date has been set on or before the date provided. Date format YYYY-MM-DD.
DeadlineWhenPublishedOralQuestionTimestring (date-time)Deadline date and time for tabling questions for this slot.Deadline date and time for tabling questions for this slot.
SubstantiveTimePublishedOralQuestionTimestringScheduled time for substantive oral questions.Scheduled time for substantive oral questions.
TopicalTimePublishedOralQuestionTimestringScheduled time for topical oral questions.Scheduled time for topical oral questions.
AnsweringBodyNamesPublishedOralQuestionTimestringNames of the government bodies answering in this question time.Names of the government bodies answering in this question time.
AnsweringMinisterTitlesPublishedOralQuestionTimestringTitles of the ministers answering in this question time.Titles of the ministers answering in this question time.

Schema captured from openapi 20 days ago.

Verification Status

Using the API

Configuration

Base URL
https://oralquestionsandmotions-api.parliament.uk
Version
v1
Format
openapi
Endpoints
4

Try the API

GET/EarlyDayMotion/{id}

Returns a single Early Day Motion by ID

GET/EarlyDayMotions/list

Returns a list of Early Day Motions

GET/oralquestions/list

Returns a list of oral questions

GET/oralquestiontimes/list

Returns a list of oral question times

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

Endpoints (4)

/EarlyDayMotion1 endpoint
GET
/EarlyDayMotion/{id}

Returns a single Early Day Motion by ID

/EarlyDayMotions1 endpoint
GET
/EarlyDayMotions/list

Returns a list of Early Day Motions

/oralquestions1 endpoint
GET
/oralquestions/list

Returns a list of oral questions

/oralquestiontimes1 endpoint
GET
/oralquestiontimes/list

Returns a list of oral question times

Query examples

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

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

Machine-readable & source

House of Commons Oral and Written Questions API — live verification badge

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