DNS blocklist check API
Check a domain and any CNAME targets against over 100 daily-refreshed DNS blocklists spanning AdGuard DNS, Pi-hole / Firebog, HaGeZi, OISD, Steven Black, 1Hosts, EasyPrivacy, uBlock Origin, URLHaus, Phishing Army, OpenPhish, and CERT Polska. Instantly see whether security feeds, ad/tracker lists, or TLD policies are blocking visitors from reaching your site.
api.middle.network/v1/tools/dns-blocklistsRequest builder & body
Send JSON: { "input": { … } } with these fields. Fields not listed are ignored. Edit or toggle options below to build your exact query live across every language.
Response
The same result shape every tool uses. status is the worst finding, summary and each finding come in plain and tech, and data holds the raw DNS blocklist check detail.
200The test ran. RateLimit headers show what’s left today.400The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).401No API key, or the key is not valid or was revoked.403The target’s owner has asked not to be tested (optedOut), or active tools are disabled on this server (activeTool).429Too many checks: per minute, per day, or at the same target.503The server is at its concurrent-run limit. Try again in a few seconds.
curl -X POST https://api.middle.network/v1/tools/dns-blocklists \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"domain":"doubleclick.net"}}'$result = Invoke-RestMethod -Method Post `
-Uri "https://api.middle.network/v1/tools/dns-blocklists" `
-Headers @{ Authorization = "Bearer $env:MN_API_KEY" } `
-ContentType "application/json" `
-Body '{"input":{"domain":"doubleclick.net"}}'
$result.status; $result.summary.plainconst res = await fetch("https://api.middle.network/v1/tools/dns-blocklists", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"input":{"domain":"doubleclick.net"}}),
});
const result = await res.json();
console.log(result.status, result.summary.plain);import os, requests
res = requests.post("https://api.middle.network/v1/tools/dns-blocklists",
headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
json={"input": {"domain": "doubleclick.net"}})
result = res.json()
print(result["status"], result["summary"]["plain"])body := bytes.NewBufferString("{\"input\":{\"domain\":\"doubleclick.net\"}}")
req, _ := http.NewRequest("POST", "https://api.middle.network/v1/tools/dns-blocklists", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("MN_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
io.Copy(os.Stdout, res.Body)using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MN_API_KEY"));
using var content = new StringContent("{\"input\":{\"domain\":\"doubleclick.net\"}}", Encoding.UTF8, "application/json");
var res = await http.PostAsync("https://api.middle.network/v1/tools/dns-blocklists", content);
Console.WriteLine(await res.Content.ReadAsStringAsync());{
"input": {
"domain": "doubleclick.net"
}
}/api route for free. With a key, calls /v1 directly and shows live X-MN-Cost and RateLimit headers. Stays in memory for this tab only.{
"tool": "dns-blocklists",
"target": "doubleclick.net",
"status": "pass",
"summary": {
"tech": "…",
"plain": "…"
},
"findings": [
{
"level": "pass",
"tech": "…",
"plain": "…"
}
],
"data": {},
"ms": 420,
"at": "2026-01-01T00:00:00.000Z"
}Put your key in MN_API_KEY. No key yet? Here’s how to get one. Need all 79 endpoints? Download the full Postman collection. More in this group: DNS propagation, DNSSEC validation, DNS health report, Authoritative vs cached.
Try it without code
The same test runs free in your browser, no key needed.