Skip to main content

ZeroBounce Python API - https://www.zerobounce.net.

Project description

ZeroBounce Python API. The response object allows an attribute-like style access.

from zerobounce import ZeroBounceAPI

zba = ZeroBounceAPI('yourapikey____________')
print zba.get_credits()
resp1 = zba.validate('flowerjill@aol.com')
resp2 = zba.validatewithip('flowerjill@aol.com')

print resp1
{
  "address": "flowerjill@aol.com",
  "status": "Valid",
  "sub_status": "",
  "account": "flowerjill",
  "domain": "aol.com",
  "disposable": False,
  "toxic": False,
  "firstname": "Jill",
  "lastname": "Stein",
  "gender": "female",
  "location": None,
  "creationdate": None,
  "processedat": "2017-04-01 02:48:02.592"
}

print resp2
{
  "address": "flowerjill@aol.com",
  "status": "Valid",
  "sub_status": "",
  "account": "flowerjill",
  "domain": "aol.com",
  "disposable": False,
  "toxic": False,
  "firstname": "Jill",
  "lastname": "Stein",
  "gender": "female",
  "location": None,
  "country": "United States",
  "region": "Florida",
  "city": "West Palm Beach",
  "zipcode": "33401",
  "creationdate": None,
  "processedat": "2017-04-01 02:48:02.592"
}

print resp.firstname
Jill

print resp2.status
Valid

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zerobounce, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size zerobounce-0.1.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page