Blacklist check API
Check an IP address - or a domain’s website, MX, and SPF sending IPs - against major IP and domain DNS blocklists including Spamhaus and Barracuda. Every blocklist is canary self-tested hourly (127.0.0.2 vs 127.0.0.1), so a refusing or rate-limiting list is marked Refused us or Unverified - never falsely reported as “Clean”.
api.middle.network/v1/tools/blacklistRequest body
Send JSON: { "input": { … } } with these fields. Fields not listed are ignored.
targetstringrequiredA domain (its mail servers and website are checked) or an IP address.Up to 253 characters
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 Blacklist 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 tool sends traffic at the target and isn’t open to API keys yet (activeTool), or the target’s owner has asked not to be tested (optedOut).429Too many checks: per minute, per day, or at the same target.
curl -X POST https://api.middle.network/v1/tools/blacklist \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"target":"8.8.8.8"}}'const res = await fetch("https://api.middle.network/v1/tools/blacklist", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"input":{"target":"8.8.8.8"}}),
});
const result = await res.json();
console.log(result.status, result.summary.plain);import os, requests
res = requests.post("https://api.middle.network/v1/tools/blacklist",
headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
json={"input":{"target":"8.8.8.8"}})
result = res.json()
print(result["status"], result["summary"]["plain"]){
"tool": "blacklist",
"target": "8.8.8.8",
"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. More in this group: MX lookup, Email header analyser, SMTP test, Bulk sender compliance.
Try it without code
The same test runs free in your browser, no key needed.