Use this code to integrate Email Hippo’s MORE API using Python. 


###########################################################################################

#   Company:

# © 2017, Email Hippo Limited. (http://emailhippo.com)

#

    File name:

    API V3 - Python Example.py

#

#   Version:

#   1.0.20170508.0

#

#   Version control:

#   - 1.0.20170508.0 - initial release

#

#   Date:

#   August 2014

#

#   Description:

#   Demonstrates how to call a RESTful service @ //api.hippoapi.com/v3/more/json/0C049D34/{EMAIL}

#   using Python

#

#   This example requires a valid key to work correctly.

#

#   License:

#   Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)

###########################################################################################


# Import the module for handling the http request

import urllib.request


# The url for the service

ApiUrl = "https://api.hippoapi.com/v3/more/json"


# The format  of the full query string

QueryFormatString = "{0}/{1}/{2}"


# The API key provided for your account goes here

YourAPIKey = "<!-- ENTER A VALID KEY HERE-->"


# Read in the user input

readLine = input("Enter Email:\n")


# Format the full url and make the http GET request and read the response

response = urllib.request.urlopen(QueryFormatString.format(ApiUrl, YourAPIKey, readLine)).read()


# Print the response

print(response)