Download OpenAPI specification:Download
Email Academy API provides the usage of its various tools through an API
Each tool has its own usage limits. This endpoint provides the current usage and limits for the given tool.
api_key required | string Example: api_key=your-api-key The user's API key |
tool required | string Enum: "blacklist_checker" "email_verifier" "bounce_code_analyzer" "inbox_tester" "spfdkim_tester" "rdns_tester" "blacklist_monitor" "website_monitor" Example: tool=email_verifier The name of the tool |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/tool-limits?api_key=your-api-key&tool=email_verifier',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "limit": 500,
- "used": 325,
- "period": "monthly"
}
Validate an IP or domain through various blacklists
Request parameters for blacklist checker
host | string The domain or IP |
api_key | string The user's API key |
{- "api_key": "your-api-key",
- "host": "example.com"
}
{- "results": [
- {
- "blacklist": "all.s5h.net",
- "status": "clear"
}, - {
- "blacklist": "dnsbl-3.uceprotect.net",
- "status": "blacklisted"
}, - {
- "blacklist": "web.dnsbl.sorbs.net",
- "status": "clear"
}
]
}
Validate an IP or domain through various blacklists
api_key required | string Example: api_key=your-api-key The user's API key |
host required | string Example: host=example.com The domain or IP |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist?api_key=your-api-key&host=example.com',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "results": [
- {
- "blacklist": "all.s5h.net",
- "status": "clear"
}, - {
- "blacklist": "dnsbl-3.uceprotect.net",
- "status": "blacklisted"
}, - {
- "blacklist": "web.dnsbl.sorbs.net",
- "status": "clear"
}
]
}
Upload a file of IPs and domains for blacklist check
Request parameters for uploading a file
file required | any <binary> The file containing the IPs and domains |
api_key required | string The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist/file/check',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('api_key' => 'your-api-key','file'=> new CURLFILE('/path/to/file')),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "file_id": "1628750661SHYNuWITqYoeWc"
}
Get a list of files with detailed information of the files
api_key required | string Example: api_key=your-api-key The user's API key |
offset | string Example: offset=5 Optional offset for pagination. Defaults to 0 |
count | string Example: count=15 Optional count for pagination. Defaults to 10 |
file_id | string Example: file_id=1628750661SHYNuWITqYoeWc Optional file ID filter. Exact file ID must be given. |
file_name | string Example: file_name=bounce Optional file name filter. The given string will be looked up in the file name. |