# 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-10-25).

Returns a comprehensive socio-economic profile for a single UK postcode including ONS Census 2021 demographics, IMD 2019 deprivation deciles, Land Registry prices, £/sqm values, EPC ratings, and broadband speeds.

## Facts

- Endpoint: GET https://api.postcodecontext.uk/api/v1/postcode/:postcode?utm_source=zero.xyz
- Price: $0.005/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-single-postcode-socio-economic-profile-88794fe2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_elMnY6IL0wbcRPYJU7k2r

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-88794fe2
```

Example prompt: Can you pull up the full socio-economic profile for postcode SW1A 2AA — I want to see the deprivation decile, census demographics, average house prices, £/sqm, EPC ratings, and broadband speeds for that area?

## When to prefer this

Use this endpoint when you need a deep, multi-dimensional socio-economic snapshot of a specific UK postcode in a single call, combining property prices, deprivation indices, census demographics, energy ratings, and broadband in one response. Prefer it over generic postcode-to-coordinates lookups or simple address validators when the goal is neighbourhood intelligence, property analysis, or social research. For bulk enrichment of many postcodes at once, prefer the batch endpoint.

## Known failure modes

- Invalid or malformed postcode returns a 400 or 404 error
- Postcode exists but has no associated data (e.g. very new or non-residential postcodes) may return empty or partial fields
- Network timeout or service unavailability returns 5xx
- Payment failure via x402 protocol blocks the request

## How this service works

GET /api/v1/postcode/:postcode — Single UK Postcode Socio-Economic Profile (ONS Census 2021 demographics, IMD 2019 deciles, Land Registry prices, £/sqm, EPC ratings, broadband speeds)

## Output

A structured socio-economic profile for the queried UK postcode, including ONS Census 2021 demographic breakdowns, Index of Multiple Deprivation (IMD) 2019 decile score, Land Registry sale prices, price-per-square-metre figures, Energy Performance Certificate (EPC) ratings, and broadband speed data.

## 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": "UK postcode (e.g. SW1A 1AA, BB7 3BB)"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "view": {
       "enum": [
        "full",
        "summary",
        "property",
        "demographics"
       ],
       "type": "string",
       "default": "full",
       "description": "Slice target view: full, summary (~80 tokens), 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/postcode-context-uk-single-postcode-socio-economic-profile-88794fe2/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)
