Email Verification API

Email Verification API

Validates and verifies an email address assessing deliverability and quality.
Free Plan $0.00 Monthly Subscribe
100 Requests / Monthly
Free for Lifetime
No Credit Card Required
MOST POPULAR
Starter Plan $14.99 Monthly Subscribe
5,000 Requests / Monthly
Standard Support
Syntax & Typo Check
Free & Disposable Provider Databases
Quality Score Feature
Real-time SMTP MX-Records Check
Catch-all Detection
Pro Plan $74.99 Monthly Subscribe
50,000 Requests / Monthly
Standard Support
Syntax & Typo Check
Free & Disposable Provider Databases
Quality Score Feature
Real-time SMTP MX-Records Check
Catch-all Detection
Enterprise Plan $249.99 Monthly Subscribe
250,000 Requests / Monthly
Standard Support
Syntax & Typo Check
Free & Disposable Provider Databases
Quality Score Feature
Real-time SMTP MX-Records Check
Catch-all Detection
Custom Plan Volume Monthly Contact Us
Any requests volume you need
Syntax & Typo Check
Free & Disposable Provider Databases
Quality Score Feature
Real-time SMTP MX-Records Check
Catch-all Detection

See it in Action!

There’s plenty of significant reasons behind having proper validation in place:

  • Sending emails to fake/no-longer-existent addresses will hurt your deliverability.
  • Mistyping an email address will block users from confirming their account or resetting a password.
  • Valid e-mail addresses, lets you stay in touch with users.

Test it

First, start by (free tier available), get your API key and you are ready. Next, you can test using the following cURL command.


curl --location --request GET 'https://api.apilayer.com/email_verification/[email protected]' \
--header 'apikey: YOUR API KEY HERE'

Yes!. so simple. :) Check the documentation tab for more information.

How it works

This API is the one and the only solid solution to verify that the e-mail address is valid, and reachable. We achieve this functionality by validation with regex, validating the DNS for MX records and than connecting the recipient's SMTP server for validation, without sending any email.

Yes! this email verification API actually connects to the mail server and checks in real-time if the email exists. We don't use historical data.This is the most robust and solid way that is possible within the SMTP protocol's limitations.

What information is provided with the API?

A sample response from the API is here:

is_disposable: Checks if the e-mail is from a disposable e-mail provider such as mailinator.com.

is_role_account: Role accounts are e-mail addresses such as [email protected] and [email protected] If your intention is to reach real person only, use this flag.

is_catch_all: A catch-all address is meant to catch all email sent to any non-existing email accounts on your domain.

is_inbox_full: If the remote user's inbox is full, this may be the reason for bounced e-mails.

is_disabled: Tells us if the remote account is disabled and unable to accept the e-mail you've sent.

Email Verification API: Use cases and examples
Blog Article
Email Verification API: Use cases and examples

Email Verification API Reference

This API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Just Getting Started?

Check out our development quickstart guide.

Authentication

Email Verification API uses API keys to authenticate requests. You can view and manage your API keys in the Accounts page.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

All requests made to the API must hold a custom HTTP header named "apikey". Implementation differs with each programming language. Below are some samples.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Endpoints

Validates and verifies an email address measuring deliverability and quality

Parameters

email (required)

Email to check

Location: Query, Data Type: string

** A word enclosed with curly brackets "{ }" in the code means that it is a parameter and it should be replaced with your own values when executing. (also overwriting the curly brackets).
Returns

Below is a sample response from the endpoint


If you wish to play around interactively with real values and run code, see...

Validates and verifies an email address measuring deliverability and quality

Parameters

email (required)

Email to check

Location: Path, Data Type: string

** A word enclosed with curly brackets "{ }" in the code means that it is a parameter and it should be replaced with your own values when executing. (also overwriting the curly brackets).
Returns

Below is a sample response from the endpoint


If you wish to play around interactively with real values and run code, see...

Rate Limiting

Each subscription has its own rate limit. When you become a member, you start by choosing a rate limit that suits your usage needs. Do not worry; You can upgrade or downgrade your plan at any time. For this reason, instead of starting with a larger plan that you do not need, we can offer you to upgrade your plan after you start with "free" or "gold plan" options and start using the API.

When you reach a rate limit (both daily and monthly), the service will stop responding and returning the HTTP 429 response status code (Too many requests) for each request with the following JSON string body text.

{
"message":"You have exceeded your daily\/monthly API rate limit. Please review and upgrade your subscription plan at https:\/\/apilayer.com\/subscriptions to continue."
}

A reminder email will be sent to you when your API usage reaches both 80% and 90%, so that you can take immediate actions such as upgrading your plan in order to prevent your application using the API from being interrupted.

You can also programmatically check your rate limit yourself. As a result of each request made to the APILayer, the following 4 fields provide you with all the necessary information within the HTTP Headers.

x-ratelimit-limit-month: Request limit per month
x-ratelimit-remaining-month: Request limit remaining this month
x-ratelimit-limit-day: Request limit per day
x-ratelimit-remaining-day: Request limit remaining today

You can contact our support unit if you need any assistance with your application regarding to handle the returned result by looking at the header information.

Error Codes

APILayer uses standard HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate a clientside error, which means that failed given the information provided (e.g., a missing parameter, unauthorized access etc.). Codes in the 5xx range indicate an error with APILayer's servers (normally this should'nt happen at all).

If the response code is not 200, it means the operation failed somehow and you may need to take an action accordingly. You can check the response (which will be in JSON format) for a field called 'message' that briefly explains the error reported.

Status Code Explanation
400 - Bad Request The request was unacceptable, often due to missing a required parameter.
401 - Unauthorized No valid API key provided.
404 - Not Found The requested resource doesn't exist.
429 - Too many requests API request limit exceeded. See section Rate Limiting for more info.
5xx - Server Error We have failed to process your request. (You can contact us anytime)

You can always contact for support and ask for more assistance. We'll be glad to assist you with building your product.

Reviews

5.00
  • Review rating
  • Review rating
  • Review rating
  • Review rating
  • Review rating
API rating
Ivan Cirlig
3 weeks ago

Ivan Cirlig

  • Review rating
  • Review rating
  • Review rating
  • Review rating
  • Review rating

Great service and easy to use!