Validator.pizza
Useful like a validator, tasteful like a pizza

About

Validator.pizza is a free tool that allows you to check if a domain or an email is valid.



Validate emails

Complex regular expressions to validate any emails


Block disposable emails

2606 domains and counting!
(last update 6 days ago)


Check MX records

Verify that the domain has MX records


Detect alias

Tells you if the email is an alias

Try it!

Documentation


Validate an email

GET https://www.validator.pizza/email/email@example.com

Response (JSON)

// Valid email
{
    "status": 200,
    "email": "email@example.com",
    "domain": "example.com",
    "mx": false,
    "disposable": false,
    "alias": false
}
// Invalid email
{
    "status": 400,
    "error": "The email address is invalid."
}

Validate a domain

GET https://www.validator.pizza/domain/example.com

Response (JSON)

// Valid domain
{
    "status": 200,
    "domain": "example.com",
    "mx": false,
    "disposable": false
}
// Invalid domain
{
    "status": 400,
    "error": "The domain is invalid."
}

PHP code example

<?php

$email = "email@example.com";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.validator.pizza/email/' . $email);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);

var_dump($response);