Block Trashmail Detect disposable email addresses and block them

How it works

You can check a domain for proving disposable email addresses, simply send a request via GET to the following address.

https://api.block-trashmail.de/check/example.com

Replace example.com with the domain name you want to check.

There are three different responses for a request which are listed below for reference.

Possible responses for a request

{
   "error": false,
   "results": {
      "domain": "example.com",
      "listed": true
   }
}

Domain name found

The domain name example.com was found in our database (listed = true).

{
   "error": false,
   "results": {
      "domain": "example.com",
      "listed": false
   }
}

Domain name not found

The domain name example.com wasn't found in our database (listed = false).

{
   "error": {
      "code": 400,
      "message": "Invalid domain name."
   },
   "results": null
}

Error on request

There was an error while processing your request. The common issue is that an invalid domain name was provided. Please also note, that since October 2020 we do only accept domain names but no email addresses anymore.

Limits

Per IP-address a maximum of 150 requests are allowed within 24 hours. Additionally to this there is also a certain requests allowed within a time to prevent flooding. This is handled dynamically and shouldn't affect you if you don't send tons of requests.