Integrations · Sales outreach
Validate your Overloop prospects
Check the email addresses of your Overloop prospects and write each result into four custom fields, so each prospect shows whether its address is worth mailing. A script you run on your own computer reads your prospects, checks the addresses as one bulk list and writes the results back. It never deletes a prospect, changes its address or name, or touches a list or a campaign. Download it: email-validation-overloop.zip holds overloop.mjs (the script) and the MIT licence.
What you need
- A computer with Node 22.18 or later. Nothing to install: the script has no dependencies.
- An API key of ours from the API keys page with Validate addresses, and the permission Bulk lists (off by default: turn it on when you create the key) for more than 50 prospects.
- An Overloop API key: in Overloop, Integrations → API.
- Four custom fields in Overloop. Overloop's API cannot create them, so create them yourself once: in Overloop's settings, create four custom fields of the type Text, named exactly
ev_status,ev_reason,ev_checked_atandev_address_hash. If one is missing or is not a text field, the script stops before it checks anything and names it.
Try it free first
Each checked address can use one credit, so try it with an Overloop account that holds only test prospects, never your real ones. Give one test prospect the address no_mailbox@sandbox.email-validation.org (sandbox checks are free; that domain receives no mail, so send it nothing), then:
cd email-validation-overloop # the unzipped folder
export OVERLOOP_API_KEY=… EV_API_KEY=…
node overloop.mjs --dry-run # checks nothing, writes nothing: only counts
node overloop.mjs # checks and writesIn Windows PowerShell (5.1 or 7):
cd email-validation-overloop # the unzipped folder
$env:OVERLOOP_API_KEY = "…"; $env:EV_API_KEY = "…"
node overloop.mjs --dry-run # checks nothing, writes nothing: only counts
node overloop.mjs # checks and writesThe prospect's ev_status field says invalid and ev_reason says no_mailbox. Run it once more: it reports nothing to check, because every result was written. Then delete the test prospect.
Run it
node overloop.mjs --dry-run # how many prospects would be checked; free
node overloop.mjs # checks and writesUp to 50 addresses are checked one by one; more go out as one bulk list. A prospect whose address already has a result is skipped (an unknown result is checked again), so a daily run checks only new and changed addresses. If a run stops, run the same command again from the same folder: it resumes the same bulk list and never pays twice (within the 30 days a list is kept). The state file (.ev-overloop-<account id>.json) lives in that folder. It prints ids and counts, never an address or a key.
Overloop's API documentation names no rate limit, so the script sends two requests a second (--rate 5 at most), about two per prospect it writes. When Overloop refuses for a rate limit or is briefly unavailable, the script tries again three times (after 2, 4 and 8 seconds, or the wait Overloop names, up to a minute), then stops; run the same command again, which resumes without paying twice.
Options:
--region eu: checked in the EU, lists and results kept there, with the same key.--revalidate: check again addresses that already have a result.--state FILE: a state file of your own choosing.--rate N: Overloop requests a second, 5 at most.--wait-minutes N: how long to wait for a bulk list to finish (default 240); past it the script stops with exit code75, and the same command run later collects the list.--new-job: drop the saved bulk list (once it is no longer running) and start a new one for the prospects that still have no result; their addresses are charged again.
Exit codes: 0 done; 1 a write failed or the run stopped (run it again: nothing is paid twice); 2 wrong options; 75 the bulk list was still being checked when the script stopped waiting (run it again later to collect it).
What it writes
Your four custom fields:
| Custom field | Holds |
|---|---|
ev_status | valid, invalid, catch_all, unknown or disposable |
ev_reason | the reason, for example no_mailbox or accepted |
ev_checked_at | when it was checked |
ev_address_hash | a hash of the address the result belongs to, so a changed address is checked again |
Spam traps and complainers are valid with a warning reason: see what each status means. Each result is written by prospect id, and only while the prospect still holds the address that was checked; the write sends only the four fields, so nothing else of the prospect changes. The first write of a run is read back: if anything else of that prospect changed, the script stops there and says so. A result that could not be written is kept in a file next to the state file and written by the next run without a new check.
End the access
Delete the Overloop API key where you created it, and our key on the API keys page. The four custom fields stay on your prospects until you remove them in Overloop.