This API provides a service to validate email addresses and retrieve information related to the associated domain. Email validation ensures that the entered emails are valid and safe, and the API retrieves information about the domain for further analysis.
Endpoint: /validate_email
Method: GET
Request Parameters:
email
(string): The email/domain address to be validated.Example Request:
{
"email": "user@domain.com" #You can also use directly the domain
}
Successful Response:
{
"email": "user@domain.com",
"validation": true,
"status":{
"is_valid":true,
"reason": "Server is Online"
}
"info_mx": {
"domain": "domain.com",
"mx_host":"mai.domain.com."
"mx_ip":"0.0.0.0"
"priority":100
}
}
Error Response:
{
"error": "Invalid domain"
}
email
: The email/domain address provided for validation.is_valid
: A boolean value indicating if the email address is valid.info_mx
: Information related to the domain associated with the email.Note: The endpoint accepts either an email address or a domain. If a domain is provided, it will be validated as well.