UK Postcode Data API — Coordinates, LSOA, Ward & LPA Codes
Instant postcode lookups via REST API. Pass any GB postcode and receive latitude/longitude, LSOA, MSOA, ward, local authority district, county, and Local Planning Authority codes — sourced from the ONS postcode directory. Used by PropTech platforms, conveyancers, and developers enriching address data with geographic context.
What's in the API
Coordinates
Latitude and longitude for every live GB postcode. Accurate to postcode centroid — suitable for map display, radius search, and distance calculations.
LSOA & MSOA codes
ONS census geography codes for joining to census data, deprivation indices, and other statistical datasets at small-area level.
Local authority & LPA codes
Local authority district and Local Planning Authority codes for joining to planning, council tax, and school catchment data.
Ward & constituency
Electoral ward and parliamentary constituency codes. Updated following boundary changes.
Sample response
{
"postcode": "BS8 4ES",
"latitude": 51.4545,
"longitude": -2.6019,
"lsoa_code": "E01014763",
"msoa_code": "E02003050",
"ward_code": "E05010907",
"local_authority": "Bristol, City of",
"local_authority_code": "E06000023",
"lpa_code": "E60000113",
"county": "Bristol, City of",
"country": "England",
"status": "live"
}
Pricing
Free
£0
100 calls/mo
Starter
£49
2,000 calls/mo
Growth
£149
10,000 calls/mo
Pro
£349
50,000 calls/mo
FAQ
Does the API cover terminated postcodes?
The default response covers live postcodes only. Pass include_terminated=true to include terminated postcodes — useful for historical data enrichment.
How often is the postcode directory updated?
We update from the ONS postcode directory quarterly, following each ONSPD release. New postcodes typically appear within two weeks of the release date.
Is Scotland included?
Yes — the API covers England, Wales, and Scotland. Northern Ireland postcode coordinates are included but some statistical codes (LSOA) differ in structure.