← all guides

How to verify an email address in cURL

Verify whether an email address is real and deliverable — in real time, from cURL, using the MailTester Ninja API. One HTTP call. Nothing is stored on our side.

Code

curl -G "https://happy.mailtester.ninja/ninja" \
  --data-urlencode "email=someone@example.com" \
  --data-urlencode "key=YOUR_API_KEY"

What you get back

okAcceptedthe mailbox exists and accepts mail
koRejectedinvalid / undeliverable address
mbCatch-All / uncertaindomain accepts everything, or temporary state

Get a free API key at mailtester.ninja/api. Prefer a quick manual check? Use the free domain analyzer.

Built & updated automatically by MailTester Ninja — the email verifier that stores nothing. DNS-only, aggregate data, no personal information. · Index · Email checker · Tools · Guides · JSON API · ✓ Verify emails →