---
title: Validate UK Postcodes API
slug: validate-uk-postcode
url: https://apyverse.com/apyhub/service/validate-uk-postcode
provider: ApyHub
categories: [Data Validation]
tags: [postcode-validation, uk-postcodes, address-validation, data-validation, postal-code]
auth: api_key
---

# Validate UK Postcodes API

Validate a UK postcode by sending a postcode string. Returns a boolean data field for address checks, form validation, and delivery filtering.

## Endpoints

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

## About

## What it does
UK Postcode Validator checks whether a UK postcode exists in its lookup table. Send a `postcode` string in the request body, and get back a boolean `data` value indicating `true` or `false`.

Use it when you need a fast yes/no validation step before storing customer addresses, cleaning sign-up forms, or rejecting malformed delivery data. The service ignores spaces when matching, so `YO17 6DU` and `YO176DU` are treated the same for lookup.

UK Postcode Validator is intentionally narrow: it does one thing and returns one field. That makes it easy to slot into address forms, checkout flows, CRM imports, and backend validation rules without extra parsing.

If you only need to confirm whether a postcode is present in the reference table, this endpoint gives you a simple boolean result that is easy to branch on in application code.

## Usage

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