Postcode & Geolocation API for the UK

Free, Open Source and based solely on Open Data

An Ideal Postcodes open source project

Open Source

MIT licensed. Maintained and freely available on GitHub. Fork it, make a contribution or even set up your own

Updated with ONSPD data

Regularly Updated

Updated with the latest data from Ordnance Survey and Office for National Statistics when it becomes available

Postcode lookup

Convenient Methods

Simple, useful and self-explanatory API methods like bulk reverse geocoding, autocomplete and validation

API Endpoint & Methods

Lookup a postcode

Bulk lookup postcodes

Get nearest postcodes for a given longitude & latitude

Bulk Reverse Geocoding

Get a random postcode

Validate a postcode

Nearest postcodes for postcode

Autocomplete a postcode partial

Query for postcode

Lookup terminated postcode

Lookup Outward Code

Nearest outward code for outward code

Get nearest outward codes for a given longitude & latitude