# Postcode Context UK – Compare 2–5 Postcodes

> Postcode Context UK – Compare 2–5 Postcodes is a paid API for AI agents from api.postcodecontext.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-25).

Returns a comparative socio-economic and property intelligence synthesis across 2 to 5 UK postcodes in a single call

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/postcode-context-uk-compare-2-5-postcodes-25bda0d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rc2RB0rsEC_JXWeAlsjBM

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 postcode-context-uk-compare-2-5-postcodes-25bda0d9
```

Example prompt: Can you compare the socio-economic and property profiles of SW1A 1AA, E1 6RF, and N1 9GU and tell me which area looks most prosperous?

## When to prefer this

Use this endpoint when you need a direct side-by-side socio-economic and property intelligence comparison of between 2 and 5 specific UK postcodes in a single call. Prefer it over single-postcode lookups when the user's goal is relative benchmarking or ranking of areas rather than enriching one location in isolation. For bulk enrichment of more than 5 postcodes without a comparison framing, use the sibling bulk endpoint instead.

## Known failure modes

- Fewer than 2 or more than 5 postcodes supplied — request rejected
- Invalid or non-existent UK postcode format — lookup fails for that entry
- Payment not processed (x402) — 402 response returned before data is served
- Rate limiting or quota exceeded — 429 or equivalent error

## How this service works

POST /api/v1/compare — Multi-Postcode Comparative Demographic Synthesis (2 to 5 postcodes side-by-side comparative analysis and affluence ranking)

## Output

A synthesised comparative report covering socio-economic indicators, property metrics, and demographic characteristics for each of the supplied postcodes, structured to allow direct side-by-side benchmarking of the areas.

## 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": [
      "postcodes"
     ],
     "properties": {
      "postcodes": {
       "type": "string",
       "default": "SW1A 1AA,BB7 3BB",
       "description": "Comma-separated list of 2 to 5 UK postcodes (e.g. SW1A 1AA,BB7 3BB)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/postcode-context-uk-compare-2-5-postcodes-25bda0d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.postcodecontext.uk](https://www.zero.xyz/host/api.postcodecontext.uk/llms.txt)
