fourzerotwo
← Catalog
geo by fourzerotwo

UK Postcodes

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

cost
Free every endpoint, within the daily allowance
after that
from $0.001 / call · card or USDC
endpoints
8

No signup needed over MCP: 100 free calls a day, or 500 with a free key.

Postcode lookup Free

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

cost
Free then $0.002 / call
MCP tool
uk-postcodes__lookup
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
postcode string UK postcode, e.g. "SW1A 1AA"
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/lookup?postcode=SW1A%201AA"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/lookup?postcode=SW1A%201AA"

by fourzerotwo

Report this endpoint

Nearest postcodes Free

Postcodes nearest to a given UK postcode.

cost
Free then $0.002 / call
MCP tool
uk-postcodes__nearest
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
postcode string UK postcode
limit? integer Max results (default 10)
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/nearest?postcode=SW1A%201AA"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/nearest?postcode=SW1A%201AA"

by fourzerotwo

Report this endpoint

Reverse geocode Free

Nearest postcodes to a latitude/longitude.

cost
Free then $0.002 / call
MCP tool
uk-postcodes__reverse
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
lat string Latitude
lon string Longitude
limit? integer Max results
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/reverse?lat=51.501&lon=-0.1416"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/reverse?lat=51.501&lon=-0.1416"

by fourzerotwo

Report this endpoint

Validate postcode Free

Whether a string is a valid, live UK postcode.

cost
Free then $0.001 / call
MCP tool
uk-postcodes__validate
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
postcode string UK postcode
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/validate?postcode=SW1A%201AA"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/validate?postcode=SW1A%201AA"

by fourzerotwo

Report this endpoint

Postcode autocomplete Free

Complete a partial UK postcode.

cost
Free then $0.001 / call
MCP tool
uk-postcodes__autocomplete
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.001 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
postcode string Partial postcode
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/autocomplete?postcode=SW1A%201"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/autocomplete?postcode=SW1A%201"

by fourzerotwo

Report this endpoint

Outward code Free

Centroid and administrative areas for a postcode district (outward code), e.g. "SW1A".

cost
Free then $0.002 / call
MCP tool
uk-postcodes__outcode
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
outcode string Outward code
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/outcode?outcode=SW1A"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/outcode?outcode=SW1A"

by fourzerotwo

Report this endpoint

Terminated postcode Free

When a retired UK postcode was terminated, and where it was.

cost
Free then $0.002 / call
MCP tool
uk-postcodes__terminated
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
postcode string Retired postcode
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/terminated?postcode=CT9%201AA"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/terminated?postcode=CT9%201AA"

by fourzerotwo

Report this endpoint

Place search Free

Search UK places (towns, villages, suburbs) by name.

cost
Free then $0.002 / call
MCP tool
uk-postcodes__places
method
GET

Free up to 100 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card

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

ParamTypeDescription
q string Place name
limit? integer Max results
# free: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-postcodes/places?q=Margate"

# no key: returns 402 with the price, for x402 agents
curl -i "https://fourzerotwo.si/v1/uk-postcodes/places?q=Margate"

by fourzerotwo

Report this endpoint

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.