Phone Validate

FREE
By neutrinoapi
Updated 4 months ago
Tools
8.7/10
Popularity Score
663ms
Latency
63%
Success Rate

Phone Validate API Documentation

Parse, validate and get location information about a phone number. Use this API to validate local and international phone numbers. You can determine what kind of number this is (e.g. fixed line or mobile), the location of the number and also reformat the number into local and international dialing formats.

View API Details
POSTPhone Validate
POSTPhone Validate
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
numberSTRING
REQUIREDPhone number
Optional Parameters
country-codeSTRING
OPTIONALISO 2-letter country code, assume numbers are based in this country. If not set numbers are assumed to be in international format (with or without the leading + sign)
Code Snippet
unirest.post("https://neutrinoapi-phone-validate.p.rapidapi.com/phone-validate")
.header("X-RapidAPI-Host", "neutrinoapi-phone-validate.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("country-code=GB")
.send("number=+447522123456")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://neutrinoapi-phone-validate.p.rapidapi.com/phone-validate
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://neutrinoapi-phone-validate.p.rapidapi.com/phone-validate")
.header("X-RapidAPI-Host", "neutrinoapi-phone-validate.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("country-code=GB")
.send("number=+447522123456")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication