Email delivery and reputation
DMARC report analyser API
Turn raw DMARC aggregate (rua) XML attachments into a clear breakdown of every IP sending mail as your domain. Instantly see your overall pass rate, identify legitimate SaaS senders missing SPF or DKIM alignment, and spot unauthorised spoofers - free, with no account or inbox integration required.
POST
api.middle.network/v1/tools/dmarc-reports2 units a callLive lookup
Request body
Send JSON: { "input": { … } } with these fields. Fields not listed are ignored.
textstringrequiredOne DMARC aggregate report (the XML inside the .xml, .zip or .gz file).
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 DMARC report analyser 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.
Request
curl -X POST https://api.middle.network/v1/tools/dmarc-reports \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"text":"<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>"}}'const res = await fetch("https://api.middle.network/v1/tools/dmarc-reports", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"input":{"text":"<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>"}}),
});
const result = await res.json();
console.log(result.status, result.summary.plain);import os, requests
res = requests.post("https://api.middle.network/v1/tools/dmarc-reports",
headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
json={"input":{"text":"<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>"}})
result = res.json()
print(result["status"], result["summary"]["plain"])200 response
{
"tool": "dmarc-reports",
"target": "<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>",
"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, Blacklist check, Email header analyser, SMTP test.
Try it without code
The same test runs free in your browser, no key needed.