---
title: Validate UK Postcodes API
slug: validate-uk-postcode
url: https://apyhub.com/apyhub/service/validate-uk-postcode
provider: ApyHub
categories: [Data Validation, Standard Data]
auth: api_key
---

# Validate UK Postcodes API

Validate a UK postcode from a request body and get a boolean result. Useful for screening address data before storage, routing, or checkout.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/validate/postcodes/uk` | What it does Validates a UK postcode by accepting a postcode string in the request body and returni… | 10 |

## About

## What it does
Validate UK postcodes with a single boolean response. Send a `postcode` in the request body, and `UK Postcode Validator` returns `data: true` when the postcode exists in its lookup table.

Use it when you need a fast gate before storing, routing, or comparing UK address data. It ignores spaces for matching, so you can pass values like `YO17 6DU` without normalising them first.

The response is intentionally simple: you get one field, `data`, set to `true` or `false`. That makes it easy to plug into signup forms, address capture flows, CRM imports, and checkout validation where you only need to know whether the postcode is recognised.

If your workflow depends on clean UK postcode data, this endpoint gives you a direct existence check without extra enrichment or address parsing.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/validate-uk-postcode
