Get Your API Key

Sign up on RapidAPI to get your free API key. The free tier includes 100 requests per month.

Make Your First Request

Once you have your key, try a simple DNS lookup:

curl -H "X-API-Key: YOUR_KEY"   "https://api.dns-toolkit.com/dns/lookup?domain=example.com&type=A"

Python

import httpx

resp = httpx.get(
    "https://api.dns-toolkit.com/dns/lookup",
    params={"domain": "example.com", "type": "A"},
    headers={"X-API-Key": "YOUR_KEY"},
)
print(resp.json())

JavaScript

const resp = await fetch(
  "https://api.dns-toolkit.com/dns/lookup?domain=example.com&type=A",
  { headers: { "X-API-Key": "YOUR_KEY" } }
);
const data = await resp.json();
console.log(data);

Response Format

All endpoints return JSON by default. Add format=markdown to any request for human-readable Markdown output:

curl -H "X-API-Key: YOUR_KEY"   "https://api.dns-toolkit.com/dns/lookup?domain=example.com&type=A&format=markdown"

Explore Endpoints

The API has 36 endpoints across 7 categories:

  • DNS — Lookups, propagation, bulk queries, resolver comparison
  • Domain — WHOIS, availability, subdomains, TLD search
  • Email — Security audit, validation, authentication
  • Security — DNSSEC, certificates, headers, blacklists
  • IP — Reverse DNS, ASN, geolocation
  • Web — Tech stack, port scanning, redirects
  • Tools — Record generators, NS benchmarks

Rate Limits

PlanRequests/MonthPrice
Free100\/bin/bash
Pro10,000\.99/mo
Enterprise100,000\9.99/mo

Need Help?

Check the full API reference for detailed docs on every endpoint, or visit the blog for tutorials and guides.