🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

sl-zerobounce

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sl-zerobounce

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

0.1.4
PyPI
Maintainers
1

Build Status

zerobounce-python-api-v2

ZeroBounce Python API v2. 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','123.145.124.12')

print resp1
{
 "address":"flowerjill@aol.com",
 "status":"valid",
 "sub_status":"",
 "free_email":True,
 "did_you_mean":None,
 "account":"flowerjill",
 "domain":"aol.com",
 "domain_age_days": "8426",
 "smtp_provider":"yahoo",
 "mx_record":"mx-aol.mail.gm0.yahoodns.net",
 "mx_found": True,
 "firstname":"Jill",
 "lastname":"Stein",
 "gender":"female",
 "country":"United States",
 "region":"Florida",
 "city":"West Palm Beach",
 "zipcode":"33401",
 "processed_at":"2017-04-01 02:48:02.592"
}

print resp.firstname
Jill

print resp2.status
valid

Properties and possible values returned by:

  • validate method
PropertyPossible Values
addressThe email address you are validating.
statusvalid /invalid /catch-all /unknown /spamtrap /abuse /do_not_mail
sub_statusantispam_system /greylisted /mail_server_temporary_error /forcible_disconnect /mail_server_did_not_respond /timeout_exceeded /failed_smtp_connection /mailbox_quota_exceeded /exception_occurred /possible_traps /role_based /global_suppression /mailbox_not_found /no_dns_entries /failed_syntax_check /possible_typo /unroutable_ip_address /leading_period_removed /does_not_accept_mail /role_based_catch_all /disposable /toxic
accountThe portion of the email address before the "@" symbol.
domainThe portion of the email address after the "@" symbol.
did_you_meanSuggestive Fix for an email typo.
domain_age_daysAge of the email domain in days or [None].
free_email[True/False] If the email comes from a free provider.
mx_found[True/False] Does the domain have an MX record.
mx_recordThe preferred MX record of the domain
smtp_providerThe SMTP Provider of the email or [None] (BETA).
firstnameThe first name of the owner of the email when available or [None].
lastnameThe last name of the owner of the email when available or [None].
genderThe gender of the owner of the email when available or [None].
countryThe country the email signed up when ip address is provided or [None].
regionThe region the email signed up when ip address is provided or [None].
cityThe city the email signed up when ip address is provided or [None].
zipcodeThe zipcode the email signed up when ip address is provided or [None].
processed_atThe UTC time the email was validated.
  • get_credits method
PropertyPossible Values
creditsThe number of credits left in account for email validation.

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

Keywords

email

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts