Fast, stateless Network Diagnostics

Network & DNS

GET/api/v1/ping

Ping

Round-trip time and packet loss to any host or IP.

ParameterTypeRequiredDescription
hoststringYesHostname or IP address to ping.

Example request

curl "https://netsh.io/api/v1/ping?host=1.1.1.1&api_key=YOUR_API_KEY"

Example response

{
  "ok": true,
  "data": {
    "host": "1.1.1.1",
    "ip": "1.1.1.1",
    "reverseDns": "one.one.one.one",
    "status": "Online",
    "sent": 4,
    "received": 4,
    "lost": 0,
    "lossPercent": 0,
    "min": 4,
    "max": 5,
    "average": 5,
    "text": "Pinging one.one.one.one [1.1.1.1]...\n..."
  },
  "meta": { "tool": "ping", "version": "v1" }
}