ViewDNS.info - Your one source for DNS related tools!
ViewDNS.info > API > Documentation >

Ping API



Documentation Home

TOOLS
Abuse Contact Lookup
ASN Lookup
Chinese Firewall Test
DNS Propagation Checker
DNS Record Lookup
DNS Report
DNSSEC Test
Domain/IP Whois
Free Email Lookup
Get HTTP Headers
Google Pagerank Checker
IP History
IP Location Finder
Iran Firewall Test
Is My Site Down
MAC Address Lookup
Ping
Port Scanner
Reverse DNS Lookup
Reverse IP Lookup
Reverse NS Lookup
Reverse Whois Lookup
Spam Database Lookup
Traceroute
URL/String Decode


Ping

Test how long a response from remote system takes to reach the ViewDNS server. Useful for detecting latency issues on network connections.

URL

http://pro.viewdns.info/ping/

Parameters

host - the domain or IP address to perform a ping on
output - the output format required ('xml' or 'json')
apikey - your api key

Sample Query

host: twitter.com

GET http://pro.viewdns.info/ping/?host=twitter.com&apikey=yourapikey&output=output_type

XML Response (output=xml)

<?xml version='1.0' encoding='ISO-8859-1'?>
<viewdns>
  <query>
    <tool>ping_PRO</tool>
    <host>twitter.com</host>
  </query>
  <response>
    <rtt>32.5 ms</rtt>
    <rtt>36.2 ms</rtt>
    <rtt>30.8 ms</rtt>
    <rtt>36.6 ms</rtt>
  </response>
</viewdns>

JSON Response (output=json)

{
    "query": {
        "tool": "ping_PRO",
        "host": "twitter.com"
    },
    "response": {
        "replys": [
            {
                "rtt": "32.5 ms"
            },
            {
                "rtt": "36.2 ms"
            },
            {
                "rtt": "30.8 ms"
            },
            {
                "rtt": "36.6 ms"
            }
        ]
    }
}







All content © 2016 ViewDNS.info
Feedback / Suggestions / Contact Us   Become an Affiliate