Please Note: This article is provided for your convenience and to make it easy to implement based on our limited experience and testing.  Ideally, you should work with your developer.  Our standard free support does not extend to custom scripts and coding.

Postcodes.io is a postcode & geolocation API for the UK

  • Free, Open Source and based solely on Open Data
  • allows UK postcode data to be queried over a JSON HTTP API.
  • is a free postcode lookup API and geocoder for the UK.
  • does not require any authentication.
  • https://postcodes.io/

Postcode Lookup

  • This uniquely identifies a postcode.
  • Returns a single postcode entity for a given postcode (case, space insensitive).
  • If no postcode is found it returns “404” response code.
  • https://postcodes.io/docs
  • Method = GET
  • URL = https://api.postcodes.io/postcodes/{postcode}

Video tutorial: