StatDNS

PAID
By fcambus
Updated 5 months ago
Tools
7.8/10
Popularity Score
277ms
Latency
93%
Success Rate
dntrader3 years ago
API timeout - statdnsHello, I am trying to run a TEST ENDPOINT through the page "https://market.mashape.com/fcambus/statdns/" by entering required details. But I am getting error as "Sorry, it appears the endpoint is not responding!". Also I have tried to find out the proper documentation to integrate statdns API in my code, but I could not find it, can you please help me in this? I have tried integrating PHP code and ran a statdns API, and got below error: # Fatal error: Uncaught exception 'Unirest\Exception' with message 'Operation timed out after 0 milliseconds with 0 out of 0 bytes received' # Can you provide steps to integrate statdns paid API ? Thanks
fcambus3 years ago
Hello, To authenticate using query parameters, the correct endpoint to call in this case would be : https://statdns-v1.p.mashape.com/game.com/txt?mashape-key=YOUR_MASHAPE_KEY Regarding PHP code samples, Mashape has an article entitled [30+ ways to make REST calls](http://blog.mashape.com/30-ways-to-make-rest-calls-in-node-js-php-python/) with a section covering PHP, there might be something interesting. Please regenerate an API key as soon as you read this, as this issue tracker is public and anyone reading past issues now has access to your API key. Regards.
dntrader3 years ago
Hello, Thanks for the response. I have checked the auth settings page, and tried to run the API using below url: https://statdns-v1.p.mashape.com/endpoint?mashape-key=kmafy4BEj6mshLiTxEDys6VTrB2np17oNW9jsnhgiMSkVJffdf And also below: https://statdns-v1.p.mashape.com/game.com/txt But I am not sure whether I am doing the right thing. Regarding PHP code, Is there any code sample available which I can use without unirest library? Thanks
fcambus3 years ago
Hello, For information the API endpoint URL is https://statdns-v1.p.mashape.com and not https://market.mashape.com/fcambus/statdns/. If you cannot get Unirest working in your PHP code, you can perform API requests directly, without using the library. Available authentication options are detailed here : http://docs.mashape.com/auth-settings Regards.
dntrader3 years ago
Do you have an answer for this error?
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