RapidAPI logo

E-mail Check Invalid or Disposable Domain

FREEMIUM
By Top-Rated
Updated 4 months ago
Commerce
9.7/10
Popularity Score
1310ms
Latency
100%
Success Rate

E-mail Check Invalid or Disposable Domain API Documentation

Easily check if a certain e-mail address is valid. Is it a valid domain? Is the e-mail a temporary/disposable e-mail? That's a common indicator of spamming/trolling, so now there's an API for you so you can easily block it!

View API Details
GETmailcheck
GETmailcheck

Check if e-mail domain is valid, or a disposable/temporary address. Invalid domains (typos, non-responding mailserver, etc) will return "valid: false", "block: true". Disposable e-mail domains will return "valid: true" (since it's a valid domain), but "block: true" and "disposable: true".

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
domainSTRING
REQUIREDFull e-mail, or domain to check if valid or temporary/disposable. You can enter an e-mail address, and it will be converted to a domain, but entering just the domain is recommended for user privacy reasons.
Optional Parameters
disable_test_connectionBOOLEAN
OPTIONALIf this parameter is set to true, no connection test will be made to the mail server. This can greatly increase the speed of the validation, but will mark some domains which are missing a MX-pointer, and don't respond to port 25, as valid, which they potentially aren't. This does not affect disposable domain detection at all, just the validity of domains which are missing an MX-pointer.
Code Snippet
unirest.get("https://mailcheck.p.rapidapi.com/?disable_test_connection=true&domain=mailinator.com")
.header("X-RapidAPI-Host", "mailcheck.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://mailcheck.p.rapidapi.com/
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://mailcheck.p.rapidapi.com/?disable_test_connection=true&domain=mailinator.com")
.header("X-RapidAPI-Host", "mailcheck.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication