# Postcode Context UK - Single Postcode Socio-Economic Profile

> Postcode Context UK - Single Postcode Socio-Economic Profile 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 a rich socio-economic profile for a UK postcode, combining ONS Census 2021 demographics, IMD deprivation deciles, Land Registry property prices, EPC energy ratings, broadband speeds, and an AI-generated affluence score.

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/postcode/%7Bpostcode%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-single-postcode-socio-economic-profile-aea3aa3b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LpiGk1x0-3pTE0wB2LzIG

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-single-postcode-socio-economic-profile-aea3aa3b
```

Example prompt: Can you pull the full socio-economic profile for postcode SW1A 1AA — I want demographics, deprivation decile, property prices, and the affluence score?

## When to prefer this

Choose this endpoint when you need a single, comprehensive socio-economic snapshot of a UK postcode that combines multiple official datasets (demographics, deprivation, property, energy, broadband) in one call with a pre-computed affluence score. Prefer over raw ONS or Land Registry APIs when you want pre-synthesised, AI-ready context without stitching multiple data sources yourself. Use the 'summary' view to minimise token usage in LLM context windows. Best suited for property intelligence, customer segmentation, risk assessment, or any UK location-enrichment workflow.

## Known failure modes

- Invalid or malformed postcode returns a 400 error or empty results
- Scottish or Northern Irish postcodes outside ONS coverage may return partial data
- Payment not settled via x402 or RapidAPI returns a 402 Payment Required response
- Rate limiting or quota exceeded returns a 429 response
- Network or Cloudflare edge node failure returns a 5xx error

## 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 structured JSON (or flat/CSV) object containing: ONS Census 2021 demographic breakdowns, Index of Multiple Deprivation 2019 decile, HM Land Registry recent property transaction records, Open EPC energy performance ratings, Ofcom broadband speed data, a pre-computed AI affluence score, and a dense natural-language context briefing suitable for AI context windows. Response depth is controlled by the 'view' parameter (full, summary, property, or demographics).

## 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": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "default": "SW1A1AA",
       "description": "Great Britain postcode (e.g. SW1A 1AA, BB7 3BB)"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "view": {
       "enum": [
        "full",
        "brief",
        "summary",
        "property",
        "demographics"
       ],
       "type": "string",
       "default": "full",
       "description": "Slice target view: full, brief (~80 tokens), summary, property, or demographics"
      },
      "format": {
       "enum": [
        "json",
        "flat",
        "csv"
       ],
       "type": "string",
       "default": "json"
      }
     }
    }
   },
   "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-single-postcode-socio-economic-profile-aea3aa3b/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)
