# UK Open Data – Postcode Lookup

> UK Open Data – Postcode Lookup is a paid API for AI agents from uk-open-data.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-05).

Look up a UK postcode to retrieve coordinates, council, ward, constituency, region, police force area, and termination status.

## Facts

- Endpoint: GET https://uk-open-data.x402tookit.com/postcode-lookup?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-open-data-postcode-lookup-e0760585
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-YrfRO2HR4MT57O74SQXL

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 uk-open-data-postcode-lookup-e0760585
```

Example prompt: Can you look up the postcode EC1A 1BB and tell me its coordinates, which council and ward it's in, what parliamentary constituency it belongs to, and which police force covers it?

## When to prefer this

Choose this endpoint when you need authoritative UK postcode resolution including coordinates, administrative boundaries (ward, district, constituency), police force area, and active/terminated status — all in a single call. Prefer it over generic geocoding APIs when UK-specific administrative data (council, ward, police force) is required alongside coordinates.

## Known failure modes

- Invalid or malformed postcode format returns an error or null postcodeInfo
- Terminated postcode is returned with a termination flag rather than an error — agent must check the 'terminated' field
- Non-UK postcodes are not supported
- Network or payment failure results in no response
- Postcode not found in database returns null fields

## How this service works

Look up a UK postcode: coordinates, council, ward, constituency, region and police force area; flags terminated postcodes.

## Output

Returns a postcodeInfo object containing latitude, longitude, eastings, northings, outcode, incode, ward, district, county, region, country, constituency, parish, LSOA, police force area, a quality score, the date the postcode was introduced, and whether it has been terminated. Also includes a verdict/summary and any degraded-data flags.

## 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": {
      "postcode": {
       "type": "string",
       "description": "UK postcode with or without the space, e.g. EC1A 1BB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "postcodeInfo": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "lat": {
         "type": [
          "null",
          "number"
         ]
        },
        "lon": {
         "type": [
          "null",
          "number"
         ]
        },
        "lsoa": {
         "type": [
          "null",
          "string"
         ]
        },
        "ward": {
         "type": [
          "null",
          "string"
         ]
        },
        "county": {},
        "incode": {
         "type": [
          "null",
          "string"
         ]
        },
        "parish": {
         "type": [
          "null",
          "string"
         ]
        },
        "region": {
         "type": [
          "null",
          "string"
         ]
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-open-data-postcode-lookup-e0760585/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uk-open-data.x402tookit.com](https://www.zero.xyz/host/uk-open-data.x402tookit.com/llms.txt)
