How to Perform Lead Enrichment in Node.JS

Cloudmersive
2 min readSep 23, 2020

--

Integrating lead enrichment tools to your website or online forms will help boost the productivity of your business and return for user registrations. When providing an organization with personal information as might be needed in completing a sign-up form, allowing user to simply input their name and email address will make your registration process more appealing. Then, using lead enrichment you can use that basic information to populate unknown fields such as lead type, company name, contact information, VAT number, domain name, and employee count. This API will perform this enrichment for you, allowing you to learn more about potential clients with ease.

Our first step should be to install the SDK:

npm install cloudmersive-validate-api-client –save

You can also add this snippet to your package.json:

"dependencies": {
"cloudmersive-validate-api-client": "^1.2.4"
}

Then, we can call our function, LeadEnrichmentEnrichLead:

var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
var apiInstance = new CloudmersiveValidateApiClient.LeadEnrichmentApi();var request = new CloudmersiveValidateApiClient.LeadEnrichmentRequest(); // LeadEnrichmentRequest | Input lead with known fields set, and unknown fields left blank (null)var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.leadEnrichmentEnrichLead(request, callback);

When inputting lead information, set all known fields and leave unknown fields blank. To retrieve your API Key, visit the Cloudmersive website. This will give you access to 800 free monthly calls across our library of APIs.

--

--

Cloudmersive
Cloudmersive

Written by Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Responses (1)