Comments For Entry #4084

Simple APIs: Email Service Provider validator and TLD Email Extractor(Comments RSS)

I have developed a couple of simple single-purpose APIs. In part because they can help a project I am working on with a colleague, but also in part just for fun:

1) Email Service Provider Validator REST API

Query this REST API with any domain as the parameter and find out whether the domain belongs to a public free email service provider. The API currently recognizes over 6,000 domains that host free email services, and that number grows every day. Applications include checking to allow only corporate emails, or blocking registrations from free email providers.


For example: https://www.sevenj.com/rosterapi/v1/emailprovider?domain=hotmail.com, will return the following:

{ "isProvider": 1, "domain": "hotmail.com" }


2) TLD Email Extractor REST API
Query this REST API with any email address and it will extract and return the top level domain (TLD) against Mozilla TLDs official listing. It supports a range of scenarios with domains and subdomains, including .edu, .co.uk, and others. It also supports parsing unknown TLDs.


For example: https://www.sevenj.com/rosterapi/v1/tld-extract?emailaddress=tom.jones@mail.company.com, will return the following:

{ "tld": "company.com", "emailaddress": "tom.jones@mail.company.com" }

The APIs support SSL return JSON and are built on node.js and Express.





Add New Comment

Name:         

E-mail:        

Password: 

Content (HTML not allowed)