# 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 comprehensive socio-economic profile for a single UK postcode, including ONS Census 2021 demographics, IMD deprivation deciles, Land Registry property prices, EPC energy ratings, Ofcom broadband data, and AI-generated affluence scores.

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/postcode?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-182d6074
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__sHWlOVkeWlrqM1p-gBSK

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-182d6074
```

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

## When to prefer this

Choose this endpoint when you need a rich, multi-dimensional socio-economic profile for a single UK postcode in one call, especially when you need ONS demographics, IMD deprivation, property prices, EPC ratings, and broadband data combined with an AI-generated affluence score and LLM-ready context briefing. Prefer it over generic postcode-to-coordinates lookups or single-dataset sources when depth and AI-readiness matter. Use the batch or compare endpoints for multiple postcodes.

## Known failure modes

- Invalid or non-existent postcode returns an error or empty results array
- Scottish/Northern Irish postcodes outside ONS Census 2021 scope may return partial data
- Missing or malformed 'postcode' query parameter causes a 400-level error
- Payment failure via x402/RapidAPI gateway blocks the request
- Rate limiting or upstream data source outage may cause 5xx errors

## 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 object (or flat/CSV if requested) containing: ONS Census 2021 demographic breakdowns, Index of Multiple Deprivation 2019 decile, HM Land Registry property transaction records, Open EPC energy performance ratings, Ofcom broadband speed/coverage metrics, and a pre-synthesised AI affluence score with a dense natural-language context briefing suitable for use in an LLM context window.

## 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": [
      "postcode"
     ],
     "properties": {
      "view": {
       "enum": [
        "full",
        "brief",
        "summary",
        "property",
        "demographics"
       ],
       "type": "string",
       "default": "full"
      },
      "format": {
       "enum": [
        "json",
        "flat",
        "csv"
       ],
       "type": "string",
       "default": "json"
      },
      "postcode": {
       "type": "string",
       "default": "SW1A 1AA",
       "description": "Great Britain postcode (e.g. SW1A 1AA, BB7 3BB)"
      }
     }
    }
   },
   "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-182d6074/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)
