Open Data API

AdvocacyAPI

A free JSON API mapping every UK postcode to its elected representatives — from MPs to local councillors — with contact details, party affiliations, and area data.

0
Postcodes
0
Areas
0
Datasets
0
Representatives
0.0% with email

How it works

Send a postcode, get back every elected representative for that location — grouped by area type. Each representative includes name, party, email, and other contact details where available.

GET /api/postcodes/:postcode

Returns areas, representatives, deprivation indices, area classification, and 15+ statistical datasets covering census, crime, health, housing, environment, and more.

Representative sources

Statistical datasets

Each postcode response includes neighbourhood-level data attached via ONS geography codes (LSOA, MSOA, constituency, local authority). All data comes from official open sources.

Most datasets cover England or England & Wales. See full data documentation for vintage dates, update frequency, and known limitations.

What's included per representative

Name, area, source, party affiliation, and a metadata object containing email, phone, photo URL, and social media links where available.