With the free block-trashmail.space API you can detect disposable email adresses.
There are currently ~180.000 domains in the database.
Database will be updated automatically every day.
In this repository you can find example functions for PHP, JavaScript, Python 2.x and Python 3.x
function callback(bool) {
console.log(bool.toString()); // true
}
isTrashmail("john.doe@trash-mail.com", callback);
isTrashmail("john.doe@trash-mail.com"); // returns true
Feel free to pull examples for other languages :)
https://www.block-trashmail.space/api/trash-mail.com
- OR -
https://www.block-trashmail.space/api/john.doe@trash-mail.com
If the email-domain is on our blacklist the API returns 1, otherwise 0.
Rate limiting:
none :)