Cloud Pak for Data

 View Only

Using EverString Data as a Service with Cloud Pak for Data

By Amod Upadhye posted Mon September 21, 2020 12:24 PM

  
EverString Technology provides machine learning enhanced B2B company data to improve decision making. This data can be used to discover new company information, enrich company information, search for relevant company contact details, and enrich information for a particular company contact.
This data can be accessed using 2 methods in Cloud Pak for Data.

1. Flat File download

In this method the company data and/or contact data can be obtained from EverString and then loaded in Cloud Pak for Data. The flat file method is recommended for air gapped Cloud Pak for Data clusters which do not have connection to the internet.
The data can be obtained in CSV format and then loaded into a supported database such as an integrated Db2 or Db2 Warehouse database.
After you load the data into your database, you can use it with other Cloud Pak for Data services. For example, you can use it in an analytics project in Watson Studio.

2. Real-time API download
Alternatively, the data can be fetched directly from EverString using real-time APIs and accessed directly in Cloud Pak for Data services. The steps to use the API are as follows :
1. Obtain the API token from https://eap.everstring.com. After logging in, click on Settings and then REST API from the left-side menu.  In this screen, you will be given the chance to create an API token.  
2. Once the token has been obtained, it can be used directly within Watson Studio Notebooks within Cloud Pak for Data 
3. For example the following piece of code can help you get the company information for IBM in Texas 

#Import Libraries
import requests
import json
#Make API Call
url = "https://api.everstring.com/v1/companies/data_enrich"
headers = {"Content-Type": "application/json",
"Authorization": "Token {ACCESS_TOKEN}"
}
payload = '{"name" :"IBM", "website": "ibm.com", "address":{"state": "TX"}}'
response = requests.request(method="POST", url=url, data=payload, headers=headers)

#Print Response Data
response_data = json.loads(response.text)
for item in response_data['data'][0]:
print (item+ ' : ' + str(response_data['data'][0][item]))

 

For a comprehensive list of APIs available check the developer documentation at https://developer.everstring.com.

#CloudPakforDataGroup
0 comments
16 views

Permalink