API Documentation
CURL
curl --request GET \ --url
'https://api.mailxengine.com/check/Your_API_Key/[email protected]'
PHP
<?php
$ch = curl_init();
$url = 'https://api.mailxengine.com/check/Your_API_Key/[email protected]';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$response = json_decode($result);
echo "Email: ".$response->email;
echo "Status: ".$response->status;
echo "Format: ".$response->format_valid;
print_r($result);
curl_close($ch);
?>
$ch = curl_init();
$url = 'https://api.mailxengine.com/check/Your_API_Key/[email protected]';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$response = json_decode($result);
echo "Email: ".$response->email;
echo "Status: ".$response->status;
echo "Format: ".$response->format_valid;
print_r($result);
curl_close($ch);
?>
Jquery Ajax GET Request
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("#email").change(function () {
var email = $(this).val();
var api_key = "You API Key";
$.ajax({
type: "GET",
url: "https://api.mailxengine.com/check/"+api_key+"/" + email,
cache: false,
beforeSend: function () {},
success: function (data) {
var response = JSON.parse(data);
if(response.status){
$("#status").html("Valid email");
}
else{
$("#status").html("Invalid email");
}
},
error: function (data) {}
});
});
});
</script>
// HTML Code
<label>Email</label>
<input type="email" id="email" placeholder="[email protected]"/>
<span id="status"></span>
<script>
$(document).ready(function () {
$("#email").change(function () {
var email = $(this).val();
var api_key = "You API Key";
$.ajax({
type: "GET",
url: "https://api.mailxengine.com/check/"+api_key+"/" + email,
cache: false,
beforeSend: function () {},
success: function (data) {
var response = JSON.parse(data);
if(response.status){
$("#status").html("Valid email");
}
else{
$("#status").html("Invalid email");
}
},
error: function (data) {}
});
});
});
</script>
// HTML Code
<label>Email</label>
<input type="email" id="email" placeholder="[email protected]"/>
<span id="status"></span>
Jquery Ajax POST Request
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("#email").change(function () {
var email = $(this).val();
var api_key = "You API Key";
var post_data = { "api_key": api_key, "email": email };
$.ajax({
type: "POST",
url: "https://api.mailxengine.com/email",
cache: false,
data: JSON.stringify(post_data),
beforeSend: function () {},
success: function (data) {
var response = JSON.parse(data);
if(response.status){
$("#status").html("Valid email");
}
else{
$("#status").html("Invalid email");
}
},
error: function (data) {}
});
});
});
</script>
// HTML Code
<label>Email</label>
<input type="email" id="email" placeholder="[email protected]"/>
<span id="status"></span>
<script>
$(document).ready(function () {
$("#email").change(function () {
var email = $(this).val();
var api_key = "You API Key";
var post_data = { "api_key": api_key, "email": email };
$.ajax({
type: "POST",
url: "https://api.mailxengine.com/email",
cache: false,
data: JSON.stringify(post_data),
beforeSend: function () {},
success: function (data) {
var response = JSON.parse(data);
if(response.status){
$("#status").html("Valid email");
}
else{
$("#status").html("Invalid email");
}
},
error: function (data) {}
});
});
});
</script>
// HTML Code
<label>Email</label>
<input type="email" id="email" placeholder="[email protected]"/>
<span id="status"></span>