Automate your validations easily

curl 'https://email-valid.com/validate.php?email=email@example.com'
Or just go to https://email-valid.com/validate.php?email=email@example.com in your browser.
Easy, huh?

Validate new customers on the fly using your favourite language

Use the following example as an starting point.
<?php
$url = 'https://email-valid.com/validate.php?email=email@example.com';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = json_decode(curl_exec($ch));
curl_close($ch);
echo json_encode($result, JSON_PRETTY_PRINT);

Batch validation is available via API too

Just add a newline between addresses.
<?php
$url = 'https://email-valid.com/validate.php?email=email1@example.com%0Aemail2@example.com%0Aemail3@example.com';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = json_decode(curl_exec($ch));
curl_close($ch);
echo json_encode($result, JSON_PRETTY_PRINT);

The request will return you something like this

It is a JSON encoded array.
[
    {
        "email": "email1@example.com",
        "result": "1"
    },
    {
        "email": "email2@example.com",
        "result": "1"
    },
    {
        "email": "email3@example.com",
        "result": "1"
    }
]

This are the possible "result" values and their meaning

Although for most use cases, you will only have to chek if it is equal to 0.
0: Valid email
1: This email address is not registered
2: This domain cannot receive emails
3: This does not look like an email address
4: Empty email address
5: You have exceeded your API limit

What if I already have a token?

Add the token parameter to the request.
curl 'https://email-valid.com/validate.php?token=YOURTOKEN&email=email@example.com'
You can test this with your browser opening https://email-valid.com/validate.php?token=YOURTOKEN&email=email@example.com,
just make sure you change the token by the one you got.