# Verify UK Postcode Validator

> Verify UK Postcode Validator is a paid API for AI agents from verify-uk.verifyuk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Validates a UK postcode, checks if it exists, and returns geographic and administrative data including coordinates and region.

## Facts

- Endpoint: GET https://verify-uk.verifyuk.workers.dev/v1/validate/postcode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/verify-uk-postcode-validator-4667ad4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pu_zIGx8y2lfrWtsbH5-v

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability verify-uk-postcode-validator-4667ad4a
```

Example prompt: Can you check whether the postcode E1 8DE is valid and tell me what region and borough it belongs to?

## When to prefer this

Use this endpoint when you need to validate, normalise, or geocode a UK postcode in a pay-per-use model with no account setup. It is ideal for agents handling UK address data, form validation, or delivery logistics where you need both format correctness and real-world existence confirmed against official UK data. Prefer it over heavyweight address APIs when you only need postcode-level data and want micro-payment billing via USDC with no subscription.

## Known failure modes

- Missing postcode query parameter returns a 400 or validation error
- Non-UK or nonsensical string returns valid:false and exists:false
- Payment not provided or insufficient USDC returns 402 Payment Required
- Postcode format is valid but postcode has been retired/discontinued — may return exists:false
- Network timeout on the Cloudflare Worker edge node

## How this service works

Pay-per-call UK verification tools for AI agents: validators, business checks and website trust checks from official UK public data. Pay with USDC via x402 - no account, no API key.

## Output

Returns a JSON object indicating whether the postcode is validly formatted (valid), whether it actually exists in official UK data (exists), the normalised postcode string, the region name, latitude and longitude coordinates, and the admin district (local authority).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "description": "UK postcode, any spacing/case"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "exists": true,
  "region": "London",
  "latitude": 51.51,
  "longitude": -0.07,
  "normalised": "E1 8DE",
  "admin_district": "Tower Hamlets"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/verify-uk-postcode-validator-4667ad4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from verify-uk.verifyuk.workers.dev](https://www.zero.xyz/host/verify-uk.verifyuk.workers.dev/llms.txt)
