Postcode & Geolocation API for the UK

Free, Open Source and based solely on Open Data

github

Open Source

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

map

Regularly Updated

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

cmd

Convenient Methods

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

API Endpoint & Methods

Lookup a postcode

GET api.postcodes.io/postcodes/Request

Bulk lookup postcodes

POSTapi.postcodes.io/postcodesRequest

Get nearest postcodes for a given longitude & latitude

GETapi.postcodes.io/postcodes/lon//lat/Request

Bulk Reverse Geocoding

POSTapi.postcodes.io/postcodesRequest

Get a random postcode

GET api.postcodes.io/random/postcodesRequest

Validate a postcode

GET api.postcodes.io/postcodes//validateRequest

Autocomplete a postcode partial

GETapi.postcodes.io/postcodes//autocompleteRequest

Query for postcode

GETapi.postcodes.io/postcodes?q=Request

Lookup Outward Code

GETapi.postcodes.io/outcodes/Request