DNS, email and network tests, as an API
Run the checks behind middle.network from your own code: DNS lookup, SPF, DKIM and DMARC, WHOIS, SSL certificates, website and network tests. 46 endpoints, one JSON shape, and every answer in plain English and technical detail.
curl -X POST https://api.middle.network/v1/tools/dns-lookup \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"domain":"github.com"}}'const res = await fetch("https://api.middle.network/v1/tools/dns-lookup", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"input":{"domain":"github.com"}}),
});
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-lookup",
headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
json={"input":{"domain":"github.com"}})
result = res.json()
print(result["status"], result["summary"]["plain"])What you can build
Email deliverability
Check SPF, DKIM and DMARC and the blacklists before customers say your mail went to spam.
DNS changes and monitoring
Confirm a record change has spread worldwide, and watch nameservers and DNSSEC stay healthy.
Websites and certificates
Catch an expiring SSL certificate, a broken redirect or missing security headers before visitors do.
Due diligence and security reviews
Who owns a domain or IP, how old it is and where it sits, for vendor checks, audits and fraud screens.
Why developers use it
Answers people can read
Every result has a plain-English summary for your customers and the exact technical detail for your engineers.
One shape for every tool
Send { "input": { … } }, get status, summary, findings and data back. Learn it once.
Tested from around the world
Propagation, reachability and speed checks run from our own probe locations, not one data centre.
A spec you can trust
The OpenAPI 3.2 spec is generated from the same schemas the API checks every request against.
Quickstart
Get a key
Keys look likemn_live_…. To get one, make one on your account page.Send a request
POST{ "input": { … } }tohttps://api.middle.network/v1/tools/<tool>with your key. Each endpoint page lists its fields and a ready-to-copy example.Read the result
statusispass,warn,fail,infoorerror. Showsummary.plainto people, logsummary.tech, and usefixwhen a finding has one.
{
"tool": "dns-lookup",
"target": "github.com",
"status": "pass",
"summary": {
"tech": "…",
"plain": "…"
},
"findings": [
{
"level": "pass",
"tech": "…",
"plain": "…"
}
],
"data": {},
"ms": 420,
"at": "2026-01-01T00:00:00.000Z"
}Authentication
Send your key in the Authorization header on every call. Keep it on your server: anyone with it spends your limits. Leaked one? Revoke it immediately on your API keys page and make a new one.
Authorization: Bearer mn_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLimits and costs
Each call spends cost units. Most lookups cost 1; tests that run from many locations cost more. Every endpoint page shows its cost, and the spec has it as x-mn-cost.
Every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 adds Retry-After. Tools that send traffic at a target (ping, traceroute, port checks and the full health check) aren’t open to keys yet. They work free on the website.
Errors
Errors are JSON with an error message in plain English. A 400 also lists each field that broke the schema in errors.
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.
Postman and other tools
- In Postman, choose Import, then Link.
- Paste
https://api.middle.network/v1/openapi.json. Every endpoint arrives as a request, grouped like this site. - On the collection’s Authorization tab, pick Bearer Token and paste your key.
The same spec works in Insomnia, Bruno and code generators such as openapi-generator. If a tool can’t read OpenAPI 3.2 yet, use https://api.middle.network/v1/openapi-3.1.json.
GET /v1/openapi.jsonthe specGET /v1/toolsevery toolGET /v1/probesprobe locations
Ask your AI assistant instead
Our MCP server will let Claude, ChatGPT and Cursor run these tests for you, with the same key.