TheyWorkForYou API
getConstituency function

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

Fetch a UK Parliament constituency.

Arguments

name
Fetch the data associated to the constituency with this name.
postcode
Fetch the constituency with associated information for a given postcode.

Example Response

{ "name" : "Manchester, Gorton" }

Explorer

Try out this function without writing any code!

name:
postcode:
Output: