Back to main menu

Single email validation API

Email validation API: Integrate with ease, validate with certainty

Embed our email validation API into your site, form, or application to automatically verify all incoming addresses at the point of collection.

Build email verification directly into web forms with Mailgun’s API

Mailgun’s powerful email validation tool helps you maintain good list hygiene so you can focus on what matters: the messages you’re sending. Our email validation API integrates directly with your web forms in real-time. This ensures that each subscriber on your mailing list has a valid email account before you send your message.

Grammar, spelling, and email provider verification happen simultaneously with back-end email server verification like MX record and A record lookups, SMTP analysis, DNS lookups, and parsing email addresses into local parts and domains – all with a typical API response time under 500 ms.

And if your developers want to integrate additional features into the API, Mailgun offers an open-source library for optimizing the email validator for your own use case.

A graphic icon illustrating security.
Email validation API Image

The industry’s fastest email validation tool

Maximize efficiency and drive revenue

One bad email address can damage your email program - multiply that by tens, hundreds, or thousands and you will see a drop in inbox placement, engagement, and overall email ROI (maybe even land on a blocklist).

Integrate the industry’s fastest email validation API directly into your platform to systematically remove invalid and high-risk email addresses in real time.

Protect your sender reputation

Remove disposable addresses and minimize risk

Bad actors are working tirelessly to find new ways to manipulate your systems and create new (illegal) opportunities for themselves. And now that disposable email addresses are widely available, it makes organic list building that much harder for legitimate senders.

Our email validation API is able to identify most types of disposable addresses, so you have one less thing to worry about when building your email lists the right way.

Illustration of the statistics and delivery rate of an email campaign.
A graphic illustration of an email verification along with the statistics behind it.

Why we are different

Create a competitive edge

What makes our email verification API unique is that each address is checked against a database of cached data that comes from the over 400b emails we deliver every year as a leading email service provider. And to add yet another layer of accuracy we also check against data that comes directly from the mailbox providers themselves for an unmatched level of performance.

An easy API for email address validation

Mailgun’s email validation tool to the rescue. It’s designed to validate email addresses submitted through forms like newsletters, registrations, and shopping carts. Integrate comprehensive email verification directly into the HTML on your site so that every lead is a lead you can use.

With Mailgun’s API, you get:

  • Badge Check

    Mailbox detection directly verifies every email address with inbox providers like Gmail, Hotmail, Yahoo, and more so you know they actually have an email account

  • Badge Check

    High-risk flags refuse disposable email addresses or other spammer indicators, like ones that include long strings of numbers and letters (like azaz09)

  • Badge Check

    Grammar and syntax checks confirm local parts rules for major mailboxes, filtering out incorrect email addresses, like using a + sign for a Gmail account

  • Badge Check

    Catch typos and common misspellings in domain names that come from filling out forms, like spelling “@outlooks” instead of “@Outlook.”

  • Badge Check

    Back-end technical checks on MX records, SMTP mail servers, regular expression (regex) JavaScript, and more.

All of this happens thanks to Mailgun’s real-time API for developers. This email verification service gives you confidence that your email list is full of real people interested in your content, products, or services. No more bad data!

Illustration showing the API organization.

Validate with confidence

Go beyond the basics, check against:​

Inbox icon

Mailbox/MX verification

Email icon

Role-based address verification

Trashcan icon

Disposable address verification

Ink pen icon

RFC grammar rule check

AI text icon

Suggestions on suspected typos

Hook icon

Catch-all address verification

Privacy icon

Email alias identification and suggestions

Warning sign icon

New or risky domain analysis

See what you can accomplish with the world's best email delivery platform

It's easy to get started. And it's free.
CTA icon