Table of Contents
Developers often need to validate emails. This helps ensuring they are reliable and up-to-date. It also assists in determining if an email address is worth mailing.
Regex validation is not enough, though. Regex will check the validity of the email format but not its real online presence. That’s why Explorium created a super simple API for email validation. With Explorium, you can get an indication of an email address’s mailbox validity, whether it uses a business domain or a free email service, and how risky the email address is deemed to be. Explorium offers you 500 enrichments a month for free.
Here’s a code I created that validates a list of emails using Python:
import requests
import pandas as pd
def validate_emails(df):
url = "https://app.explorium.ai/api/bundle/v1/enrich/email-validation"
payload = [{'email': email} for email in df['email']]
headers = {"API_KEY": "<YOUR_API_KEY>"}
response = requests.post(url, json=payload, headers=headers).json()
df['Status'] = [res['Status'] for res in response]
return df
emails_df = pd.DataFrame(["[email protected]", "[email protected]", "[email protected]"], columns=['email'])
validated_emails_df = validate_emails(emails_df)
print(validated_emails_df)
It will print:
email Status
0 [email protected] valid
1 [email protected] valid
2 [email protected] None
To get started, all you need to do is signup and get your API key here, It takes a minute.
Here’s Explorium’s Email Validation API documentation.
In addition to email validation, Explorium also offers data about companies (such as the number of employees, revenue, industry, etc.), individuals data (personal & business emails, phone numbers, names, job title, working company) and geospatial data (Points of interest, real estate, etc.).
If you want to learn more about Explorium, I recommend you to check out the API Documentation and the Data Catalog.