DMARC Check API - Parse Policy, Reporting, and Alignment
Queries _dmarc.{domain} TXT records and parses the DMARC tags. Returns the raw record, policy (p), subdomain policy (sp), rua/ruf reporting addresses as arrays, pct (percentage to apply the policy), and alignment modes for DKIM (adkim) and SPF (aspf).
Code examples
curl -X POST https://api.botoi.com/v1/dns-security/dmarc-check \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'When to use this API
Enforce DMARC on customer domains
SaaS platforms that send mail on behalf of customers should require p=quarantine or p=reject before full onboarding. Call this endpoint during domain verification and block setup if the policy is missing or p=none.
Migrate from p=none to p=reject safely
Track your own domain's pct value over the migration. Ramp from pct=10 to pct=100 while monitoring the rua reports externally. The endpoint confirms the record reflects the intended step.
Phishing-kit detection
A freshly-registered lookalike domain without any DMARC record (has_dmarc:false) is a strong indicator of a phishing setup. Pipe signals from this endpoint into your brand-protection playbook.
Frequently asked questions
What policies are valid?
What do adkim and aspf tell me?
Why might pct be less than 100?
Do rua and ruf accept non-mailto URIs?
What if the domain has no _dmarc record?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.