# Postcode Context UK - Outward District Summary (Outcode)

> Postcode Context UK - Outward District Summary (Outcode) 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, broadband, and AI affluence data for a UK outward postal district code (e.g. SW1A, M1)

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/outcode/%7Boutcode%7D?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-outcode-e71f7762
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TOCk_koOUg2-_GG8N4IT3

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-outcode-e71f7762
```

Example prompt: Give me a full socio-economic and property market briefing for the BB7 postcode district — I want demographics, deprivation decile, median house prices, broadband quality, and the AI affluence score.

## When to prefer this

Choose this endpoint when you need district-level (outcode) aggregated intelligence across multiple data sources (demographics, deprivation, property, broadband, energy) for a UK area in a single call. Prefer this over the single-postcode endpoint when you want a broader area summary rather than granular sector-level data, or when you want district medians for property pricing and want the pre-synthesised AI affluence score for LLM context injection.

## Known failure modes

- Invalid or malformed outcode returns a 400 or empty results array
- Non-existent outcode with no data returns empty results
- Payment not completed via x402/RapidAPI returns 402 Payment Required
- Rate limiting or gateway errors return 429 or 503
- Outcodes covering very small areas may have suppressed census data due to ONS disclosure control

## 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 aggregated data for the requested outcode, including: ONS Census 2021 demographic breakdowns, Index of Multiple Deprivation 2019 decile, HM Land Registry median property transaction prices, Open EPC energy performance ratings distribution, Ofcom broadband connectivity metrics, and a pre-synthesised AI affluence score with a dense natural-language context briefing suitable for LLM context windows.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "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-outcode-e71f7762/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)
