Cookie

Cookie consent

We use some essential cookies to make this website work. We'd like to set additional cookies to help us measure your experience when you view and interact with the website.

Cookie policy

Sample code for email validation

This page provides sample code to help you set up Postcoder email validation.

You'll need an API key to make these examples work. Not got an API key? Sign up for a free trial.

Create an email address checker with JavaScript

This JavaScript example is designed to help you add Postcoder email validation to your website, without the need to write your own code from scratch. It uses the email endpoint to check whether an email address is valid and capable of receiving email.

Implement email validation in other languages

These examples show how to make a request to the email endpoint to validate an email address.