We’re celebrating National Democracy Week! Find out more

TheyWorkForYou API
getMLAs function

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

Fetch a list of MLAs.

Arguments

date (optional)
Fetch the list of MLAs as it was on this date.
party (optional)
Fetch the list of MLAs from the given party.
search (optional)
Fetch the list of MLAs 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: