AI agents: the setup steps for Mailboxlayer are in the Agents section of this page (#agents) and as Markdown at /products/mailboxlayer/agents.md. Index of every APILayer API: https://apilayer.com/llms.txt

Mailboxlayer

Operational

Email Validation & Verification JSON API · by APILayer

Get your API key

Free plan · 100 requests / month · no card

Playground tab is switched off on the live page (AP-6510). Delete this widget to turn it back on.

Overview

API info

Mailboxlayer is a simple and powerful REST API that offers instant email address validation and verification. It helps developers fight fraudulent users and increase delivery rates by checking syntax, typos, and SMTP records in real-time using a lightweight JSON format.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/mailboxlayer/api/check?access_key=YOUR_ACCESS_KEY&email=support@apilayer.com"
Run it in the Playground

Example response

200 - OK
{
    "email": "support@apilayer.com",
    "did_you_mean": "",
    "user": "support",
    "domain": "apilayer.com",
    "format_valid": true,
    "mx_found": true,
    "smtp_check": true,
    "catch_all": false,
    "role": true,
    "disposable": false,
    "free": false,
    "score": 0.8
}

Features

  • Real-time verification

    Verify the actual existence of an email address using instant MX-record and Simple Mail Transfer Protocol (SMTP) checks. This ensures you only send emails to mailboxes that are active and able to receive messages.

  • Syntax & typo check

    Automatically check email syntax and detect potential typos in the domain name. The API provides “did-you-mean” suggestions (e.g., suggesting “gmail.com” if a user types “gmai.com”) to improve user experience and data quality.

  • Disposable & free provider detection

    Filter out disposable email addresses (e.g., Mailinator) and identify free email providers (e.g., Gmail, Yahoo) instantly. This helps you prevent fraudulent sign-ups and segment your user base effectively.

  • Quality & deliverability score

    Receive a numeric quality score between 0.01 and 1 for every verified email address. This score reflects the quality and deliverability of the email, allowing you to automatically filter “real” users from potential abusers.

Pricing

Flexible plans for every stage of growth

Start free. Upgrade when you go live.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get free API key

100 requests / month

Includes:

  • Email Validation
  • Syntax & Typo Check
  • Free/Disposable Provider DB
  • Quality Score
  • Non-commercial use
See all 11 features

Starter

For your first live product

$14.99/ month

Billed monthly

Then $0.011992 per extra request, up to 10,000 extra a month

Subscribe now

5,000 requests / month

Everything in Free, plus:

  • Real-time SMTP Check
  • MX-Records Check
  • 256-bit HTTPS Encryption
  • Catch-all Detection

+ 2 more

See all 11 features
Most popular

Professional

For growing traffic

$74.99/ month

Billed monthly

Then $0.0059992 per extra request, up to 100,000 extra a month

Subscribe now

50,000 requests / month

Everything in Starter, plus:

  • 10× the requests of Starter
  • Lower cost per request
  • Bulk Endpoint: 25 emails
See all 11 features

Enterprise

For high volume

$249.99/ month

Billed monthly

Then $0.00399984 per extra request, up to 500,000 extra a month

Subscribe now

250,000 requests / month

Everything in Professional, plus:

  • 5× the requests of Professional
  • Lower cost per request
  • Bulk Endpoint: 100 emails
See all 11 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

11 featuresFree$0Get free keyStarter$14.99/moSubscribeProfessional$74.99/moSubscribeEnterprise$249.99/moSubscribe
Email Validation
Syntax & Typo Check
Free/Disposable Provider DB
Quality Score
Real-time SMTP Check–
MX-Records Check–
256-bit HTTPS Encryption–
Catch-all Detection–
Bulk Endpoint––25 emails100 emails
Standard Support–
Commercial use–
Price per extra request after the monthly limitNone$0.011992$0.0059992$0.00399984

Playground

Try the API

Build a request in your browser and see the response it returns.

GET
smtp Optional
catch_all Optional

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Mailboxlayer to a project.

  1. 1Get an API key

    A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Mailboxlayer. The Free plan includes 100 requests / month and needs no credit card.

    Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).

  2. 2Keep the key out of code

    Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.

    Call Mailboxlayer from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/mailboxlayer/api
    Auth
    access_key query parameter
    Formats
    JSON
    Endpoints
    • /check Check email
    • /bulk_check Validate multiple emails (Professional and Enterprise)
    Shell
    curl "https://api.apilayer.net/mailboxlayer/api/check?access_key=$APILAYER_ACCESS_KEY&email=support@apilayer.com"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100Email Validation, Syntax & Typo Check, Free/Disposable Provider DB, Quality Score
    Starter5,000Real-time SMTP Check, MX-Records Check, 256-bit HTTPS Encryption, Catch-all Detection, Standard Support, Commercial use
    Professional50,000Bulk Endpoint: 25 emails
    Enterprise250,000Bulk Endpoint: 100 emails

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What is Mailboxlayer?

