India API

Docs › Network and contact checks

Traceroute from India API

The network path from a server in India to any host, with loss and latency per hop.

An MTR-style trace from the server's own connection in India: each hop is probed several times, and every hop comes back with its address, name, network (AS) and country, packet loss and round-trip times. Useful to see how Jio, Airtel, BSNL and the rest reach a site, and where along the way delay or loss starts. Only public addresses can be traced. Hops inside private or shared address space are shown without their address. A trace takes several seconds and counts as 20 requests against the rate limit.

Base URL https://api.dharun.devNo API key600 requests a minuteThis page as Markdown

Trace the route to a host

GET/v1/mtr/{host}

Lists hops up to the one where the host answered, or one past the last router that answered. A hop with 100% loss is common: many routers forward traffic without answering probes. otherAddresses lists further routers seen at the same hop, where traffic is balanced over several paths.

ParameterDescription
hostpath, requiredDomain name or public IP address.
roundsqueryProbes per hop, 1 to 10. Default 5; a trace takes about a second per round.
vqueryIP version for a domain name. Default 4. One of: 4, 6.

curl

curl "https://api.dharun.dev/v1/mtr/1.1.1.1"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/mtr/1.1.1.1");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);

Python

import requests

response = requests.get("https://api.dharun.dev/v1/mtr/1.1.1.1", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])

Data source

DB-IP Lite: IP to City and IP to ASN, 2026-10. Retrieved 2026-10-14T13:16:38Z. Licence: CC BY 4.0. IP Geolocation by DB-IP (https://db-ip.com), licensed under CC BY 4.0.

Using an AI assistant? Connect the MCP server and it can call this API by itself.