Simple bulk email verification script using the Reoon Email Verifier API.
- Reads input leads from
input/data.json(an array of objects with anemailfield). - Sends emails in bulk to the Reoon bulk verification API.
- Polls for results and writes verified records into
output/valid.jsonand invalid ones intooutput/invalid.json. - Supports resuming an in-progress bulk task via
output/task-info.json.
- Install dependencies (uses Yarn):
yarn install- Create a
.envfile in the project root with your API key:
REOON_API_KEY=your_api_key_here- Put your input data in
input/data.json.
- The file should contain a JSON array of objects. Each object should include at least an
emailproperty, e.g.:
[
{ "email": "alice@example.com", "name": "Alice" },
{ "email": "bob@example.com", "name": "Bob" }
]Start the script with:
yarn startThis will run email-verifier.js which will process the emails and write outputs to the output/ folder.
output/valid.json— array of lead objects marked validoutput/invalid.json— array of lead objects marked invalidoutput/task-info.json— saved task metadata for resumability
- The script expects
input/data.jsonand writes output files to theoutput/directory. - If you need to restart processing from scratch, remove
output/task-info.json. - The script requires a valid API key with enough credits.
- If you see an error about
REOON_API_KEYmissing, check your.envfile is present and correct. - Ensure
input/data.jsonis valid JSON.