Detect Vietnam Phone

FREE
By thanhinterpol
Updated 9 days ago
SMS
2.2/10
Popularity Score
919ms
Latency
-
Success Rate

Detect Vietnam Phone API Documentation

Check valid phone-number. Check type is landline or mobile and get more information.

View API Details
GETDetect phone number
GETDetect phone number

Check valid, check is land line or mobile and city, network.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
phone_numberSTRING
REQUIREDphone number parameter string
Code Snippet
unirest.get("https://detect-vietnam-phone.p.rapidapi.com/?phone_number=0387863303")
.header("X-RapidAPI-Host", "detect-vietnam-phone.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://detect-vietnam-phone.p.rapidapi.com/
Request Method: GET
Response Headers
"connection": "close"
"date": "Wed, 10 Jul 2019 16:54:31 GMT"
"server": "Apache"
"cache-control": "no-cache, private"
"transfer-encoding": "chunked"
"content-type": "text/html; charset=UTF-8"
"via": "1.1 vegur"
Response Body
{
  "error":false,
  "message":"+84387863303 is valid phone number.",
  "type":"mobile",
  "network":"Viettel"
}

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.get("https://detect-vietnam-phone.p.rapidapi.com/?phone_number=0387863303")
.header("X-RapidAPI-Host", "detect-vietnam-phone.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication