Single Email Validator - Real time

Below you will find the instructions on how to use our API, it's very easy to use and requires SSL. The API requires that you have an active credit balance and will never consume a credit for any unknown result. This endpoint can be called asynchronously and is currently not rate limited.

The response time for our API is between one second and 70 seconds. Since API's are meant to be fast by nature, we limit the amount of time we spend validating an email address. So if we encounter a slow mail server or a mail server with a greylisting algorithm you will get an unknown result. You can always re-validate those conditions, uploading a file to the bulk email validator.

On average 96-98% of all domains will return in 1 to 5 seconds, there are a handful of domains that run off Postfix/Dovecot that have a 20 second connection time for real-time validations and a very small fractional percentage of other domains that are very slow to respond to SMTP inquiries. All the major ISP will return in 1 to 3 seconds, which is usually the majority of most email distribution.

GET API USAGE CODE SAMPLES



                            <?php

                            // Complete API Libraries and Wrappers can be found here: 
                            //set the api key and email to be validated
                            $api_key = 'Your Secret Key';
                            $emailToValidate = '[email protected]example.com';
                            $IPToValidate = '99.123.12.122';
                            // use curl to make the request
                            $url = 'https://api.kasplo.com/v2/validate?api_key='.$api_key.'&email='.urlencode($emailToValidate).'&ip_address='.urlencode($IPToValidate);

                            $ch = curl_init($url);
                            //PHP 5.5.19 and higher has support for TLS 1.2
                            curl_setopt($ch, CURLOPT_SSLVERSION, 6);
                            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                            curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); 
                            curl_setopt($ch, CURLOPT_TIMEOUT, 150); 
                            $response = curl_exec($ch);
                            curl_close($ch);
                            //decode the json response
                            $json = json_decode($response, true);
                            ?>