Mailboxlayer is a free, simple and powerful JSON API offering instant email address validation & verification via syntax checks, typo and spelling checks, SMTP checks, free and disposable provider filtering, and much more. Its system is REST-based, secured by 256-bit HTTPS encryption, and pursuing the goal of assisting developers and businesses in fighting fraudulent users, increasing success rates of email campaigns and only sending email to real customers.

At Mailboxlayer we believe that every online business should be verifying email addresses before letting them into their database, that is why we decided to offer 100 monthly validation requests for free. You can sign up for your free API Access Key here.

02.Who runs the Mailboxlayer API?

The Mailboxlayer API is a product built and maintained by APILayer, the company behind 17 developer APIs, including IPstack, Numverify and Weatherstack. You can learn more on the Why choose APILayer page.

03.How does the email validation work?

The API performs a multi-stage check: it first validates the email syntax, then checks for valid MX records and SMTP server responses, and finally cross-references the domain against a database of known disposable and free email providers.

04.What information does the API return?

The API returns a detailed JSON object containing the email’s validity status, a quality score (0 to 1), a “did you mean” suggestion for typos, and flags for disposable, role-based, or catch-all addresses.

05.Can Mailboxlayer detect "catch-all" addresses?

Yes, the API can identify if an email domain is configured as a “catch-all” server (one that accepts all emails sent to it, regardless of the recipient). This helps you segment your lists and avoid low-quality leads.

06.How accurate is the SMTP Check?

In most cases the Mailboxlayer API's SMTP check is entirely accurate when it comes to detecting whether or not an email address actually exists. We are saying "most" cases because certain mail servers tend to suddenly behave in unexpected ways and cause trouble out of nowhere, which may decrease the effectiveness of "pinging" a mail server via SMTP at times.

Combined with all other Mailboxlayer validation tools, however, there is no better way to separate low-quality addresses from high-value email contacts and to successfully keep fraudulent users out of your system.

07.Why wouldn't I send email to free email addresses like "Gmail"?

Generally, sending email to free email addresses like "Gmail" or "Yahoo!" is perfectly okay. For certain types of email campaigns, however, it might make sense to sort out users utilizing free email providers in order to reduce bounce rates.

See the API's Documentation for details.

08.What's wrong with disposable email addresses like "mailinator.com"?

Email addresses like "mailinator.com" or "trashmail.com" are using disposable email providers, which offer an anonymous way to create a one-time email address. These inboxes are often publicly visible and associated with fraudulent behaviour. We highly advise against approving these types of email addresses in your system or list of recipients.

See the API's Documentation for details.

09.Is the Mailboxlayer API service secure?

Yes. Since we understand that your API requests may contain sensitive data, we offer paid customers the possibility to access the API and all data provided by and processed through it via industry-standard 256-bit HTTPS encryption.

See the API's Documentation for details.

API access

01.How do I get an API Access Key?

Every registered user is assigned a personal Access Key, a unique "password" that can be used to access and query the Mailboxlayer API. If you are logged in, you can find it in your Account Dashboard and in all interactive links contained in the API's Documentation.

In your Account Dashboard you can reset your Access Key at any given time.

In order to make an API Request, you are required to attach your Access Key to a valid API endpoint URL, e.g: https://api.apilayer.net/mailboxlayer/api/check?access_key=YOUR_ACCESS_KEY

