Skip to content
NodeJS wrapper class example for the ZeroBounce API v2
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md

README.md

ZeroBounce NodeJS API v2

This is a NodeJS wrapper class example for the ZeroBounce API v2.

Example usage:
var https = require("https");
var api_key = "YOUR_API_KEY";
var email = "sampleemail@email.com";
var ip_address = "";

var options = {
    hostname: 'api.zerobounce.net',
    port: 443,
    path: "/v2/validate?api_key="+api_key+"&email="+email+"&ip_address='"+ip_address+"'",
    method: 'GET',
    secureProtocol: "TLSv1_2_method"
}

https.request(options, res => {
    let body = '';
    res.on('data', d => body += d)
    res.on('end', () => {
        var result = JSON.parse(body);
	// DO SOMETHING WITH result JSON

    })
}).on('error', err => {

    //DO SOMETHING FOR ERRORS
    return;

}).end()

Any of the following email addresses can be used for testing the API, no credits are charged for these test email addresses:

You can this IP to test the GEO Location in the API.

  • 99.110.204.1
You can’t perform that action at this time.