data engineering apis

Using HttpClient in Java to Invoke Interzoid APIs

by Interzoid Team

Posted on August 31st, 2021

Using HttpClient in Java

In Java 11, a standardized HTTPClient was introduced enabling the sending of requests into the Cloud and the retrieval of responses.

Here is a quick basic example of usage (putting the API license key in the header):

      // create the request with the API end point and parameters
      HttpRequest request = HttpRequest.newBuilder()
           .header("content-type", "application/json")
           .header("x-api-key", "YOURAPIKEY")
           .method("GET", HttpRequest.BodyPublishers.noBody())

      // make the request and receive the response
      response = HttpClient.newHttpClient().send(request,

      // print the response to the console

In this particular example, we are generating a similarity key for an organization name. This enables us to locate (through sorting, for example) other organization names that are similar, such as this:

Table of inconsistent company names and similarity key generation for data matching and standardization API

Identifying redundant organization names can be crucial in customer, vendor, or prospect databases. Additionally, this same technique can help us match company records across different data sources.

For the full working source code, visit here on Github.

For more information about the Company Name Matching API, visit here.

Check out our New Cloud Data Connect Data Matching Wizard!
Identify inconsistent and duplicate data quickly and easily in data tables and files.
Connect Directly to Cloud SQL Databases and Perform Data Quality Analysis
Achieve better, more consistent, more usable data.
Try our Pay-as-you-Go Option
Start increasing the usability and value of your data for $20 USD!
Launch Our Entire Data Quality Matching System on an AWS EC2 Instance
Deploy to the instance type of your choice in any AWS data center globally. Start analyzing data and identifying matches across many databases and file types in minutes.
Free Usage Credits
Register for an Interzoid API account and receive free usage credits. Improve the value and usability of your strategic data assets now.
Automate API Integration into Cloud Databases
Run live data quality exception and enhancement reports on major Cloud Data Platforms direct from your browser.
Check out our APIs and SDKs
Easily integrate better data everywhere.
Example API Usage Code on Github
Sample Code for invoking APIs on Interzoid in multiple programming languages
Business Case: Cloud APIs and Cloud Databases
See the business case for API-driven data enhancement - directly within your important datasets
Documentation and Overview
See our documentation site.
Product Newsletter
Receive Interzoid product and technology updates.

All content (c) 2019-2024 Interzoid Incorporated. Questions or assistance? Contact

201 Spear Street, Suite 1100, San Francisco, CA 94105-6164

Interested in Data Cleansing Services?
Let us put our Generative AI-enhanced data tools and processes to work for you.

Start Here
Terms of Service
Privacy Policy

Use the Interzoid Cloud Connect Data Platform and Start to Supercharge your Cloud Data now.
Connect to your data and start running data analysis reports in minutes:
API Integration Examples and SDKs:
Documentation and Overview: Docs site
Interzoid Product and Technology Newsletter: Subscribe
Partnership Interest? Inquire