/union_oclc

Details:  Union Holdings - Search by OCLC

URL:  https://yourlibrary.caiasoft.com/api/union_oclc/v1

HTTP Verb:  POST

Content-Type:  application/json

Authorization Required:  

NameValueRequiredNotes
X-API-KeystringYessend in header

Parameters:  JSON Formatted in the following format:
{ “name”:”value” (see table below) }

NameValueRequiredNotes
oclcalphanumeric stringYes - minimum 4 charactersOCLC will be left-padded with 0s to create proper length oclcs
collectionalphanumeric stringNoMust match a collection code assigned to at least one active item

Return Response:  NOTE: Active Items Only (No De-accessions Returned)
{“success”:”true/false”, “error”:”string”, “item_count”:”int”, "items":[ { “name”:”value” (see results-> section of table below) } ]}

NameValueNotes
successtrue/false
errorstringAPI format/key errors only. Can return even on success, as the json was accepted and possibly denied for formatting
item_countinteNumber of items returned in search
items->barcodestringItem Barcode
items->statusstringItem Status
See status list for possible responses
items->collectionstringItem Collection Code
items->titlestringTitle
items->volumestringVolume
items->authorstringAuthor
items->call numberstringCall Number
items->issnstringISSN
items->isbnstringISBN
items->oclcstringOCLC
items->lccnstringLCCN

Examples:  
API Call & JSON:

https://yourlibrary.caiasoft.com/api/union_oclc/v1
{ "oclc":"45086989" }



API Return:

{"success":true,"error":"","item_count":"1","items":[{"barcode":"27641701","status":"Item In at Rest","collection":"DEMO","title":"Borrowed tides / ","volume":"","author":"Levinson, Paul.","call number":"PS3562.E92165B67|2001","issn":"","isbn":"0312848692","oclc":"45086989","lccn":"00048809"}]}