DMARC SPF Email Security Toolkit Parse Build Domain Check API
Free tier included · ToolsThe DMARC SPF & Email Security Toolkit is a comprehensive API for email authentication, domain verification, and threat intelligence. It goes beyond basic record parsing to provide live DNS inspection, batch domain analysis, disposable email detection, RDAP domain age lookups via rdap.org, and automated email security risk scoring (0-100). Whether you are building email deliverability monitoring, vetting onboarding sign-ups, or auditing client domains, this toolkit covers the features of leading enterprise email intelligence APIs at a fraction of the cost.
The API handles both offline operations and live network lookups. Offline endpoints (`/parse-dmarc`, `/build-dmarc`, `/parse-spf`, `/build-spf`) parse and build records directly, while live endpoints (`/check-domain`, `/validate-email`, `/domain-age`, and `/risk-score`) query public DNS resolvers and official RDAP servers (rdap.org) to deliver instant intelligence. Batch endpoints (`/check-domain/batch` up to 100 domains, `/validate-email/batch` up to 100 emails) enable high-throughput pipeline processing.
Honest limits: Offline parse/build endpoints require valid record strings (max length 4096). Live DNS endpoints depend on public resolver availability and domain responsiveness. Batch requests are capped at 100 items per call.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata: root endpoint. |
GET | /health | Liveness probe checking service health. |
POST | /parse-dmarc | Parse a DMARC DNS TXT record string (RFC 7489) into structured JSON with tag validation. |
POST | /build-dmarc | Build a valid DMARC DNS TXT record string from structured policy parameters. |
POST | /parse-spf | Parse an SPF DNS TXT record string (RFC 7208) into mechanisms, qualifiers, and calculate DNS lookup count. |
POST | /build-spf | Build an SPF DNS TXT record string from mechanisms and modifiers. |
POST | /check-domain | Perform live DNS lookups (MX, SPF, DMARC, DKIM, NS) for a given domain using public resolvers. |
POST | /validate-email | Validate email syntax (RFC 5322), check domain MX records, and detect disposable email providers. |
POST | /check-domain/batch | Perform live DNS checkups for up to 100 domains in a single request. |
POST | /validate-email/batch | Validate up to 100 email addresses in a single request. |
GET | /domain-age | Fetch domain creation date via RDAP (RFC 9082) and return age in days. |
POST | /risk-score | Analyze domain DNS records (SPF, DMARC, MX, NS) and return an email security risk score (0-100) with findings. |
Quick start
curl -X POST "https://dmarc.p.rapidapi.com/parse-dmarc" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: dmarc.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"record": "v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com; pct=100"}'
FAQ
Do the parse and build endpoints make external DNS queries?
No. Endpoints like `/parse-dmarc`, `/build-dmarc`, `/parse-spf`, and `/build-spf` operate entirely offline using request input strings and embedded rule sets with zero network access.
Which endpoints perform live network lookups?
Live DNS lookups and external checks are performed by `/check-domain`, `/check-domain/batch`, `/validate-email`, `/validate-email/batch`, `/domain-age`, and `/risk-score` using public DNS resolvers and RDAP servers.
What is the maximum batch size for domain and email checks?
Both `/check-domain/batch` and `/validate-email/batch` support up to 100 items in a single request payload.
How is the email security risk score calculated?
The `/risk-score` endpoint inspects the target domain's MX, SPF, DMARC, and NS records, checking for misconfigurations or missing authentication policies, and outputs a score from 0 (low risk) to 100 (critical risk).
Try DMARC SPF Email Security Toolkit Parse Build Domain Check free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI