India API

Docs › Network and contact checks

Whois API

Who registered a domain, an IP network or an AS number, through RDAP.

RDAP is the registries' JSON replacement for the old whois protocol. Give a domain, an IP address or an AS number; IANA's bootstrap registry names the registry that answers for it (NIXI for .in and .co.in, Verisign for .com, APNIC for Indian IP addresses), and the registration is fetched from it on the spot. For a domain: the registrar and its abuse contact, when it was registered and when it expires, its status codes, nameservers and DNSSEC. For an IP network or AS number: the range, its name, the organisation that holds it, country and abuse contact. The contacts of the people behind a domain are never returned, and a network held by a person is not named. Domains under the Indian-script top-level domains (.भारत) cannot be looked up: their registry offers no RDAP. Counts as 10 requests against the rate limit.

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

Look up a registration

GET/v1/whois/{query}

A name below a registered domain (www.example.co.in) is looked up as that domain (example.co.in). daysToExpiry counts from now. An IP lookup is treated as private: not logged, not cached.

ParameterDescription
querypath, requiredA domain name (Indian-script names are accepted), an IPv4 or IPv6 address, or an AS number such as AS55836.

curl

curl "https://api.dharun.dev/v1/whois/google.in?utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/whois/google.in?utm_medium=docs");
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/whois/google.in?utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])

Data source

RDAP bootstrap registries, e3419eb0-f6ad30d1-3292eb71-80a0659f. Retrieved 2026-10-16T06:56:19Z. Licence: CC0 1.0. Which registry answers for each domain, network and AS number, from IANA's RDAP bootstrap registries (CC0). Registration details come live from that registry.

Guides

Get warned before a TLS certificate expires

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