Skip to content

nas-archived-repos/zerobounce-python-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zerobounce-python-api

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('[email protected]')
resp2 = zba.validatewithip('[email protected]')

print resp1
{
  "address":"[email protected]",
  "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":"[email protected]",
  "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

Packages

No packages published

Languages

  • Python 100.0%