# Agent Tools UK – UK Postcode Lookup

> Agent Tools UK – UK Postcode Lookup is a paid API for AI agents from agent-tools-production-e6aa.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Looks up a UK postcode and returns its latitude/longitude, local council, county, ward, parish, parliamentary constituency, region, and country from official ONS data.

## Facts

- Endpoint: GET https://agent-tools-production-e6aa.up.railway.app/v1/uk-postcode/:postcode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-uk-uk-postcode-lookup-4c34a3c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7crCOmeHJQrbi0lk6G3vD

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 agent-tools-uk-uk-postcode-lookup-4c34a3c1
```

Example prompt: Can you look up the postcode SW1A 2AA and tell me its latitude and longitude, which council and parliamentary constituency it belongs to?

## When to prefer this

Use this endpoint when you need to geocode, validate, or look up administrative and political boundaries for a UK postcode using authoritative ONS data. Prefer it over generic geocoding APIs when you specifically need UK council, ward, parish, or parliamentary constituency data alongside coordinates — data that general-purpose geocoders typically omit.

## Known failure modes

- 400 Bad Request – postcode string is in an invalid format (e.g. too long, non-alphanumeric characters)
- 404 Not Found – postcode format is valid but does not exist in the ONS database (e.g. fictional or decommissioned postcode)
- Network timeout if the upstream service is unreachable

## How this service works

Look up any UK postcode and get latitude/longitude, local council, county, ward, parish, parliamentary constituency, region and country, from official ONS data. Use when you need to place a UK address on a map, work out which council or MP covers it, or check a postcode is real. Spaces optional. Errors: 400 invalid format, 404 postcode not found.

## Output

Returns a JSON object with the postcode's geographic coordinates (latitude, longitude), administrative data (local council, county, ward, parish), political data (parliamentary constituency), and regional data (region, country) sourced from official ONS records. Returns a 400 error for invalid format or a 404 error if the postcode is not found.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "description": "UK postcode, e.g. SW1A1AA"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/agent-tools-uk-uk-postcode-lookup-4c34a3c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools-production-e6aa.up.railway.app](https://www.zero.xyz/host/agent-tools-production-e6aa.up.railway.app/llms.txt)
