fourzerotwo
← Validators
tools by fourzerotwo

UK postcode format

Validate and normalise UK postcode format; split outward/inward codes.

UK postcode format

Validate and normalise UK postcode format; split outward/inward codes.

price
$0.0005 / call
free tier
free allowance
MCP tool
validators__uk-postcode
method
GET

GET https://fourzerotwo.si/v1/validators/uk-postcode

ParamTypeDescription
postcode string Postcode
# unpaid: returns 402 with the price
curl -i "https://fourzerotwo.si/v1/validators/uk-postcode?postcode=sw1a1aa"
# free tier: send a free key from https://fourzerotwo.si/free
curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/validators/uk-postcode?postcode=sw1a1aa"

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": "validators__uk-postcode", "arguments": {"postcode":"sw1a1aa"}}

More from Validators

  • IMEI check digit — Validate an IMEI (length + Luhn) and split TAC, serial and check digit.
  • VIN check — VIN format, check digit, WMI and model-year candidates.
  • IBAN check — IBAN mod-97 checksum and country length; UK sort code extracted.
  • UK phone number — Classify a UK number (mobile, landline, freephone, premium…) and format as E.164.
  • Email check — Email syntax, whether the domain accepts mail, disposable and role-account flags.

Validation by fourzerotwo.