The HoldingsIQ service retrieves vendor, package and title related information in JSON format. The service automates the managing of holdings data from different sources.





Get Title Relationships for a KBID Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /v1/{custid}/titles/{kbid}/relationships endpoint which allows you to retrieve the title relationships for a given title identified via kbid.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 


Code Samples


curl -X GET "" \
-H "accept: application/json" -H "x-api-key: APIKEY"


// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()

// Build the request
Request request = new Request.Builder()
    .addHeader("cache-control", "no-cache")
    .addHeader("x-api-key", APIKEY)
    .addHeader("content-type", "application/json")

// Send the request
Response response = client.newCall(request).execute();


var host = "";
var pathsega = "v1/";
var pathsegb = "/titles/";
var pathsegc = "/relationships";

// Create the Request
var urlstr = host + pathsega + CUSTID + pathsegb + KBID + pathsegc;
var settings = {
  "async": true,
  "crossDomain": true,
  "url": urlstr,
  "method": "GET",
  "headers": {
    "accept": "application/json",
    "x-api-key": APIKEY,

// Send the Request
$.ajax(settings).done(function (response) {


# Form the URL 
urlstr = File.join('https://', '', 'rm/rmaccounts/v1', CUSTID, 'titles', 'KBID', 'relationships')
uri = URI(urlstr)

# Create the HTTP object
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request =
request["accept"] = 'application/json'
request["x-api-key"] = APIKEY

# Send the request
response = http.request(request)


# Form the URL
url = ''.join(['/rm','/rmaccounts/v1/', CUSTID, '/titles/', KBID, '/relationships'])

# Create Connection Instance
conn = http.client.HTTPSConnection("")

# Create the Request Headers
headers = {
	'accept': "application/json",
        'x-api-key': APIKEY

# Send Request	
conn.request("GET", url, headers=headers)