API Almanac
API reference › Validate

Check an email address: syntax, normalised form, disposable and role-based flags, optional MX lookup

GET/v1/validate/email

GET/v1/validate/email

Check an email address: syntax, normalised form, disposable and role-based flags, optional MX lookup

Set mx=true to also check that the domain publishes MX records (a live DNS query).

PARAMETERS
emailquery · stringREQUIRED
Address to check
e.g. Jane.Doe+news@gmail.com
mxquery · boolean
Also look up MX records for the domain
e.g. false
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/validate/email?email=Jane.Doe%2Bnews%40gmail.com" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "input": "Jane.Doe+news@gmail.com",
  "valid": true,
  "reason": null,
  "local": "Jane.Doe+news",
  "domain": "gmail.com",
  "tag": "news",
  "normalized": "janedoe@gmail.com",
  "disposable": false,
  "role_based": false,
  "mx": {
    "found": true,
    "records": [
      {
        "preference": 5,
        "exchange": "gmail-smtp-in.l.google.com"
      }
    ]
  }
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.