PHP library that makes querying Antideo's REST API easy.
How to use:
include_once('Antideo.class.php');
$antideo = new Antideo();
Query any email address and get its SPAM & SCAM scores. You will also be able to determine if given email is comming from free provider like Yahoo and GMAIL, or is part of disposable/temporary email address networks and providers.
More details: Email Address Validation Endpoint
try {
$emailResult = $antideo->email('john.doe@example.com');
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), "\n";
}
Query any IP address to see its WHOIS details.
- Organisation name
- Organisation ASN
- Organisation country
- IP Registry (arin, afrinic, apnic, ripe, lacnic)
- Category - (Mobile, Hosting, Bank, Government, Education)
More details: IP Info endpoint
try {
$ipInfo = $antideo->ipInfo('1.2.3.4');
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), "\n";
}
Queries IP address health and returns the following:
- Toxic
- Spam
- Proxy (if is know TOR project exit node, Anonimous or Open proxy etc.)
More details: IP Health Check Endpoint
try {
$ipHealth = $antideo->ipHealth('1.2.3.4');
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), "\n";
}
Provides the following geolocation details for any IP address.
- Latitude
- Longitude
- Accuracy (from 1 to 1000)
- City
- Country
- Country code (ISO code)
More details: Get IP location Endpoint
try {
$ipLocation = $antideo->ipLocation('1.2.3.4');
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), "\n";
}
If for any reason the API query fails you will get an exception, so it's very important to handle them in order to prevent unexpected behaviour. As demonstrated in the examples above all exceptions are catched. To grab the HTTP response code from the exceptions use $e->getCode()