API access

Parsed WHOIS, RDAP, DNS and TLS checks as JSON over HTTPS. No key and no card on the public tier. Same per-IP rate limit as the website (about 30 requests per minute for the API).

Endpoints

All responses are application/json. CORS is open for GET.

GET https://dnsfetch.com/api/dns?domain=example.com&type=NS
GET https://dnsfetch.com/api/whois?domain=example.com
GET https://dnsfetch.com/api/rdap?domain=example.com
GET https://dnsfetch.com/api/ip?ip=8.8.8.8
GET https://dnsfetch.com/api/uptime?host=example.com

Example

curl "https://dnsfetch.com/api/dns?domain=example.com&type=A"

Record types for /dns: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, ALL. Default is NS.

Do not scrape. If you need a higher cap, contact us.