Python Sample Code: Email Verification and Information

Here is an example that will retrieve email verification and other email address information. This code requires the "requests" library to run. If it is not installed, you can install it on the command line with the following:

            
> pip install requests
            

Python code:

            
import requests

response = requests.get('https://api.interzoid.com/getemailinfo?license=
                YOURLICENSEKEY&email=winston.smith@maths.ox.ac.uk')

print(response.text)

if response.status_code == 200:
  data = response.json()
  print(data["Info"])
            

To execute from the command line:

            
> python YOURFILENAME.py
            

Results:

            
{"Email":"winston.smith@maths.ox.ac.uk","Response":"valid","Info":"mail server ok",
                "IsGovernment":"","IsEducational":"True","IsOrganizational":"",
                "IsDisposable":"","IsVulgar":"","IsGeneric":"","Geolocation":"United Kingdom",
                "Code":"Success","Credits":"645252"}

mail server ok
            

If you do not have an API License Key, you can obtain one by registering here.

Return to Get Email Information API page

Free API Credits
Register for an Interzoid API account and receive free trial credits
Company Name Matching API
Generate similarity keys to identify duplicate and inconsistent company name data
More Info...
Other Matching APIs
Generate similarity keys for other data types
More Info...
International Phone Demographics API
Test page load and other Web asset performance time with a simple API call
More Info...
Email Information API
Get email address validation and enhancement data
More Info...