Public APIs
Postcodes.io favicon

Postcodes.io

Geocoding

Postcode lookup & Geolocation for the UK.

Postcodes.io's website screenshot

About Postcodes.io

Postcodes.io is an open-source API for validating, searching, and geolocating UK postcodes. It provides administrative and geospatial data tied to postcodes, including region and boundary details, and supports methods such as postcode validation, nearest-postcode lookup, outward code lookup, autocomplete, and bulk reverse geocoding of latitude/longitude coordinates into nearest postcode areas. Data is updated with information from Ordnance Survey and the Office for National Statistics as it becomes available.

The project is MIT licensed and maintained on GitHub, where it can be forked, self-hosted, or contributed to. It is aimed at developers building applications that need UK postcode lookup and geocoding functionality.

For applications requiring broader coverage across the whole UK and its territories, international datasets, rooftop geocodes, UPRNs, property-level precision, daily data updates from Royal Mail and other providers, or dedicated support, the page points to a related paid service, Ideal Postcodes.

Key features

  • UK postcode search, validation, and geolocation
  • Bulk reverse geocoding of lat/long coordinates into nearest postcodes
  • Retrieve geographical and demographic data (region, boundary, administrative details) for a postcode
  • Autocomplete and outward code lookup
  • Open source, MIT licensed, self-hostable

Frequently asked questions

Is Postcodes.io free to use?

Yes, Postcodes.io is described as a free and reliable tool for UK postcode lookup and geocoding.

Is the source code available?

Yes, it is open source under the MIT license and maintained on GitHub, where it can be forked or self-hosted.

How current is the postcode data?

It is regularly updated with the latest data from Ordnance Survey and the Office for National Statistics when it becomes available.

What if I need more coverage or support than Postcodes.io offers?

Ideal Postcodes, from the same maintainers, offers whole-UK and international datasets, rooftop geocodes, UPRNs, daily updates, and dedicated support for high-demand applications.

What kind of API methods does it provide?

It offers convenient methods such as postcode validation, bulk reverse geocoding, and autocomplete.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product