Docs / API
The same lookups as the website, as JSON over HTTPS. Create a key in your dashboard under API, then call any endpoint below.
Send your key in the Authorization header. X-API-Key also works.
curl -H "Authorization: Bearer ntk_YOUR_KEY" \
"https://thenetworktools.com/api/v1/records?domain=example.com"X-RateLimit-Limit-Minute, X-RateLimit-Remaining-Minute, X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day.Retry-After seconds. 400 bad input (for example a private IP). 404 unknown tool. 502 an upstream lookup failed.{"error": "..."}. Every call counts toward the usage graph in your dashboard.All are GET https://thenetworktools.com/api/v1/<tool>. The response shape is each tool's own JSON, the same as the website shows.
https://thenetworktools.com/api/v1/records?domain=example.comhttps://thenetworktools.com/api/v1/mx?domain=example.comhttps://thenetworktools.com/api/v1/dmarc?query=example.comhttps://thenetworktools.com/api/v1/deliverability?domain=example.comhttps://thenetworktools.com/api/v1/bimi?domain=example.comhttps://thenetworktools.com/api/v1/spf-flatten?domain=example.comhttps://thenetworktools.com/api/v1/whois?query=example.comhttps://thenetworktools.com/api/v1/subdomains?query=example.comhttps://thenetworktools.com/api/v1/ssl?query=example.comhttps://thenetworktools.com/api/v1/headers?query=https%3A%2F%2Fexample.comhttps://thenetworktools.com/api/v1/tech?query=example.comhttps://thenetworktools.com/api/v1/redirects?query=http%3A%2F%2Fexample.comhttps://thenetworktools.com/api/v1/ports?query=example.comhttps://thenetworktools.com/api/v1/latency?domain=example.com&port=443port: One of 21, 22, 25, 53, 80, 110, 143, 443, 465, 587, 993, 995, 3306, 5432, 8080, 8443. Default 443.
https://thenetworktools.com/api/v1/blacklist?query=8.8.8.8https://thenetworktools.com/api/v1/ip?query=8.8.8.8https://thenetworktools.com/api/v1/asn?query=AS15169https://thenetworktools.com/api/v1/mac?query=00%3A1A%3A2B%3A3C%3A4D%3A5Ehttps://thenetworktools.com/api/v1/phishing?url=https%3A%2F%2Fexample.comhttps://thenetworktools.com/api/v1/breach?domain=example.comGET /api/v1/ci returns 200 when the domain passes and 422 when a check fails, so curl --fail stops a pipeline.
domain (e.g. example.com): Required.min_ssl_days (e.g. 14): Fail if the certificate expires sooner. 0 to 365, default 14.require (e.g. A,MX): Comma list of record types that must exist. Default A,MX.unknown (e.g. fail): Set to fail to treat inconclusive checks as failures.curl --fail -H "Authorization: Bearer $NTK_KEY" \
"https://thenetworktools.com/api/v1/ci?domain=example.com&min_ssl_days=14&require=A,MX"