DEV Community

Temirlan Basitov
Temirlan Basitov

Posted on

๐Ÿš€ How I Built an Email Verifier API in Java (And Deployed It for Free)

Hey Devs ๐Ÿ‘‹

I recently built a simple but powerful Email Verifier API using Java and Spring Boot โ€” and deployed it for free using Railway. If youโ€™re building a SaaS, newsletter, or signup form, you know how important it is to filter out fake or invalid emails. So I decided to create my own solution.

Hereโ€™s a quick breakdown of how I did it ๐Ÿ‘‡

๐Ÿ› ๏ธ Tech Stack
Java 17

Spring Boot

Apache Commons Validator (for syntax checks)

DNS MX Record Lookup (to verify domain)

Railway (for hosting)

โš™๏ธ How It Works
The API accepts a POST request with an email address and returns a JSON response like:

{
"email": "test@example.com",
"isValidSyntax": true,
"hasMXRecord": true,
"isDisposable": false
}

๐Ÿ”— Try It Out
You can test the API here: https://temirlanbasitov.github.io/email-verifier-landing/

Top comments (0)