Email marketing
Check email domains, links and phone numbers in MailerLite
Check MailerLite subscribers by email domain and store the result in custom fields that groups and automations can use.
Why the data matters in MailerLite
MailerLite plans are priced by subscriber count and unconfirmed or throwaway addresses count the same as engaged ones. Fields set at import let a group keep them out of campaigns without deleting the record.
What LookValid checks
| Product | What it does here | Credits |
|---|---|---|
| Email Domain Check | Reads the domain behind an address: mail records, SPF, DMARC, throwaway domains, free providers and role mailboxes. It never contacts the mail server, so it cannot confirm that a mailbox exists. | 1 credit per address checked |
| Link Safety Check | Checks the domain of a web address against a public list of reported malicious domains. An unlisted domain is not proof of safety. | 1 credit per URL checked (a check that cannot run is free) |
| Phone Numbering-Plan Validation | Checks a phone number against its country numbering plan and returns E.164 and the number type. It does not say whether the line is active. | 1 credit per valid number |
Connect it in four steps
- Create a LookValid account and generate an API key from the dashboard, which a person does once.
- Store LOOKVALID_API_KEY and the MailerLite token in separate variables, and create three custom fields in the account first.
- Check each subscriber's email, skip on found:false, and stop on an error answer.
- Send the values under fields to the subscribers endpoint, which upserts by email, then build a segment on the disposable field.
A Python script that reads subscribers through the subscribers API and updates them. The call is POST https://YOUR_API_HOST/v1/email-domain-check and costs 1 credit per address checked.
import json
import os
import urllib.error
import urllib.request
API_URL = "https://YOUR_API_HOST/v1/email-domain-check"
def validate_mailerlite_subscriber(value):
request = urllib.request.Request(
API_URL,
data=json.dumps({
"email": value,
}).encode(),
headers={
"Authorization": "Bearer " + os.environ["LOOKVALID_API_KEY"],
"Content-Type": "application/json",
},
method="POST",
)
try:
with urllib.request.urlopen(request, timeout=30) as response:
result = json.load(response)
except urllib.error.HTTPError as error:
failure = json.load(error)["error"]
raise RuntimeError(failure["code"] + ": " + failure["fix"])
if not result["found"]:
return None
return {
"email_signal": result.get("data", {}).get("deliverability_signal"),
"email_disposable": result.get("data", {}).get("disposable"),
"email_role": result.get("data", {}).get("role_account"),
}
| Response field | Goes into |
|---|---|
| data.deliverability_signal | email_signal |
| data.disposable | email_disposable |
| data.role_account | email_role |
The recipe returns nothing when the lookup finds nothing, which costs no credits for this product, and stops with the error code and fix on a failed request.
Without code
MailerLite automations can send to a webhook; an automation platform's generic HTTP step can call LookValid and write the fields back.
Questions
What does a check cost in credits?
Each call uses the credits listed for the product on the pricing page, so the monthly use in MailerLite follows the number of addresses you check.
What does the email check not do?
It looks at the domain only. It does not contact the mail server and cannot say whether a particular mailbox exists, so treat a good signal as a domain that can receive mail.
Does the call create or update?
The subscribers endpoint creates the subscriber or updates the fields of an existing one with the same email.
Sources
- MailerLite API: subscribers https://developers.mailerlite.com/api/subscribers, read 2026-10-30
- LookValid API reference: Email Domain Check https://lookvalid.com/docs/api/email-domain-check, read 2026-10-18
LookValid is run by Meralume Labs. It is not connected to, endorsed by or a partner of any company or product named on this page, and every product name belongs to its owner.
Related pages
LookValid bills every lookup in credits from one shared balance, so the same key works for each check above.
See Email Domain Check