RapidAPI logo

Sign Up

Log In

whois

FREE
By whoisapi
Updated 3 months ago
Other
6.4/10
Popularity Score
1136ms
Latency
52%
Success Rate

whois API Documentation

Returns well-parsed whois fields in XML and JSON formats. Use it to track domain registrations, check domain name availability, detect credit card fraud, locate users geographically. The service automatically follows the whois registry referral chains until it finds the correct whois registrars with the most complete whois data. Works over basic HTTP and avoices firewall-related problems of accessing Whois servers on port 43.

View API Details
GETwhois lookup v1
GETwhois lookup v1

Whois api v1 with password authentication.

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
domainnameSTRING
REQUIREDinput domain name to lookup
userNameQUERY
REQUIREDuser name
passwordQUERY
REQUIREDpassword
Optional Parameters
outputformatSTRING
OPTIONALXML | JSON (defaults to XML)
daSTRING
OPTIONAL0 | 1 | 2 (defaults to 0) 1 results in a quick check on domain availability, 2 is slower but more accurate
ipSTRING
OPTIONAL0 | 1 (defaults to 0); 1 results in returning ips for the domain name
checkProxyDataSTRING
OPTIONAL0 | 1 (defaults to 0); 1 results in fetching proxy/whois guard data, if it exists, in the WhoisRecord → privateWhoisProxy schema element
thinWhoisSTRING
OPTIONAL0 | 1 (defaults to 0); 1 results in returning whois data from registry only, without fetching data from registrar; returned registry data corresponds to the WhoisRecord → registryData schema element
callbackSTRING
OPTIONALA javascript function used when the outputFormat is JSON; this is an implementation known as JSONP which invokes the callback on the returned response.
_parseSTRING
OPTIONAL0 | 1 (defaults to 0); 1 provides parsing for input whois raw texts described at the *RawText parameters
registryRawTextSTRING
OPTIONALa string representing the registry whois raw text to be parsed; works only when the _parse parameter is equal to 1
registrarRawTextSTRING
OPTIONALa string representing the registrar whois raw text to be parsed; works only when the _parse parameter is equal to 1
Request Snippet
unirest.get("https://whoisapi.p.rapidapi.com/whoisserver/WhoisService?domainname=whoisxmlapi.com")
.header("X-RapidAPI-Host", "whoisapi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.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.get("https://whoisapi.p.rapidapi.com/whoisserver/WhoisService?domainname=whoisxmlapi.com")
.header("X-RapidAPI-Host", "whoisapi.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