# Postcodes.io

Category: [Location Information](https://free-web-services.com/web-services/geo/location-info/)  
Page: https://free-web-services.com/web-services/geo/location-info/postcodes-io.html  
Documentation: https://postcodes.io/

Postcodes.io is a free and open source API for UK postcodes, based on open data from the Office for National Statistics and Ordnance Survey. Look up and validate postcodes, get their coordinates and administrative areas (district, ward, constituency), find the nearest postcodes to a point, and autocomplete partial postcodes. Bulk lookups are supported. Responses are JSON and no key is needed.

- API key: Not needed
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: postcodes.io
- Last checked: Working on November 16th, 2026

Example request:

```sh
curl 'https://api.postcodes.io/postcodes/SW1A1AA'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

