I am looking for a JS code to user the MailTester Ninja Email Checker API
Anyone using nodejs + axios could help ?
I would like to qualify my mailing list before any communication to help getting a better sender reputation
I am looking for a JS code to user the MailTester Ninja Email Checker API
Anyone using nodejs + axios could help ?
I would like to qualify my mailing list before any communication to help getting a better sender reputation
Hi @GCxm001,
Thank you for reaching out to the Community!
I found two existing Community articles that might be partially relevant:
Can API data be accessed using vanilla JS fetch method instead of axios?
How to upload a file using Hubspot File Uploading API with Nodejs, Axios AWS Lambda,
I also wanted to invite subject matter experts to this conversation:
Hi @himanshurauthan & @louischausse, do you have any advice for @GCxm001? Thank you!!
Cheers,
Mia, Community team
Hey @GCxm001 ,
you can use this js code to verify email is valid or not. Note:- You are limited to one query per minute: Try MailTester Ninja unlimited or just wait 59 sec.
async function checkEmailValidOrNot() {
try {
const response = await fetch(
https://api.mailtester.ninja?email=YourEmail
).then(response=>response.json());
console.log(‘response’, response);
} catch (error) {
console.error(“Error:”, error);
}
}
I hope this will help you. Thanks