MX Record Lookup API — Check if a Domain Accepts Email
Look up MX (Mail Exchange) records for any domain. Check if a domain is configured to receive email and get mail server priority information.
What are MX Records?
MX (Mail Exchange) records specify the mail servers responsible for accepting email on behalf of a domain. They include a priority value and the hostname of the mail server. A domain without MX records cannot receive email, making any email address on that domain invalid.
How to Use It
Call GET /api/v1/mx-lookup?domain=gmail.com. Returns { domain: string, mx_records: [{ exchange: string, priority: number }], has_mx: boolean, count: number }. Useful as a fast pre-check before full email validation.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
Can a domain receive email without MX records?
If no MX records exist, the domain cannot receive email. Some domains use A records as a fallback, but this is not standard and rarely works for reliable email delivery.