PHP

$ch = curl_init('https://api.inboxhit.com/v1/validate-email');

$jsonData = array(
    'apiKey' => 'YOUR API KEY',    
    'payload' => 'someone@disposableemail.com'
);

$jsonDataEncoded = json_encode($jsonData); 
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$result = json_decode($response);

if($result->payload->disposable > 0.9) {
    echo "email is disposable. do not accept it!";
}

Docs .NET

Get Started Now

Use InboxHit online solution to boost your email deliverability. Get 1000 welcome credits.

Click your favorite button below for a one-click sign-up.

Google Twitter Facebook LinkedIn

InboxHit provides solutions and services to boost email deliverability, increase email marketing efficiency and achieve 100% innox hit rate. Use InboxHit API to detect disposable emails, block disposable emails, detect and block DEAs, validate email addresses, check if a mailbox exists, reduce bounces, boost deliverability, increase email marketing efficiency, reduce email delivery costs. InboxHit API is also available on RapidAPI.