Email
Verification

Detect disposable, temporary, and throwaway email addresses in real time. The endpoint performs live DNS resolution, MX record analysis, and cross-references against a continuously updated threat intelligence database.

Endpoint

GET/api/v1/disposable/check/

Pass either an email or domain as a query parameter.

Authentication

This endpoint requires an API key. Include your key in the X-sg-apikey header. See the Authentication page for details.

Parameters

Provide either an email or a domain parameter. If both are provided, the email takes precedence.

ParameterTypeRequiredDescription
emailstringConditionalThe full email address to check (e.g., [email protected])
domainstringConditionalA domain name to check (e.g., tempmail.com)

Example Requests

GET Request with Email

Check an email address
curl
curl -X GET "https://signupguard.io/api/v1/disposable/check/[email protected]" \
  -H "X-sg-apikey: sg-your-api-key-here"

GET Request with Domain

Check a domain only
curl
curl -X GET "https://signupguard.io/api/v1/disposable/check/?domain=tempmail.com" \
  -H "X-sg-apikey: sg-your-api-key-here"

Example Response — Disposable Email Detected

When a disposable or temporary email is detected, is_disposable will be true. The response also includes the associated MX records and the disposable email provider if known.

200 OK — Disposable email detected
json
{
  "success": true,
  "data": {
    "is_valid": true,
    "is_disposable": true,
    "is_public_email_provider": false,
    "has_mx": true,
    "domain": {
      "subdomain": "bmvmp",
      "domain": "capcut10",
      "suffix": "name.ng",
      "registered_domain": "capcut10.name.ng",
      "is_valid": true
    },
    "mx_records": [
      {
        "host": "tm.xuanlich.com",
        "ip": "157.245.148.215"
      }
    ],
    "provider": {
      "domain": "tmail.xuanlich.com"
    }
  }
}

Example Response — Legitimate Email

For legitimate email addresses, is_disposable will be false. Public email providers like Gmail or Yahoo will be flagged with is_public_email_provider: true.

200 OK — Legitimate email
json
{
  "success": true,
  "data": {
    "is_valid": true,
    "is_disposable": false,
    "is_public_email_provider": true,
    "has_mx": true,
    "domain": {
      "subdomain": null,
      "domain": "gmail",
      "suffix": "com",
      "registered_domain": "gmail.com",
      "is_valid": true
    },
    "mx_records": [
      {
        "host": "gmail-smtp-in.l.google.com",
        "ip": "142.251.41.27"
      }
    ],
    "email": {
      "normalized": "[email protected]",
      "ascii_email": "[email protected]"
    }
  }
}

Response Fields

successboolean

Indicates whether the API request was processed successfully.

dataobject

The response payload containing all verification results.

is_validboolean

Whether the domain could be parsed and validated structurally. Does not indicate the email address itself exists.

is_disposableboolean

Whether the email domain is a known disposable, temporary, or throwaway email provider. This is the primary field you should use for blocking fake signups.

is_public_email_providerboolean

Whether the domain is a well-known public email provider (e.g., Gmail, Yahoo, Outlook). Useful for distinguishing personal vs. business emails.

has_mxboolean

Whether the domain has valid MX (mail exchange) records. Domains without MX records typically cannot receive email.

domainobject

Parsed domain components.

subdomainstring | null

The subdomain portion, if present (e.g., 'mail' in mail.example.com).

domainstring

The second-level domain (e.g., 'gmail' in gmail.com).

suffixstring

The top-level domain or public suffix (e.g., 'com', 'co.uk', 'name.ng').

registered_domainstring

The full registered domain (e.g., 'gmail.com', 'capcut10.name.ng').

is_validboolean

Whether the domain structure is valid.

mx_recordsarray

List of MX (mail exchange) records resolved for the domain via live DNS lookup.

hoststring

The MX hostname (e.g., 'gmail-smtp-in.l.google.com').

ipstring

The resolved IP address of the MX host.

providerobject | null

Information about the disposable email provider, if the email was flagged as disposable. Null for legitimate emails.

domainstring

The domain of the identified disposable email provider.

emailobject | null

Normalized email data. Only present when an email (not just a domain) is provided.

normalizedstring

The normalized form of the email address (e.g., dots removed for Gmail).

ascii_emailstring

The ASCII-encoded version of the email address.

How Detection Works

The email verification endpoint uses a multi-layered approach to determine if an email address is disposable:

1

Domain Database Lookup

The email's domain is checked against a comprehensive database of known disposable email domains. This database is continuously updated and contains millions of entries.

2

Live MX Resolution

The domain's MX records are resolved in real time via DNS. This catches disposable domains that share mail infrastructure with known providers, even if the domain itself is brand new.

3

MX & IP Fingerprinting

The resolved MX hostnames and IP addresses are compared against known disposable email provider infrastructure. This allows detection of new domains that reuse existing disposable mail servers.

4

Provider Attribution

If a match is found, the response includes the identified disposable email provider, giving you visibility into which service was used.

Common Use Cases

  • Registration forms: Block disposable emails at signup to prevent fake accounts and trial abuse.
  • Newsletter subscriptions: Ensure only valid email addresses are added to your mailing list.
  • E-commerce checkouts: Reduce chargebacks and fraud by flagging orders placed with throwaway email addresses.
  • Lead qualification: Distinguish between personal (public provider) and business email addresses to prioritize leads.
  • Account security: Flag password reset or account recovery attempts using disposable emails.

Integration Examples

Python

python — requests
python
import requests

response = requests.get(
    "https://signupguard.io/api/v1/disposable/check/",
    params={"email": "[email protected]"},
    headers={"X-sg-apikey": "sg-your-api-key-here"}
)

data = response.json()

if data["data"]["is_disposable"]:
    print("Disposable email detected — block signup")
else:
    print("Email appears legitimate")

JavaScript / Node.js

javascript — fetch
javascript
const response = await fetch(
  "https://signupguard.io/api/v1/disposable/check/[email protected]",
  {
    headers: {
      "X-sg-apikey": "sg-your-api-key-here"
    }
  }
);

const { data } = await response.json();

if (data.is_disposable) {
  console.log("Disposable email detected — block signup");
} else {
  console.log("Email appears legitimate");
}

PHP

php — cURL
php
$ch = curl_init();

curl_setopt_array($ch, [
    CURLOPT_URL => "https://signupguard.io/api/v1/disposable/check/[email protected]",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "X-sg-apikey: sg-your-api-key-here"
    ],
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

if ($response['data']['is_disposable']) {
    echo "Disposable email detected — block signup";
} else {
    echo "Email appears legitimate";
}

Error Responses

Missing Parameter — 400

{
  "success": false,
  "errors": {
    "email": ["This field is required when domain is not provided."]
  }
}

Invalid Email Format — 400

{
  "success": false,
  "errors": {
    "email": ["Enter a valid email address."]
  }
}

For a complete list of error codes, see the Error Handling page.

Next Steps