WrittenStatements

Returns a list of written statements

Changed on
get/api/writtenstatements/statements

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/writtenstatements/statements
  • Auth
    none declared

Query parameters

madeWhenFromstring date-time

Written statements made on or after the date specified. Date format yyyy-mm-dd

madeWhenTostring date-time

Written statements made on or before the date specified. Date format yyyy-mm-dd

sessionStatus'Current' | 'Any'

The Session status for which the Written statements 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

expandMemberboolean

Expand the details of Members in the results

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