# Postcode Context UK - Outward District Summary API

> Postcode Context UK - Outward District Summary API is a paid API for AI agents from api.postcodecontext.uk, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Returns district-wide demographic, deprivation, property price, EPC, and broadband data for a UK outward postal district (outcode)

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/outcode?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/postcode-context-uk-outward-district-summary-api-91869d86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sfS3AwW1nOtwKG30-YGrr

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-outward-district-summary-api-91869d86
```

Example prompt: Can you pull up the full socio-economic profile for the BB7 postal district — I want to see demographics, deprivation decile, typical property prices, and broadband connectivity for that outcode.

## When to prefer this

Use this endpoint when you need district-level (outcode) aggregate statistics rather than a single postcode's profile. It is ideal for area comparison, investment screening, or demographic research where broad district-level trends matter more than granular per-postcode data. It covers all major UK data sources (ONS, IMD, Land Registry, EPC, Ofcom) in one call, saving multiple lookups. Prefer the /api/v1/postcode/:postcode endpoint when you need full detail for a specific postcode rather than a district summary.

## Known failure modes

- Invalid or malformed outcode returns a 400 error
- Outcode not found in dataset returns empty results array
- Missing required outcode query parameter returns validation error
- Payment failure or insufficient USDC balance returns 402
- Rate limiting may occur under high load on edge nodes

## How this service works

High-performance, 100% stateless UK postcode context API and Remote MCP Server running on Cloudflare Workers edge nodes. Combines ONS Census 2021 demographics, Index of Multiple Deprivation (IMD 2019) deciles, HM Land Registry transaction records, Open EPC Register ratings, and Ofcom broadband connectivity under OGL v3.0. Features pre-synthesised AI affluence scores and dense context window briefings. Fully monetised natively via x402 v2 (USDC on Base Mainnet) and RapidAPI Gateway.

## Output

A JSON object containing district-wide aggregate data for the requested outcode: ONS Census 2021 demographic breakdowns, Index of Multiple Deprivation decile, median and recent HM Land Registry property transaction prices, Open EPC energy rating distributions, Ofcom broadband speed/availability data, and an AI-synthesised affluence score with a dense contextual narrative briefing.

## 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": [
      "outcode"
     ],
     "properties": {
      "outcode": {
       "type": "string",
       "default": "BB7",
       "description": "Outward postal district code (e.g. BB7, SW1A, M1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/postcode-context-uk-outward-district-summary-api-91869d86/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)
