Email Validation API

Email Validation API

Parse and validate email addresses

Introduction

The Email Validation API is a powerful tool that allows you to parse and validate email addresses. Email verification API provides detailed results and validation scores, giving you information about the validity of an email address.

Features

  • Detailed Results and Validation Scores: Email verifier API provides comprehensive information about the validation of an email address, allowing you to assess its validity.
  • Validate MX and SMTP Records: Email verification API validates the MX (Mail Exchanger) and SMTP (Simple Mail Transfer Protocol) records associated with the email address, helping to verify if the email server is valid and reachable.
  • Regex Validation: Valid email API employs regular expression validation to check if the email address matches a valid email pattern.
  • Validates Common Typos: Email checker API includes a feature that validates common typos in email addresses, helping to identify potential errors or misspellings.

Getting Started

To access the Email validator API , you need to obtain an API key from AnyAPI.io. The API key is used for authentication and should be included in the request URL as a query parameter.

Let’s Try Sign In.

Email validation endpoint

Send a GET request to the following URL to Email validation

curl --request GET \
  --url 'https://anyapi.io/api/v1/email?email=abcd%40gmail.com&apiKey=YOUR_API_KEY'
{
  "valid": true,
  "email": "[email protected]",
  "validators": {
    "regex": {
      "valid": true
    },
    "typo": {
      "valid": true
    },
    "disposable": {
      "valid": true
    },
    "mx": {
      "valid": true
    }
  }
}

Request parameters

Use the parameters listed below to customize your request. Mandatory parameters are indicated

emailstringRequired
The email address to validate.
apiKeystringRequired
Your unique API key, which is required to authenticate your requests.

Response parameters

The API returns its response in a simple, lightweight JSON format.

validboolean
Is true if the email follows the format of “address @ domain . TLD”. If any of those elements are missing or if they contain extra or incorrect special characters, then it returns false.
emailstring
The value for “email” that was entered into the request.
validators.regex.validboolean
True indicates that the email format is valid.
validators.typo.validboolean
True suggests that no such errors were detected.
validators.disposable.validboolean
True means the email is not considered a disposable email.
validators.mx.validboolean
True indicates that a valid MX record was found for the domain.

Response and error codes

Whenever you make a request that fails for some reason, an error is returned also in the JSON format. The errors include an error code and description, which you can find in detail below.

Status CodeTypeDetails
200OKThe request was successful.
400Bad RequestThe request was invalid or cannot be otherwise served.
401UnauthorizedAuthentication credentials were missing or incorrect.
422Quota reachedThe request cannot be served due to the application's rate limit having been exhausted for the resource.
404Not FoundThe requested resource could not be found.
429Too Many RequestsThe request cannot be served due to the application's rate limit having been exhausted for the resource.
500Internal Server ErrorSomething went wrong on the server.
503Service UnavailableThe service is temporarily unavailable.