<html><head>
<script src="//api.rocketreach.co/v1/api.min.js"></script>
<script>
    var API_KEY = "3E7k0123456789abcdef0123456789abcdef";

    //RocketReach has initialized
    var doLookup = function (account) {
        //Lookup Profile
        RocketReachAPI.lookupProfile({
            li_url: "https://www.linkedin.com/in/traviskalanick"
        }).then(function (profiles) {
            //Print Result
            document.getElementById("output").innerHTML += JSON.stringify(profiles[0],null,4);
        },handleFailure);
    }

    //Generic function to handle failure.
    var handleFailure = function () {
        console.error("Error:", arguments);
    }

    //Initialise
    RocketReachAPI.init({
        "api_key":API_KEY,
        "success":doLookup,
        "error": handleFailure
    });
</script>
</head>
<body>
<h1>Call RocketReachAPI.lookupProfile()</h1>  
<pre id="output"></pre>  
</body>
</html>
#RocketReach API: Simple Example
1. In this example, you will see how to do a simple initialization. 
1. Then the API will be used to lookup full profile information
2. This includes email, phone numbers, social links.

## Methods used
- init()
- lookupProfile()