This is a php code snippet that I wrote for a website. Thought it might be useful for some one else as I was unable to find any API to check whether the given email address is a free one or not.
There are thousands of websites provide free email address like Yahoo or Gmail.
This database has over 1000 free email id providers.
$email = $_REQUEST[’email’];
$data = json_decode(file_get_contents("http://vivekv.com/tools/freeemail/index.php?email=$email"),true);
The direct link to the API is
You’ll get a JSON encoded result. Converting it to array, you will get
[result] => true
[email] => firstname.lastname@example.org
[description] => yahoo.com is believed to be a free email provider
[provider] => yahoo.com
Result = True, means the email provider is a free email provider.
Hope this helps.