TheyWorkForYou API
getMSs function

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

Fetch a list of MSs.

Arguments

date (optional)
Fetch the list of MSs as it was on this date.
party (optional)
Fetch the list of MSs from the given party.
search (optional)
Fetch the list of MSs that match this search string in their name.

Example Response, serialised PHP

a:646:{
    i:0; a:5:{
        s:9:"member_id"; s:4:"1368";
        s:9:"person_id"; s:5:"10900";
        s:4:"name"; s:13:"Hywel Francis";
        s:5:"party"; s:6:"Labour";
        s:12:"constituency"; s:8:"Aberavon";
    }
    i:1; ...

Explorer

Try out this function without writing any code!

date:
party:
search:
Output: