What is it?
The Diwigo e-mail validation API checks an address without sending any e-mail: syntax, mail server (MX records), disposable providers, role accounts and typos such as gmial.com.
It answers with JSON and is included in the free plan: 10,000 requests per API key and per month.
Example request
GET https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com
Parameters
| Parameter | Description |
|---|---|
key | Your API key (required) |
email | Address to check |
Example response
{
"email": "john.doe@gmial.com",
"valid_syntax": true,
"accepts_mail": true,
"disposable": false,
"suggestion": "john.doe@gmail.com",
"verdict": "risky",
"reason": "Possible typo in the domain"
}
Code examples
curl "https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com"
const res = await fetch("https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com");
const data = await res.json();
console.log(data);
<?php
$response = file_get_contents("https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com");
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get("https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com")
print(response.json())
Use cases
- Catch typos in sign-up forms before they cost you a customer
- Block disposable e-mail addresses
- Clean mailing lists
E-mail validation: questions and answers
What does the E-mail validation API do?
The Diwigo e-mail validation API checks an address without sending any e-mail: syntax, mail server (MX records), disposable providers, role accounts and typos such as gmial.com.
How do I call the E-mail validation API?
Send a GET request to https://landing.diwigo.com/api/?key=YOUR_API_KEY&email=john.doe@gmial.com with your own API key instead of YOUR_API_KEY. It answers with JSON.
Is the E-mail validation API free?
Yes, it is included in the free plan: 10,000 requests per API key and per calendar month, shared by all Diwigo endpoints. Higher limits are available on request.