Email Validator
This API endpoint verifies email addresses in real-time by pinging the mail server. It checks for syntax validity, domain existence, and mailbox deliverability without sending an actual email, helping you reduce bounce rates and maintain a clean user database.
Endpoint
POST https://api.zapifyapi.com/v1/{api_token}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| api_token | string | Required. Your unique API access token for the Email Validator service. |
Request Body
The request expects a JSON object.
| Key | Type | Description |
|---|---|---|
| string | Required. The email address you want to validate. |
Example Request
cURL
curl -X POST "https://api.zapifyapi.com/v1/YOUR_API_TOKEN"
-H "Content-Type: application/json"
-d '{
"email": "[email protected]"
}'
Node.js
const axios = require("axios");
const payload = {
email: "[email protected]"
};
axios.post("https://api.zapifyapi.com/v1/YOUR_API_TOKEN", payload)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
Response
Returns a JSON object with validation details including format validity, deliverability status, MX records, and a trust score.
{
"email": "[email protected]",
"is_valid_format": true,
"is_deliverable": true,
"mx_records": [
"mx1.example.com",
"mx2.example.com"
],
"score": 0.95
}