The Disposable Email Checker API allows you to check whether a given email address is from a disposable email provider.
https://api.api-ninjas.com/v1/disposableemailchecker
Returns metadata for a given email address, including whether it is from a disposable email provider. We maintain a large database of hundreds of thousands of disposable domains and check against it for every email address.
email
requiredEmail address to check.
X-Api-Key
requiredAPI Key associated with your account.
domain
stringDomain of the email address.
email
stringEmail address.
is_disposable
booleanWhether the email address is disposable.
https://api.api-ninjas.com/v1/disposableemailchecker?email=asdf@ingitel.com
Headers
X-Api-Key
Log in or sign up to get your API Key
1
2
3
4
5
{
"email": "asdf@ingitel.com",
"domain": "ingitel.com",
"is_disposable": true
}
1
2
3
4
5
6
7
8
9
import requests
email = 'asdf@ingitel.com'
api_url = 'https://api.api-ninjas.com/v1/disposableemailchecker?email={}'.format(email)
response = requests.get(api_url, headers={'X-Api-Key': 'YOUR_API_KEY'})
if response.status_code == requests.codes.ok:
print(response.text)
else:
print("Error:", response.status_code, response.text)
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.