# UK Postcode Autocomplete

> UK Postcode Autocomplete 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).

Autocompletes a partial UK postcode string into a list of full postcode suggestions

## Facts

- Endpoint: POST https://postcode-api-production.up.railway.app/lookup/autocomplete
- 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-autocomplete-56ed039a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZgpE035gxQyXSrF2GNg_Q

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-autocomplete-56ed039a -d '<json body>'
```

Example prompt: Can you autocomplete the partial UK postcode 'SW1A' and give me up to 20 full postcode suggestions?

## When to prefer this

Use this endpoint when you need real-time postcode typeahead or autocomplete functionality — for example, powering a UI dropdown as a user types, or programmatically expanding a known partial postcode prefix into candidate full postcodes. Prefer this over the free-text address search sibling when you already have a partial postcode (not a place name or street address) and want clean, structured postcode-only results.

## Known failure modes

- Empty or missing 'partial' field returns an error or empty results
- Limit outside 1-100 range is rejected
- Non-UK postcode format prefix may return no suggestions
- Network or service unavailability returns a 5xx error
- Payment failure via x402 prevents the response from being returned

## How this service works

Autocomplete a partial UK postcode into a list of full postcode suggestions.

## Output

Returns a list of full UK postcode strings that match the supplied partial prefix, up to the requested limit (default 10, max 100). Each suggestion is a complete, valid UK postcode derived from the partial input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum number of suggestions to return (1-100, default 10)."
  },
  "partial": {
   "type": "string",
   "description": "Partial UK postcode to autocomplete, e.g. 'SW1A'."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-postcode-autocomplete-56ed039a/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)
