402fourzerotwo
← Catalog
geo by fourzerotwo

UK Postcodes

Postcode lookups backed by postcodes.io and ONS open data.

Postcode lookup

$0.002 / call

GET https://fourzerotwo.si/v1/uk-postcodes/lookup

Full ONS record for one UK postcode, including latitude/longitude and administrative areas.

MCP tool: uk-postcodes__lookup

ParamTypeDescription
postcode string UK postcode, e.g. "SW1A 1AA"
{
    "status": 200,
    "result": {
        "postcode": "SW1A 1AA",
        "latitude": 51.501009,
        "longitude": -0.141588,
        "admin_district": "Westminster"
    }
}
# unpaid: returns 402 with the price
curl -i "https://fourzerotwo.si/v1/uk-postcodes/lookup?postcode=SW1A+1AA"

Nearest postcodes

$0.002 / call

GET https://fourzerotwo.si/v1/uk-postcodes/nearest

Postcodes nearest to a given UK postcode.

MCP tool: uk-postcodes__nearest

ParamTypeDescription
postcode string UK postcode
limit? integer Max results (default 10)
{
    "status": 200,
    "result": [
        {
            "postcode": "SW1A 1AA",
            "distance": 0
        }
    ]
}
# unpaid: returns 402 with the price
curl -i "https://fourzerotwo.si/v1/uk-postcodes/nearest?postcode=SW1A+1AA"

Contains OS data © Crown copyright and database right; Royal Mail data © Royal Mail copyright and database right; ONS data licensed under the Open Government Licence v3.0. Served via postcodes.io.