RapidAPI logo

Sign Up

Log In

StatDNS

PAID
By fcambus
Updated 3 months ago
Tools
7.9/10
Popularity Score
306ms
Latency
87%
Success Rate

StatDNS API Documentation

REST API allowing to perform DNS queries over HTTP, and to get reverse PTR records for both IPv4 and IPv6 addresses. It outputs JSON-encoded DNS responses, and supports both Cross-origin resource sharing (CORS) and JSONP.

View API Details
GETDNS query
GETReverse DNS query
GETDNS query

Getting Resource Records in JSON format

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
domainSTRING
REQUIRED
querytypeSTRING
REQUIRED
Request Snippet
unirest.get("https://statdns-v1.p.rapidapi.com/{domain}/{querytype}")
.header("X-RapidAPI-Host", "statdns-v1.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://statdns-v1.p.rapidapi.com/{domain}/{querytype}")
.header("X-RapidAPI-Host", "statdns-v1.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