# UK Postcode Lookup

> UK Postcode Lookup is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns geographic and administrative data for a UK postcode, including ward, region, country, district, constituency, and coordinates.

## Facts

- Endpoint: GET https://pennydatahq.com/api/postcode/%7Bpostcode%7D?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-postcode-lookup-12f3c00a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eOmd704OV4vovPiQCDs4X

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-lookup-12f3c00a
```

Example prompt: What ward, constituency, region, and coordinates are associated with the UK postcode SW1A 1AA?

## When to prefer this

Choose this endpoint when you need structured administrative and geographic data for a UK postcode without setting up an account or API key, and you're willing to pay $0.002 USDC per call via x402 on Base. It is ideal for agents that need ad-hoc postcode enrichment without a subscription.

## Known failure modes

- Invalid or malformed postcode returns an error response
- Postcode not found in the dataset returns a 404 or empty result
- Payment failure via x402/USDC results in a 402 response and no data returned
- Non-UK postcodes are not supported

## How this service works

Penny Data: pay-per-call data for AI agents. UK Company Lookup, UK Postcode Lookup, UK Company Filing History, LEI Lookup, GB Carbon Intensity, ECB Euro Reference Rate, UK Food Hygiene Ratings, US Company Filings by CIK, Country Profile, US Weather Alerts, UK Company Brief and Australian Company Lookup, as JSON, paid per call in USDC on Base with x402. No API key or account.

## Output

A JSON object with the postcode, ward name, region, country, district, constituency, latitude, and longitude for the given UK postcode.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ward": "St James's",
  "region": "London",
  "country": "England",
  "district": "Westminster",
  "latitude": 51.50101,
  "postcode": "SW1A 1AA",
  "longitude": -0.141563,
  "constituency": "Cities of London and Westminster"
 }
}
```

## More

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