Validate an email address for real — syntax, live MX record, disposable-domain check. $0.005 per request.
Checks an email address's syntax, performs a live DNS lookup to confirm the domain can actually receive mail (MX record), and flags known disposable/temp-email domains.
| Method | POST |
|---|---|
| Path | /validate |
| Content-Type | application/json |
| field | required | description |
|---|---|---|
email | yes | The email address to validate |
curl -X POST https://email-validator.pdfextractapi.workers.dev/validate \
-H "Content-Type: application/json" \
-d '{"email": "someone@example.com"}'
{
"email": "someone@example.com",
"valid": true,
"syntax_valid": true,
"has_mx_record": true,
"is_disposable": false,
"reason": null
}
Errors return a non-200 status with { "error": { "code": "...", "message": "..." } }. Common code: missing_email.
This endpoint is paid per-request via the x402 protocol (HTTP 402 + USDC). Unpaid requests receive a 402 response with payment instructions.