02.What is an API request?

Pricing is based on the number of monthly API Requests offered for each individual Subscription Plan. Accessing any type of Mailboxlayer API data using a valid API Access Key counts as one "API Request".

03.What happens if I exceed my API Request volume?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly. You can learn more about overages billing here.

04.What is the API's uptime?

The Mailboxlayer API's system status is being closely monitored around the clock. Since every effort is made to ensure the highest possible level of consistency, we are happy to announce that our API's uptime is at around 99.9%. At the current stage we are not offering any public statistics, but we will be happy to provide you with recent uptime reports - ask us »

Plans & pricing

01.Is there a free plan available?

Yes, Mailboxlayer offers a free subscription plan that includes 100 API requests per month. It includes email validation, syntax and typo checks, free and disposable provider detection and the quality score, making it perfect for testing and small-scale applications.

02.How does pricing scale as my usage grows?

Paid plans start at $14.99/mo for 5,000 requests and scale up to the Enterprise plan with 250,000 monthly requests. Higher plans include more requests at a lower cost per request. You can view pricing features here.

03.What is the difference between Free and Paid Subscriptions?

The Free Plan is set out to be a "trial version" without a time limit, offering a volume of 100 monthly API requests.

Paid Subscription Plans feature significantly higher API Request volumes, ensure secure datastreams via 256-bit HTTPS Encryption, include unlimited and prioritised technical support, and offer a variety of must-have API functionalities.

04.Which Subscription Plan fits my needs?

In order to test the API and to get an idea of the product, you can simply sign up for the Free Plan.

As soon as you or your application requires more than 100 API requests per month and more professional API functionality, you would be well-advised to sign up for one of the paid Subscription Plans, starting at only USD 14.99 per month.

05.Which payment methods are supported?

Payments can be made via Credit Card (Visa, MasterCard, Discover, Diner's Club). You can change your payment method at any given time in the Payment section of your Account Dashboard.

06.Can I also pay yearly?

Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.

07.How do I cancel/downgrade?

You can initiate a cancellation or downgrade by selecting a new plan and providing at least one reason for your decision. The customer service team will cancel or downgrade your plan. Downgrades are not effective immediately; your premium subscription will remain active until the end of the current billing period.

08.How do I change between monthly and yearly billing?

To change your subscription from monthly to yearly billing, submit a request on the Contact Us page on the website following these steps:

Step 1: Sign in to your account

Step 2: Go to Contact Us page

Step 3: Fill out the form and choose the “Sales” category for this request.

Step 4: In the text box, include your specific request for example “Change from Monthly to Yearly subscription.”

Overages

01.What is an overage?

An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.

Prices for additional API calls will vary based on your plan. See the table below for prices per call and an example of an overage billing.

PlanMonthly priceRequests / monthPrice per extra requestExtra requestsOverage cost
Starter$14.995,000$0.01199210,000$119.92
Professional$74.9950,000$0.005999210,000$59.99
Enterprise$249.99250,000$0.0039998410,000$40.00

Note: For complete details, please refer to the overages documentation here.

02.Why does APILayer have overage fees?

Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.

03.How do I know if I will be charged for overages?

When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.

04.How will I be charged for my API subscription?

You will be charged for your monthly subscription plan, plus any overage fees applied. Your credit card will be billed after the billing period has ended.

05.What happens if I don't have any overage fees?

In this case, there will be no change to your monthly invoice. Only billing cycles that incur overages will see any difference in monthly charges. The Business Continuity plan is an insurance plan to be used only if needed and guarantees your end users never see a drop in coverage from you.

06.What if I consistently have more API calls than my plan allows?

If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base. Find out about our pricing plans here.

07.I would like to upgrade my plan. How can I do that?

You can easily upgrade your plan by going to your Dashboard and selecting the new plan that would be more suitable for your business needs. Additionally, you may contact your Account Manager to discuss a custom plan if you expect a continuous increase in usage.

Still have a question?

Contact support

Mailboxlayer reviews

4.3

11 reviews on G2

Source: G2.com, Inc.

See all on G2

Mailboxlayer has 11 reviews on G2.

View more on G2