Integrations · Sales outreach
Validate your data provider exports
Check the email addresses of a contact export from ZoomInfo, Apollo, Lusha, Seamless.AI, Cognism or RocketReach (or any other contact CSV) before you send to them. A script you run on your own computer reads the export, checks the addresses of its email columns (up to 10 a cell) as a bulk list, shows the most it can cost and asks before it spends, then writes a copy of the file with each address's status beside it and the best address of each row to mail. It never changes your export, never connects to the data provider, and never sends mail. Download it: email-validation-data-brokers.zip holds data-brokers.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 the permission Bulk lists (off by default: turn it on when you create the key). With Read balance and usage too, the script shows your balance before it asks.
- The export, as a CSV file (comma-separated, UTF-8). No key or login of the data provider.
Export your contacts
| Provider | How to export | Email columns the script checks |
|---|---|---|
| ZoomInfo | Export your contacts as a CSV file. | ZoomInfo's public docs do not name its columns: found by their headers |
| Apollo | Search > People, filter to your saved contacts, a saved search or a list, select them, Export, then Export records; download it from Settings > Data management > Import & Exports > CSV Exports. Exporting saved contacts uses no Apollo credits. Emails are not always in an export by default: tick them under Edit export CSV settings. | Email, Secondary email, Tertiary email |
| Lusha | Reveal the contacts, select them and click Export (up to 150 at a time from a search), or Export to CSV from a table. Only revealed contacts carry their addresses. | Work email, Direct email, Additional email 1, Additional email 2 |
| Seamless.AI | My Contacts, the three dots at the top right, Download Filtered, Selected or All, then a download type: Raw keeps every address found; Custom lets you pick Email 1, Email 2 and Email 3. | Email 1, Email 2, Email 3 |
| Cognism | Lists > All Contacts, My Contacts or one of My Lists, then download as a CSV file (up to 1,000 a download from All Contacts and My Contacts; a whole list at once). Only redeemed contacts carry their address. | Your Cognism admin chooses the columns: found by their headers |
| RocketReach | My Contacts, Actions > Export to CSV, Standard or Advanced; the file comes by email. One cell can hold several addresses, separated by commas: up to 10 are checked. | RocketReach's help does not name its columns: found by their headers |
The provider is recognised from the file's headers, or name it with --broker (zoominfo, apollo, lusha, seamless-ai, cognism or rocketreach). Where a provider's docs do not name its email columns, the script takes every column whose header says email and is not about an email (its status, source, score, type or date, for example), and prints the ones it took before it spends anything. If it took the wrong ones, name them: --email-column "Email Address" (repeat it for more; the first is the primary address). That also works for any other contact CSV.
Try it free first
Make a small file, test.csv, with one test address in it:
Name,Email
Test,no_mailbox@sandbox.email-validation.orgThen, from the unzipped folder:
cd email-validation-data-brokers
export EV_API_KEY=…
node data-brokers.mjs --in test.csvIn Windows PowerShell (5.1 or 7):
cd email-validation-data-brokers
$env:EV_API_KEY = "…"
node data-brokers.mjs --in test.csvIt writes test-checked.csv, where the address's status is invalid and its action remove. Sandbox checks are free, and that domain receives no mail, so send it nothing.
Run it
node data-brokers.mjs --in lusha-export.csv --dry-run # the columns it takes and what it would check; spends nothing
node data-brokers.mjs --in lusha-export.csv # asks, then checks and writes lusha-export-checked.csv
node data-brokers.mjs --in zoominfo.csv --email-column "Email Address" --mailable to-mail.csv --yesBefore it spends, the script shows the rows it read, the distinct addresses it will check, the most credits it will use (one per distinct address: an address that appears in several rows or columns is checked once; unknown results and malformed addresses are free) and your balance, and asks you to confirm. A very large export is split into several bulk lists, checked in turn (each takes up to 1,000,000 addresses). With --yes it goes on without asking; without a terminal and without --yes it stops before spending. --region eu checks and keeps the list in the EU. --out FILE names the copy (by default <export>-checked.csv, beside the export).
What it writes
The copy is your export, every row and column as it was, with these columns added after them:
| Column | Value |
|---|---|
<column> (email_validation_status) | for each email column checked: valid, invalid, catch_all, unknown or disposable (statuses) |
<column> (email_validation_action) | send, send_with_caution, remove or retry_later |
<column> (email_validation_reason) | why, as a reason code |
email_validation_best_email | the row's first address whose action is send, else the first send_with_caution, else empty |
email_validation_best_status | that address's status |
A cell holding several addresses gets their values in the same order, separated by ;. Mail the email_validation_best_email column, or use --mailable FILE to also get a file with only the rows that have one. Spam traps and complainers are valid with the action remove, so they are never a best address. A value without an @ (such as N/A) is not checked. The script never writes over your export, nor over a file without an email_validation_best_email column.
Run it again
If a run stops (no credits left, a closed laptop, a list still running), run the same command again from the same folder: it picks up the same bulk list and never pays twice (within the 30 days a list is kept). A list not yet started can be started for 27 days. Each address's result is kept beside the copy, in <copy>.results.json, under a hash of the address (never the address), so a later run with the same --out, for example on next month's export, checks only addresses it has not checked before, or that were unknown.
Exit codes: 0 done, 1 the run stopped (run it again), 2 wrong arguments, 75 the bulk list was still running when the script stopped waiting (run it again later).
The script prints counts, column names and job ids, never an address or a key.