StatDNS

PAID
By fcambus
Updated 5 months ago
Tools
7.9/10
Popularity Score
278ms
Latency
93%
Success Rate
Justin-Maxwell4 years ago
HTTPS (to avoid 'Mixed content' blocking by browser)Hi. Happy to pay, but will we be able to access via https://www.statdns.com/api/ to avoid "Mixed Content: The page at was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint" ? Thanks.
fcambus4 years ago
Hi, Yes, the API is now HTTPS only and is served from this endpoint : https://statdns-v1.p.mashape.com JSONP and CORS are still both supported. Regards.
Hi Developer, feel free to post your answer:

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