How do I integrate the Kleanmail API ?

You can easily integrate our lightning fast validation API into your website or application, with only a few lines of code. Use our API Sandbox to test your implementation for all the different Email Validation Status Codes.

Javascript
PHP
PYTHON
NODE.JS
JAVA
C#
    var settings = {
      "url": "https://api.kleanmail.com/record_verification/api_record",
      "method": "POST",
      "timeout": 0,
      "headers": {
      "api_key": "api_key::_xxxxxx.................", // Your API KEY
      "Content-Type": "application/json"
      },
      "data": JSON.stringify({
        "record": "example@example.com" // Record
      }),
    };

    $.ajax(settings).done(function (response) {
        console.log(response);
    });
Response
{
    "record":"example@example.com",
    "is_validformat":true,
    "is_freeesp":true,
    "is_disposable":false,
    "is_catchall":false,
    "is_exist":true,
    "is_greylisted":false,
    "is_spamtrap":false,
    "is_deliverable":true,
    "delivery_status":"deliverable",
    "is_error":false,
    "message":"mailbox is deliverable",
    "status":1
}