How to Verify B2B Email Deliverability (MX, SPF, DMARC & Domain Age) in 10 Lines of TypeScript
If you run a B2B SaaS signup flow, outbound sales pipeline, or CRM enrichment workflow, bad domains quietly burn your sender reputation and pollute your database. Before you ever send an email or pass a lead to sales, f
If you run a B2B SaaS signup flow, outbound sales pipeline, or CRM enrichment workflow, bad domains quietly burn your sender reputation and pollute your database.
Before you ever send an email or pass a lead to sales, four fast DNS and RDAP checks tell you almost everything you need to know about a domain:
- Can it actually receive email? (Live MX records + disposable domain filter)
- Which mail provider do they run? (Google Workspace, Microsoft 365, Proofpoint, Mimecast, Zoho, Proton, Cloudflare)
-
How strict is their security posture? (SPF record presence + DMARC policy:
none,quarantine, orreject) - How old is the domain? (Live IANA RDAP registration date, registrar, and exact age in days to spot burner domains)
Check Any Domain or Email in 10 Lines of TypeScript
Instead of wrestling with raw DNS sockets and inconsistent WHOIS/RDAP servers, you can query a single serverless REST endpoint that runs all 6 lookups in parallel and returns a clean 0 to 100 deliverability score:
const RAPIDAPI_KEY = process.env.RAPIDAPI_KEY!;
async function checkDomainIntel(emailOrDomain: string) {
const param = emailOrDomain.includes('@') ? 'email' : 'domain';
const res = await fetch(
`https://domain-rdap-dns-email-deliverability-intel-api.p.rapidapi.com/api/domain-intel?${param}=${encodeURIComponent(emailOrDomain)}`,
{
headers: {
'x-rapidapi-key': RAPIDAPI_KEY,
'x-rapidapi-host': 'domain-rdap-dns-email-deliverability-intel-api.p.rapidapi.com',
},
}
);
return res.json();
}
const intel = await checkDomainIntel('[email protected]');
console.log({
score: intel.deliverability.score,
provider: intel.deliverability.emailProvider,
dmarcPolicy: intel.deliverability.dmarcPolicy,
domainAgeDays: intel.registration?.domainAgeDays,
});
Bulk-Auditing Lead Lists & Connecting AI Agents
- Batch CSV / Lead Lists (Apify Store, 128-512 MB RAM): https://apify.com/kickybreaks/domain-rdap-dns-email-intel
- Open-Source MCP Server & Importable n8n Workflows: https://github.com/SgtClickClack/b2b-ai-data-apis-starter
Try It Free Across All 4 Marketplaces
- RapidAPI Hub (Domain & Email Deliverability Intel): https://rapidapi.com/JulianRoberts/api/domain-rdap-dns-email-deliverability-intel-api
- API.market (All 11 Endpoints): https://api.market/store/kickybreaks/b2b-ai-data-suite
- Zyla API Hub (All 11 Endpoints): https://zylalabs.com/api-marketplace/other/kickybreaks+b2b+and+ai+data+api/15877
- Postman Public API Network: https://www.postman.com/julian-g-roberts-8522179/kickybreaks-b2b-ai-data-apis/overview
- Interactive Playground & OpenAPI 3.0 Spec: https://rapidapi-data-suite.vercel.app
Need a custom B2B enrichment pipeline, private scraper, or n8n automation built for your team? Reach out on Contra: https://contra.com/julian_roberts_fvzgvg6y/work
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.