RapidAPI logo

Sign Up

Log In

Nexmo Number Insight

PAID
By nexmoOfficial
Updated 3 months ago
Communication
6.2/10
Popularity Score
1162ms
Latency
93%
Success Rate

Nexmo Number Insight API Documentation

The smart way to get real-time intelligence on numbers anywhere in the world and protect yourself from fraud and spam.

View API Details
Basic
POSTNumber Insight Basic
Standard
POSTNumber Insight Standard
Advanced
POSTNumber Insight Advanced
POSTNumber Insight Basic

You can use Nexmo's Number Insight Basic API to retrieve local and international representations of a phone number by doing semantic checks on the number you submit. This can help you normalise and consistently print numbers in your user interface and gives you information to help you decide if a phone number accept the phone number entered by your user, or ask them to check and correct it.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
numberSTRING
REQUIREDA single phone number that you need insight about in national or international format.
Request Snippet
unirest.post("https://nexmo-nexmo-number-insight-v1.p.rapidapi.com/basic/json")
.header("X-RapidAPI-Host", "nexmo-nexmo-number-insight-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

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://nexmo-nexmo-number-insight-v1.p.rapidapi.com/basic/json")
.header("X-RapidAPI-Host", "nexmo-nexmo-number-insight-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication