TheyWorkForYou API
getPerson function

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

Fetch a particular person.

Arguments

id
If you know the person ID for the member you want (returned from getMPs or elsewhere), this will return data for that person. This will return all database entries for this person, so will include previous elections, party changes, etc.

Explorer

Try out this function without writing any code!

id:
Output: