Postcodes.io
Free UK postcode lookup and geolocation, no key
Hand it a UK postcode and get back coordinates, ward, district, constituency, and administrative geography as JSON. Open source and free, with reverse-geocoding and autocomplete endpoints alongside the basic lookup.
GET https://api.postcodes.io/postcodes/SW1A1AA
{
"status": 200,
"result": {
"postcode": "SW1A 1AA",
"country": "England",
"longitude": -0.141563,
"latitude": 51.50101,
"region": "London",
"admin_district": "Westminster",
"parliamentary_constituency": "Cities of London and Westminster"
}
}curl "https://api.postcodes.io/postcodes/SW1A1AA"const res = await fetch("https://api.postcodes.io/postcodes/SW1A1AA");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.postcodes.io/postcodes/SW1A1AA")
print(res.json())/postcodes/SW1A1AAPROBEDFree UK postcode lookup and geolocation, no key
/postcodesPostcodes — documented GET route.
/postcodes/1Postcodes details by ID (example: 1).
/postcodes?limit=10Postcodes — documented GET route.
/postcodes/search?q=testSearch by query parameters.
/postcodes/{postcode}Lookup Postcode
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Postcodes.io: common questions
Is Postcodes.io free to use?
Yes — Postcodes.io is a free geo & maps API. Free tier: Free — no key required. Whether the free tier allows commercial use is unclear — check the provider docs.
Does Postcodes.io need an API key?
No — Postcodes.io needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished (no key; fair use)).
Can I call Postcodes.io from the browser?
Yes — Postcodes.io returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is Postcodes.io up right now?
As of our last scheduled check, Postcodes.io is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.