The 
APIFREE BETA
Everything a ThreatDNS report shows, in one call: VirusTotal, Google Safe Browsing, Spamhaus, AbuseIPDB, URLScan, IPinfo, Netlas, registration, certificates and live DNS, plus one verdict and risk score you can act on, and whether blocks it.
Free with any DNSAFE account, including a free Home account. Create one
Get a key
- Home accounts: my.dnsafe.net → Settings → ThreatDNS API → Create ThreatDNS key.
- Business and MSP accounts: portal.dnsafe.net → API Keys → ThreatDNS API → Create ThreatDNS key.
- Copy the key straight away. It’s shown once. You can have up to 5 and revoke any of them.
Quickstart
curl "https://threatdns.com/v1/check?q=login-micros0ft.top" \ -H "Authorization: Bearer $THREATDNS_KEY"
import os, requests
r = requests.get("https://threatdns.com/v1/check", params={"q": "login-micros0ft.top"},
headers={"Authorization": f"Bearer {os.environ['THREATDNS_KEY']}"}, timeout=30)
print(r.json()["verdict"], r.json()["risk_score"])
$h = @{ Authorization = "Bearer $env:THREATDNS_KEY" }
Invoke-RestMethod "https://threatdns.com/v1/check?q=login-micros0ft.top" -Headers $h
Your key
Send it as a bearer token: Authorization: Bearer tdk_live_…. A ThreatDNS key can only run checks: it can’t see or change anything else in your DNSAFE account. Keep it on your server, never in a web page or app people can download. If one leaks, revoke it in your DNSAFE account; it stops working straight away.
Check one
{
"query": "login-micros0ft.top",
"type": "domain",
"verdict": "malicious",
"risk_score": 100,
"reasons": ["7 VirusTotal engines flag it", "Google Safe Browsing: social engineering",
"on the DNSAFE threat list (via Phishing Army)", "registered under 30 days ago"],
"dnsafe_blocked": true,
"sources": {
"virustotal": { "malicious": 7, "suspicious": 1, … },
"safe_browsing": { "hit": true, "threat_types": ["SOCIAL_ENGINEERING"] },
"spamhaus": { "listed": false, … },
"urlscan": { … },
"rdap": { "created": "2026-10-11", "registrar": "…", … },
"certificates": { … },
"dns": { … },
"dnsafe": { "blocked": true, "sources": [{ "name": "Phishing Army", … }] }
},
"report_url": "https://threatdns.com/domain/login-micros0ft.top",
"cached": false,
"checked_at": "2026-10-18T10:00:00Z"
}
IP checks return virustotal, abuseipdb, ipinfo, netlas (open ports and services) and spamhaus instead, and no dnsafe_blocked. Defanged input (example[.]com, hxxps://) and full URLs are cleaned up for you, the same as on the website.
Check many
curl -X POST https://threatdns.com/v1/check/bulk -H "Authorization: Bearer $THREATDNS_KEY" \
-H "Content-Type: application/json" -d '{"q": ["example.com", "185.220.101.47", "paypa1-support[.]com"]}'
→ { "results": [ …one object per item, in the same order… ], "used": 3, "remaining": 285 }
An item that can’t be checked gets {"query", "error", "status"} in its place (400 for something that isn’t a domain or IP, 402 once the month’s checks run out) and the rest still run. A batch counts as one request toward the per-second limit and can take up to a couple of minutes.
Usage
{ "plan": "Beta", "used": 212, "limit": 500, "remaining": 288, "resets_at": "2026-11-01T00:00:00Z" }
Sources
| Name in sources | What it checks | For |
|---|---|---|
| virustotal | ~90 antivirus and URL engines | Domains, IPs |
| safe_browsing | Google Safe Browsing (malware, phishing, unwanted software) | Domains |
| spamhaus | Spamhaus blocklists | Domains, IPv4 |
| urlscan | URLScan.io scans of the site | Domains |
| rdap | Registration: age, registrar, status | Domains |
| certificates | Certificate transparency logs | Domains |
| dns | Live DNS records, SPF and DMARC | Domains |
| dnsafe | The DNSAFE threat list and which feed listed it | Domains |
| abuseipdb | Abuse reports and confidence, Tor | IPs |
| ipinfo | Location, network owner, hosting type | IPs |
| netlas | Open ports and services, threat tags, domains on the IP | IPs |
A source that’s down, slow or busy returns {"error": "…"}. The check still completes and the verdict uses the rest. On busy days a source can be busy for API checks while the website still has it.
Response fields
| Field | What it is |
|---|---|
| verdict | malicious, suspicious or low_risk |
| risk_score | 0–100, the same score the website shows for the same lookup |
| reasons | Short, human-readable reasons behind the verdict |
| dnsafe_blocked | Whether DNSAFE’s threat list blocks it (domains only; null if that check failed) |
| sources.* | Each source’s own result (see Sources) |
| report_url | The same report on threatdns.com, to share or open in a ticket |
| cached | true if it’s your own repeat within 24 hours (not counted) |
| checked_at | When the sources were checked (UTC) |
Verdicts
60–100 malicious · 25–59 suspicious · 0–24 low risk. One or two VirusTotal detections out of ~90 engines don’t count (usually false positives). Open ports describe exposure and never make an IP malicious on their own. A low score means no source flagged it, which is a good sign but not a guarantee.
Errors & limits
| Status | Meaning |
|---|---|
| 400 | Not a domain or public IP. Email addresses aren’t available through the API |
| 401 | Missing, wrong or revoked key |
| 402 | This month’s checks are used up. They reset on the 1st (UTC); your own repeats still work |
| 429 | More than 2 requests a second. Wait for the Retry-After header |
| 503 | We couldn’t confirm your key just now. Retry after the Retry-After header |
Errors come back as {"error": "…", "status": 402}.
Free beta
- 500 checks a month
- 1,000 with DNSAFE Pro or a business or MSP plan
- 2 requests a second
- Bulk checks up to 100
- Repeats within 24 hours are free
- All sources, same as the website
Paid plans with higher volumes come after the beta. Tell us what you’d use it for and roughly how many checks a month, and we’ll let you know when they’re ready.
Tell us what you needTerms
The API is covered by the ThreatDNS Terms and Acceptable Use Policy. Don’t resell the results or publish them as your own feed, don’t use it to harvest data, and don’t share keys. Beta limits may change, and we can revoke a key that’s misused.