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
/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.
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Conditional | The full email address to check (e.g., [email protected]) |
domain | string | Conditional | A domain name to check (e.g., tempmail.com) |
Example Requests
GET Request with Email
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
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.
{
"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.
{
"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
successbooleanIndicates whether the API request was processed successfully.
dataobjectThe response payload containing all verification results.
is_validbooleanWhether the domain could be parsed and validated structurally. Does not indicate the email address itself exists.
is_disposablebooleanWhether 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_providerbooleanWhether the domain is a well-known public email provider (e.g., Gmail, Yahoo, Outlook). Useful for distinguishing personal vs. business emails.
has_mxbooleanWhether the domain has valid MX (mail exchange) records. Domains without MX records typically cannot receive email.
domainobjectParsed domain components.
subdomainstring | nullThe subdomain portion, if present (e.g., 'mail' in mail.example.com).
domainstringThe second-level domain (e.g., 'gmail' in gmail.com).
suffixstringThe top-level domain or public suffix (e.g., 'com', 'co.uk', 'name.ng').
registered_domainstringThe full registered domain (e.g., 'gmail.com', 'capcut10.name.ng').
is_validbooleanWhether the domain structure is valid.
mx_recordsarrayList of MX (mail exchange) records resolved for the domain via live DNS lookup.
hoststringThe MX hostname (e.g., 'gmail-smtp-in.l.google.com').
ipstringThe resolved IP address of the MX host.
providerobject | nullInformation about the disposable email provider, if the email was flagged as disposable. Null for legitimate emails.
domainstringThe domain of the identified disposable email provider.
emailobject | nullNormalized email data. Only present when an email (not just a domain) is provided.
normalizedstringThe normalized form of the email address (e.g., dots removed for Gmail).
ascii_emailstringThe 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:
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.
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.
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.
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
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
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
$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.