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
Pay as you go
100 tokens = £1
most calls 1 token
£50 a month
5,500 tokens a month
+10% bonus
£250 a month
30,000 tokens a month
+20% bonus
£500 a month
67,500 tokens a month
+35% bonus
Top up any amount from £10 and get exactly the tokens you pay for. Add tokens monthly instead and earn bonus tokens: 10% on any monthly amount, up to 75% from £2,500 a month. Change the amount or stop any time; unused tokens roll over.
See full pricing →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.
Contains OS data © Crown copyright and database right 2026. Contains Royal Mail data © Royal Mail copyright and database right 2026. Contains National Statistics data © Crown copyright and database right 2026. Licensed under the Open Government Licence v3.0.