TheyWorkForYou API
getWMS function

https://www.theyworkforyou.com/api/getWMS

Fetch Written Ministerial Statements.

Arguments

Note you can only supply one of the following search terms at present. If you wish to search multiple things (e.g. date plus person), use the search parameter, and supply query arguments.

date
Fetch the written ministerial statements for this date.
search
Fetch the written ministerial statements that contain this term.
department
Fetch the written ministerial statements by a particular department.
person
Fetch the written ministerial statements by a particular person ID.
gid
Fetch the written ministerial statement(s) that matches this GID.
order (optional, when using search or person)
d for date ordering, r for relevance ordering.
page (optional, when using search or person)
Page of results to return.
num (optional, when using search or person)
Number of results to return.

Example Response

<twfy>
    ...
    <match>
        <entry>
            <epobject_id>10465207</epobject_id>
            <htype>10</htype>
            <gid>2005-10-27a.13WS.0</gid>
            <hpos>4</hpos>
            <section_id>0</section_id>
            <subsection_id>0</subsection_id>
            <hdate>2005-10-27</hdate>
            <htime></htime>
            <source_url>http://www.publications.parliament.uk/pa/cm200506/cmhansrd/cm051027/wmstext/51027m01.htm#51027m01.html_dpthd0</source_url>
            <major>4</major>
            <body>Deputy Prime Minister</body>
        </entry>
        <subs>
            <arr2>
                <epobject_id>10465208</epobject_id>
                <htype>11</htype>
                <gid>2005-10-27a.13WS.1</gid>
                <hpos>5</hpos>
                <section_id>10465207</section_id>
                <subsection_id>0</subsection_id>
                <hdate>2005-10-27</hdate>
                <htime></htime>
                <source_url>http://www.publications.parliament.uk/pa/cm200506/cmhansrd/cm051027/wmstext/51027m01.htm#51027m01.html_sbhd0</source_url>
                <major>4</major>
                <body>Disabled Facilities Grant</body>
                <excerpt>...</excerpt>
                <listurl>/wms/?id=2005-10-27a.13WS.1</listurl>
                <commentsurl>/wms/?id=2005-10-27a.13WS.1</commentsurl>
                <totalcomments>0</totalcomments>
                <comment></comment>
            </arr2>
            <arr2>
                <epobject_id>10465210</epobject_id>
                <htype>11</htype>
                <gid>2005-10-27a.14WS.0</gid>
                <hpos>7</hpos>
                <section_id>10465207</section_id>
                <subsection_id>0</subsection_id>
                <hdate>2005-10-27</hdate>
                <htime></htime>
                <source_url>http://www.publications.parliament.uk/pa/cm200506/cmhansrd/cm051027/wmstext/51027m01.htm#51027m01.html_sbhd1</source_url>
                <major>4</major>
                <body>Planning Regulations (Antennas, including Satellite Dishes)</body>
                <excerpt>...</excerpt>
                <listurl>/wms/?id=2005-10-27a.14WS.0</listurl>
                <commentsurl>/wms/?id=2005-10-27a.14WS.0</commentsurl>
                <totalcomments>0</totalcomments>
                <comment></comment>
            </arr2>
        </subs>
    </match>
    ...

Explorer

Try out this function without writing any code!

date:
search:
person:
gid:
year:
order:
page:
num:
Output: