TempMailDetector offers a powerful email validation API to
identify temporary and disposable email addresses in real-time.
Integrate in minutes with AI
Paste our prompt into ChatGPT, Claude or Cursor and let
it wire up the API for you.
Why Use TempMailDetector?
Stop Abuse
— Prevent signups from disposable email services that are
commonly used for spam and fraud
Improve Data Quality
— Ensure you're collecting genuine, long-term user contact
information
Simple Integration
— One API call to check any domain or email address
Real-Time Updates
— Our database is continuously updated with new temporary
email providers
Getting Started
To use the TempMailDetector email validation API, you'll first
need a key. Each account includes free lookups monthly, with
options to purchase additional lookups as needed.
Take a look at the
Check Endpoint
tab to learn how to integrate the API into your application, and
review the
Quota Endpoint
tab to programmatically track your account and lookups.
Endpoint
/check
Checks if an email address is a temporary or disposable email
address.
Important:
When implementing this email validation API, you should never
send us your customer's full email. We only validate the domain,
and where a full email is provided, we strip away the user part
before processing the request.
Important:
Due to sub-domains (
sub.test.com
) and multi-level country codes (
sub.test.co.uk
), you should split your email string using
@
and send the full domain in your request.
URL
POST https://api.tempmaildetector.com/check
Headers
Content-Type: application/json
Authorization: Bearer {YOUR_API_KEY}
Request Body
The request body should be in JSON format and contain the
following parameter:
domain
(string, required): The domain (also known as the host) of
the email address to be checked.
A risk score from 0 - 100.
You are advised to block >= 75.
meta
object
Meta object containing additional information about
the domain provided.
meta.block_list
bool
Indicates if the domain is already in the block
list.
meta.domain_age
int
Domain age in years. -1 indicates that a WHOIS did
not provide a creation date.
meta.website_resolves
bool
Indicates if the email domain has a resolvable
website.
meta.accepts_all_addresses
bool
Indicates if the email domain accepts any email
address.
meta.valid_email_security
bool
Indicates if the email domain has valid email
security measures in place.
meta.forwarding
bool
Indicates if the email is using a forwarding
service.
Error Handling
The API will return appropriate HTTP status codes to indicate
success or failure of the request. Common status codes include:
200 OK
: The request was successful.
400 Bad Request
: The request was malformed or missing required parameters.
401 Unauthorized
: The API key provided is invalid or missing.
402 Payment Required
: Your account has run out of lookups.
500 Internal Server Error
: An error occurred on the server.
Good to know:
invalid_domain_or_mx
is returned when an invalid domain such as
gmail.cim
is provided or a mail server could not be found.
error_processing_domain
is returned when a domain could not be processed, or a
malformed domain is provided.
no_lookups_remaining
is returned when your key has run out of lookups.
Ensure to handle these responses appropriately in your
application.
Quota Endpoint
Retrieve your remaining lookup quota and overage settings. This
is particularly useful and often used by larger customers who
require programmatic tracking of usage.
Number of standard lookups remaining in your current
billing cycle
overage_enabled
bool
Whether your account is configured to allow overage
lookups beyond the standard quota
overage_count
int
Number of overage lookups already used in the
current billing cycle
overage_limit
int
Maximum number of overage lookups allowed per
billing cycle
Error Handling
200 OK
: The request was successful.
401 Unauthorized
: The API key is invalid or missing.
GDPR Statement
You should update your Terms of Service and GDPR statements
outlining that you make use of Temp Mail Detector as a 3rd party
Data Processor to manage email reputation and validation:
Our website uses
TempMailDetector.com
as a Data Processor to identify and block temporary or
disposable email addresses during sign-up. This helps
prevent abuse and is processed under our legitimate interest
in maintaining service integrity (GDPR Art. 6(1)(f)).
WordPress Plugin
Our
WordPress plugin
automatically validates user email addresses during registration
and checkout, blocking temporary and disposable email domains in
real-time.
Features
Blocklist
— Enter your own list of domains to block
Protect Comments
— Choose if you would like the plugin to mark comments as
spam
Protect WooCommerce
— Block temporary emails during WooCommerce checkout,
customer registration, and account updates
Plus Emails
— Block emails which have a + in the user part
External Check
— This makes use of the live Temp Mail Detector database for
real-time checks
Ghost Plugin
Automatically detect and remove members with temporary email
addresses when they sign up to your
Ghost
publication. By configuring a
member.added
webhook, Ghost sends each new member to our endpoint where we
score their email domain and optionally delete or disable the
member via the Ghost Admin API if it looks disposable.
1. Connect Your Ghost Site
In your Ghost admin panel, go to
Settings → Integrations → Add custom integration
. Name it (e.g. "TempMailDetector") and copy the
Admin API key
.
In your
TempMailDetector account settings → Plugins
, enter your Ghost site URL and Admin API key, and choose
what should happen when a disposable address is detected:
delete the member
(default) or
unsubscribe them from all newsletters
.
2. Configure Your Webhook
In the same Ghost custom integration, under
Webhooks
, add a new webhook with event
Member added
and the following target URL. Enter your TempMailDetector API
key below to generate it.
Fill in your API key above to generate the URL.
Copied to clipboard.
Each new member is now checked on signup, and members with a
disposable email address are handled automatically using the
action you chose in your account settings.
Manual testing is nice, but integrating with our API lets you check every signup automatically. Get started for free and receive 200 lookups per month.