# UK Postcode Validate

> UK Postcode Validate is a paid API for AI agents from postcode.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Validates a UK postcode and returns its active status, normalized form, and format correctness

## Facts

- Endpoint: POST https://postcode.payapi.market/lookup/validate?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/uk-postcode-validate-b5ae134f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zcwMzNKeu1z9PlfeXciRR

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 uk-postcode-validate-b5ae134f -d '<json body>'
```

Example prompt: Can you check whether 'SW1A 1AA' is a valid and active UK postcode, and give me the normalized version?

## When to prefer this

Use this endpoint when you need to confirm that a UK postcode both has a valid format and is currently active — not just syntactically correct. Prefer this over a regex-only check when you need authoritative active/inactive status from a live data source. Ideal for form validation pipelines, address enrichment flows, or data quality gates on UK address data.

## Known failure modes

- Missing or empty postcode field returns a validation error
- Non-UK postcode formats (e.g. US ZIP codes) will fail format validation
- Postcodes that are correctly formatted but no longer in use will return active: false
- Malformed JSON input may return a 400-level error
- Payment failure via x402 protocol will block the request from being processed

## How this service works

UK postcode lookup, search, validation and autocomplete with x402 payments.

## Output

A JSON object containing the input postcode, its normalized form (no spaces, uppercase), a boolean indicating whether it is active, whether the format is valid, and the postcode type (e.g. 'active').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "postcode": {
   "type": "string",
   "description": "UK postcode to validate; spacing and case are normalised, e.g. 'SW1A 1AA'."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "active",
  "input": "SW1A 1AA",
  "active": true,
  "normalized": "SW1A1AA",
  "valid_format": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-postcode-validate-b5ae134f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from postcode.payapi.market](https://www.zero.xyz/host/postcode.payapi.market/llms.txt)
