# UK Postcode Address Lookup

> UK Postcode Address Lookup is a paid API for AI agents from postcode-api-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Search UK postcodes by free-text address or place name query, returning up to 100 matching postcode records.

## Facts

- Endpoint: POST https://postcode-api-production.up.railway.app/lookup/address
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-postcode-address-lookup-06250aa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_APVZN9gUpesr1XJ1ovZsE

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-postcode-address-lookup-06250aa3 -d '<json body>'
```

Example prompt: Can you find me all UK postcodes matching 'Baker Street London' — return up to 20 results?

## When to prefer this

Use this endpoint when you need to resolve a free-text address or place name into one or more UK postcodes — especially when the input is a partial or informal address rather than an exact postcode. Prefer this over the autocomplete endpoint when you want semantic address-to-postcode matching rather than partial postcode completion, and over the radius/coordinates endpoint when you have address text rather than lat/lng coordinates.

## Known failure modes

- No results returned if query is too vague or matches no known address
- Limit parameter ignored or clamped if outside 1-100 range
- Payment failure (402) if x402 payment header is missing or insufficient
- Query matches too many results and returns only top N by relevance
- Malformed query string returns empty result set or error
- Service unavailable on Railway hosting platform causing 5xx errors

## How this service works

Search UK postcodes by free-text address or place query; returns up to 100 matching postcode records.

## Output

A list of up to 100 UK postcode records that match the free-text address or place query, containing postcode strings and associated geographic or administrative data for each match.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of matching postcodes to return (1-100, default 10)."
  },
  "query": {
   "type": "string",
   "description": "Free-text address or place query to match against UK postcodes."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-postcode-address-lookup-06250aa3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from postcode-api-production.up.railway.app](https://www.zero.xyz/host/postcode-api-production.up.railway.app/llms.txt)
