This API validates postal codes within UK.
The UK Postcode Validator is an API hosted on ApyHub that checks whether a given UK postcode exists in its lookup table. It accepts a postcode string in the request body and returns a single boolean field, data, set to true or false, with no additional address enrichment or parsing. Matching ignores spaces, so postcodes can be submitted without prior normalization.
The API exposes one POST endpoint and is versioned at 1.0.0. Requests require an apy-token header and a JSON body containing the postcode parameter; responses are a simple JSON object with the data boolean.
It is intended for use as a fast existence check before storing, routing, or comparing UK address data, such as in signup forms, address capture flows, CRM imports, and checkout validation.
It returns a JSON object with a single boolean field called data, which is true when the postcode exists in the lookup table and false otherwise.
No, spaces are ignored for matching, so postcodes can be sent as-is without normalisation.
Requests are authenticated using an apy-token header containing your API key.
It can return 400 for missing or malformed parameters, 401 for missing or invalid API keys, 429 for rate limiting, and 503 when the backend is temporarily unavailable.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Content validator against profanity & obscenity.
Enter address data quickly with real-time address suggestions.
Extract postal addresses from any text including emails.
Validate and append data for any US postal address.
VAT Number Validation & Lookup REST API.
Verify academic credentials — search 912K+ schools, detect diploma mills worldwide.