fourzerotwo
← UK Postcodes
geo by fourzerotwo

Postcode lookup

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

Postcode lookup

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

price
$0.002 / call
free tier
free allowance
MCP tool
uk-postcodes__lookup
method
GET

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

ParamTypeDescription
postcode string UK postcode, e.g. "SW1A 1AA"
# unpaid: returns 402 with the price
curl -i "https://fourzerotwo.si/v1/uk-postcodes/lookup?postcode=SW1A%201AA"
# free tier: 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"

Use it from an AI agent (MCP)

Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.

{
  "mcpServers": {
    "fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
  }
}
# the call the agent makes
call_api {"tool": "uk-postcodes__lookup", "arguments": {"postcode":"SW1A 1AA"}}

More from UK Postcodes

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.