TheyWorkForYou
Menu
API
UK Parliament
Scottish Parliament
Northern Ireland Assembly
Senedd / Welsh Parliament
London Assembly
Search TheyWorkForYou
Search
Sign in
Join
Contact
TheyWorkForYou API
Plan and keys
Your plan and key are tied to your TheyWorkForYou account, so if you don’t yet have one, please
sign up
, then return here to get a key.
Sign in
(or
sign up
) to get an API key.
API Functions
getQuota
Return your current quota usage/limit (does not use up quota)
getConstituency
Searches for a UK Parliament constituency and returns details
getConstituencies
Returns list of UK Parliament constituencies
getPerson
Returns main details for a person
getMP
Returns main details for an MP
getMPInfo
Returns extra information for a person
getMPsInfo
Returns extra information for one or more people
getMPs
Returns list of MPs
getLord
Returns details for a Lord
getLords
Returns list of Lords
getMLA
Returns details for an MLA
getMLAs
Returns list of MLAs
getMSP
Returns details for an MSP
getMSPs
Returns list of MSPs
getGeometry
Returns centre, bounding box of UK Parliament constituencies
getBoundary
Returns boundary polygon of UK Parliament constituency
getCommittee
Returns members of Select Committee
getDebates
Returns Debates (either Commons, Westminster Hall, or Lords)
getWrans
Returns Written Answers
getWMS
Returns Written Ministerial Statements
getHansard
Returns any of the above
getComments
Returns comments
convertURL
Converts a parliament.uk Hansard URL into a TheyWorkForYou one, if possible