WrittenQuestions

Returns a list of written questions

Changed on
get/api/writtenquestions/questions

Request

  • Base URL
    https://questions-statements-api.parliament.uk (the document declares no server; this is the origin it was published from)
  • URL
    https://questions-statements-api.parliament.uk/api/writtenquestions/questions
  • Auth
    none declared

Query parameters

askingMemberIdinteger

Written questions asked by member with member ID specified

answeringMemberIdinteger

Written questions answered by member with member ID specified

tabledWhenFromstring date-time

Written questions tabled on or after the date specified. Date format yyyy-mm-dd

dateForAnswerWhenFromstring date-time

Written questions DateForAnswer on or after the date specified format yyyy-mm-dd

dateForAnswerWhenTostring date-time

Written questions DateForAnswer on or before the date specified format yyyy-mm-dd

tabledWhenTostring date-time

Written questions tabled on or before the date specified. Date format yyyy-mm-dd

answered'Any' | 'Answered' | 'Unanswered'

Written questions that have been answered, unanswered or either.

answeredWhenFromstring date-time

Written questions answered on or after the date specified. Date format yyyy-mm-dd

answeredWhenTostring date-time

Written questions answered on or before the date specified. Date format yyyy-mm-dd

questionStatus'NotAnswered' | 'AnsweredOnly' | 'AllQuestions'

Written questions with the status specified

includeWithdrawnboolean

Include written questions that have been withdrawn

expandMemberboolean

Expand the details of Members in the results

correctedWhenFromstring date-time

Written questions corrected on or after the date specified. Date format yyyy-mm-dd

correctedWhenTostring date-time

Written questions corrected on or before the date specified. Date format yyyy-mm-dd

sessionStatus'Current' | 'Any'

The Session status for which the Questions data will be returned

includeTotalResultsboolean

Whether to return the total number of matching results. Defaults to true.

searchTermstring

Written questions / statements containing the search term specified, searches item content

uINstring

Written questions / statements with the uin specified

answeringBodiesinteger[]

Written questions / statements relating to the answering bodies with the IDs specified

membersinteger[]

Written questions / statements relating to the members with the IDs specified

house'Bicameral' | 'Commons' | 'Lords'

Written questions / statements relating to the House specified

skipinteger

Number of records to skip, default is 0

takeinteger

Number of records to take, default is 20

Response

Success

totalResultsinteger nullable

Total number of results matching the query

Changes

    • breaking

      the response property became nullable for the status (media type: text/plain)

    • breaking

      the response property became nullable for the status (media type: application/json)

    • breaking

      the response property became nullable for the status (media type: text/json)

    • info

      added the new optional query request parameter includeTotalResults