var express = require("express");
var app = express();
const http = require("http");
const server = http.createServer(app);
app.use(express.static(__dirname));
const fetch = require("node-fetch");
// Api Url
// Bulk Api Key
var apiKey = "YOUR-API-KEY";
// List of Emails in JSON
var EmailList = [
];
// Function to itrerate through list of Emails
async function ConsoleResult() {
// Loop through the list of Emails
for (var i = 0; i < EmailList.length; i++) {
var url = apiUrl + apiKey + "/" + EmailList[i].Email;
await fetch(url)
.then((res) => res.json())
.then(async (json) => {
// Displaying the APIs Results
console.log(json);
})
.catch((err) => {
console.log(err);
});
}
}
// Function Call
ConsoleResult();
const PORT = process.env.PORT || 3000;
server.listen(PORT, () => {
});