Getting Started

SureVerify Email verification uses a simple HTTP GET or POST to allow the easiest integration into your front-end web forms or your back-end for bulk processing. Simply provide the type of validation (email), your API key and the email address you want to verify.

Our service will provide with the most accurate response we have available. Batch and in-form examples are provided below. Of course any language capable of performing an HTTP GET or POST can be used and your specific implementation may vary depending on your environment.

Parameters

Parameter Description
type=emailType of verification. Currently only 'email' is supported.
key=<API KEY>Your API Key.
email=<EMAIL TO VERIFY>Email address to be verified.

Response Codes

Response Code Description
validEmail address is valid and active.
invalidEmail is not a valid address.
invalidFormatEmail is not in the correct format.
tempDomainDomain is a known temporary domain.
unknownVerification of this email address is not currently possible.

Batch Example (PHP)

Using PHP with CURL to post to SureVerify Email Validation API

<?php
// email address to test 
$email 'test@example.org'
$apikey 'yourapikey';

$url "http://api.sureverify.com?type=email&key=$apikey&email=$email";

// set our CURL configurations
$ch curl_init();
curl_setopt($chCURLOPT_URL$url);

// we want a response from the curl call
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);

// 15 second timeout
curl_setopt($chCURLOPT_TIMEOUT15);

// post to sureverify.com
$output curl_exec($ch);

// close the curl connection
curl_close($ch);

// this is the response code returned from SureVerify 
echo $output

In-Form Example (JQuery)

var apiKey = 'yourapikey';
var email = 'test@example.org';

$.ajax({
        type: "POST",
        cache: false,
        url: "http://api.sureverify.com/email_validation.php?type=email&key=" . apiKey . "&email=" + email, 
        dataType: "jsonp",
        error: function(jq, st, error) {
        },
        success: function(data) {
          console.log(data);
        },
    });