# UK Open Data – Outcode Lookup

> UK Open Data – Outcode 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).

Returns centre coordinates, administrative districts, wards, parishes, and constituencies for a given UK outward postal code (outcode).

## Facts

- Endpoint: GET https://uk-open-data.x402tookit.com/outcode-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-outcode-lookup-bcda6dc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YU65oCBkDL5qUnc9GPk38

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-outcode-lookup-bcda6dc7
```

Example prompt: What wards, districts, and constituencies are covered by the EC1A outcode, and what are its centre coordinates?

## When to prefer this

Use this endpoint when you need administrative boundary data (wards, parishes, constituencies, districts) for a UK outward postal code rather than a full postcode. It is more appropriate than a full postcode lookup when you only have the outward portion of a postcode and need to enumerate all the administrative areas it spans. Prefer the full postcode endpoint when you have a complete postcode and need precise single-point data.

## Known failure modes

- Invalid or unrecognised outcode returns null fields or an error verdict
- Outcode exists but has no associated administrative data — partial/degraded response with degraded:true
- Missing required 'outcode' query parameter returns a validation error
- Network timeout or upstream data source unavailability

## How this service works

Look up a UK outcode (e.g. EC1A, SW1A, M1): centre coordinates, districts, wards, parishes and constituencies it covers.

## Output

A JSON object containing the outcode itself, centre latitude and longitude, and arrays of administrative entities (districts, wards, parishes, constituencies, counties, countries) that the outcode spans, plus metadata such as data source, 'as of' date, disclaimer, and a degraded flag indicating if the response is partial.

## 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": [
      "outcode"
     ],
     "properties": {
      "outcode": {
       "type": "string",
       "description": "Outward code, e.g. EC1A, W1A, M1, B33, CR2, DN55"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "lat": {
       "type": [
        "null",
        "number"
       ]
      },
      "lon": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "wards": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "outcode": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "counties": {
       "type": [
        "array",
        "null"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "parishes": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "countries": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "districts": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-open-data-outcode-lookup-bcda6dc7/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)
