# Postcodes.io (UK) API

> Postcodes.io (UK) API on Apizie: 4 endpoints (Look up a postcode, Validate a postcode, Nearest postcodes, Autocomplete) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/places:postcodes-io/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `places:postcodes-io`
- Category: Places
- Status: live
- Source: https://postcodes.io
- Page: https://zieapi.vercel.app/api/places/postcodes-io
- OpenAPI: https://zieapi.vercel.app/api/places/postcodes-io/openapi.json

Free UK postcode lookup, validation, nearest postcodes and reverse geocoding (Open Government Licence data).

## Endpoints

### Look up a postcode
`GET https://zieapi.vercel.app/v1/places:postcodes-io/lookup`

| Parameter | Type | Required | Description |
|---|---|---|---|
| postcode | string | yes |  |

### Validate a postcode
`GET https://zieapi.vercel.app/v1/places:postcodes-io/validate`

| Parameter | Type | Required | Description |
|---|---|---|---|
| postcode | string | yes |  |

### Nearest postcodes
`GET https://zieapi.vercel.app/v1/places:postcodes-io/reverse`

| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | number | yes |  |
| lon | number | yes |  |
| limit | integer | no | Number of results |

### Autocomplete
`GET https://zieapi.vercel.app/v1/places:postcodes-io/autocomplete`

| Parameter | Type | Required | Description |
|---|---|---|---|
| partial | string | yes |  |
| limit | integer | no | Number of results |

## Example
```
curl "https://zieapi.vercel.app/v1/places:postcodes-io/lookup" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Postcodes.io (UK) API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/places:postcodes-io/lookup with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Postcodes.io (UK) API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Postcodes.io (UK) API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key places:postcodes-io.

### What is the status of the Postcodes.io (UK) API?
Live: works with just an Apizie key
