RapidAPI logo

Phone

FREE
By metropolisapi
Updated 4 months ago
Data
9/10
Popularity Score
347ms
Latency
38%
Success Rate

Phone API Documentation

Full set of cool Telephone validation functions with a coverage of more than a hundred different countries. Phone Metropolis API can analyse, get location information and parse the content of a given phone number.

View API Details
GETanalysis
GETdirectory
GETiso
GETflag
GETarea-code
GETregion
GETanalysis

Analyse, validate and parse the content of a given Phone Number

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
telephoneSTRING
REQUIREDFull Telephone Number
Optional Parameters
countrySTRING
OPTIONAL"ISO 2 letter country code" or "Name of the Country in English"
Code Snippet
unirest.get("https://metropolis-api-phone.p.rapidapi.com/analysis?country=US&telephone=1+(703)+259-8585")
.header("X-RapidAPI-Host", "metropolis-api-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://metropolis-api-phone.p.rapidapi.com/analysis
Request Method: GET
Response Headers
Response Body
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.get("https://metropolis-api-phone.p.rapidapi.com/analysis?country=US&telephone=1+(703)+259-8585")
.header("X-RapidAPI-Host", "metropolis-api-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