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 mobile validation

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

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

You'll also need to enable this feature on your API key using the Features page.

Create a mobile phone number checker with JavaScript

This JavaScript example is designed to help you add Postcoder mobile validation to your website, without the need to write your own code from scratch. It uses the mobile endpoint to check whether a mobile phone number is valid and capable of receiving calls and texts.

Implement mobile validation in other languages

These examples show how to make a request to the mobile endpoint to validate a mobile phone number.