API for searching, browsing, and managing facets for various record types, including instances, holdings, and authorities. It also provides endpoints for configuring search and browse features, as well as managing the search index.
Provides endpoints to browse records (e.g., instances, authorities) in alphabetical order by a specific field, such as call number, classification number, subject, or contributor.
Provides list of instances for browsing by call number
query required | string A CQL query string with search conditions. |
limit | integer [ 0 .. 100 ] Default: 100 Limit the number of elements returned in the browse response. |
expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including queries |
callNumberType | string (callNumberType) Enum: "lc" "dewey" "nlm" "sudoc" "other" "local" Type of call number |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "items": [
- {
- "fullCallNumber": "Bilingualism: a bibliography of 1000 references with special reference to Wales.",
- "shelfKey": "Bilingualism: a bibliography of 1000 references with special reference to Wales.",
- "isAnchor": true,
- "totalRecords": 1,
- "instance": {
- "id": "d20569a7-9bba-44dd-9ad5-6f8f1d24ee1f",
- "title": "Bilingualism: a bibliography of 1000 references with special reference to Wales.",
- "contributors": [
- {
- "name": "Eichhorst, Georg."
}
], - "publication": [
- {
- "publisher": "Duncker und Humblot",
- "dateOfPublication": "1976"
}
], - "notes": [
- {
- "note": "Staff note"
}
], - "items": [
- {
- "barcode": "12345",
- "notes": [
- {
- "note": "Staff note"
}
],
}
], - "holdings": [
- {
- "callNumber": "FS 124.44",
- "notes": [
- {
- "note": "Staff note"
}
],
}
]
}
}
], - "prev": "string",
- "next": "string",
- "totalRecords": 1
}
Provides list of classifications by classification number
browseOptionId required | string (browseOptionType) Enum: "all" "lc" "dewey" Browse option type |
query required | string Examples:
A CQL query string with filter conditions must include anchor query with range conditions. Anchor field is
| ||||||||||||
limit | integer [ 0 .. 100 ] Default: 100 Limit the number of elements returned in the browse response. | ||||||||||||
highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. | ||||||||||||
precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including queries |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 2,
- "prev": "QA76.73.C15",
- "items": [
- {
- "classificationNumber": "QA76.73.C15",
- "classificationTypeId": "5af5cb9d-063f-48ea-8148-7da3ecaafd7d",
- "isAnchor": true,
- "totalRecords": 10
}, - {
- "classificationNumber": "TK5105.88815",
- "classificationTypeId": "7e5684a9-c8c1-4c1e-85b9-d047f53eeb6d",
- "isAnchor": false,
- "totalRecords": 5
}
]
}
Provides list of instances for browsing by subject
query required | string Examples:
A CQL query string with filter conditions must include anchor query with range conditions. Anchor field is
| ||||||||||||||||||||
limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. | ||||||||||||||||||||
highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. | ||||||||||||||||||||
precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including queries |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 10,
- "prev": "Biology",
- "next": "Physics",
- "items": [
- {
- "value": "Biology",
- "isAnchor": true,
- "totalRecords": 5,
- "authorityId": "d20569a7-9bba-44dd-9ad5-6f8f1d24ee1f"
}, - {
- "value": "Chemistry",
- "isAnchor": false,
- "totalRecords": 5,
- "authorityId": "11110000-fcf6-45cc-b6da-4420a61ef72c"
}, - {
- "value": "Physics",
- "isAnchor": false,
- "totalRecords": 5,
- "authorityId": "5fab345a-30a4-4aee-8667-1e33d4627ce9"
}
]
}
Provides list of instances for browsing by contributor
query required | string Examples:
A CQL query string with filter conditions must include anchor query with range conditions. Anchor field is
| ||||||||||||||||
limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. | ||||||||||||||||
highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. | ||||||||||||||||
precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including queries |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 5,
- "next": "Paul McCartney",
- "items": [
- {
- "name": "Anthony Kiedis",
- "contributorTypeId": [
- "2a165833-1673-493f-934b-f3d3c8fcb299"
], - "contributorNameTypeId": "e2ef4075-310a-4447-a231-712bf10cc985",
- "authorityId": "7ff32633-cc49-4332-870a-b05e329d2a2d",
- "isAnchor": false,
- "totalRecords": 1
}, - {
- "name": "Bon Jovi",
- "contributorTypeId": [
- "2a165833-1673-493f-934b-f3d3c8fcb299",
- "3ae36e29-e38f-457c-8fcf-1974a6cb63d3",
- "653ffe66-aa3f-4f1c-a090-c42c4011ef40"
], - "contributorNameTypeId": "e2ef4075-310a-4447-a231-712bf10cc985",
- "authorityId": "0a4c6d10-2161-4f64-aace-9e919489b6c9",
- "isAnchor": false,
- "totalRecords": 2
}, - {
- "name": "John Lennon",
- "isAnchor": true,
- "totalRecords": 0
}, - {
- "name": "Klaus Meine",
- "contributorTypeId": [
- "2a165833-1673-493f-934b-f3d3c8fcb299",
- "3ae36e29-e38f-457c-8fcf-1974a6cb63d3"
], - "contributorNameTypeId": "e2ef4075-310a-4447-a231-712bf10cc985",
- "authorityId": "7ff32633-cc49-4332-870a-b05e329d2a2d",
- "isAnchor": false,
- "totalRecords": 2
}, - {
- "name": "Paul McCartney",
- "contributorTypeId": [
- "2a165833-1673-493f-934b-f3d3c8fcb299",
- "3ae36e29-e38f-457c-8fcf-1974a6cb63d3"
], - "contributorNameTypeId": "e2ef4075-310a-4447-a231-712bf10cc985",
- "authorityId": "0a4c6d10-2161-4f64-aace-9e919489b6c9",
- "isAnchor": false,
- "totalRecords": 2
}
]
}
Provides list of authorities by headingRef
query required | string Examples:
A CQL query string with filter conditions must include anchor query with range conditions. Anchor field is
| ||||||||||||||||||||||||||||||||||||||||
expandAll | boolean Default: false Whether to return only basic properties or entire authority record.
| ||||||||||||||||||||||||||||||||||||||||
highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. | ||||||||||||||||||||||||||||||||||||||||
precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including queries | ||||||||||||||||||||||||||||||||||||||||
limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 3,
- "prev": "Adair, Thomas Montgomery, 1913-1988",
- "next": "Leven, Mel",
- "items": [
- {
- "headingRef": "Allen, Barbara",
- "isAnchor": true
}, - {
- "authority": {
- "id": "7c1fff0d-6c83-4ee9-b64b-2beb0d3b9bfd",
- "tenantId": "diku",
- "shared": false,
- "headingType": "Personal Name",
- "authRefType": "Reference",
- "headingRef": "Allen, Barbara, 1906-1974",
- "sourceFileId": "af045f2f-e851-4613-984c-4bc13430454a",
- "naturalId": "n94088693",
- "numberOfTitles": 2
}, - "headingRef": "Allen, Barbara, 1906-1974"
}
]
}
Provides endpoints to configure search and browse features, such as enabling/disabling specific features or managing language settings.
Save languages that will be used for analyzers
code required | string[a-zA-Z]{3} An ISO-639-2/B compatible language code. |
languageAnalyzer | string Custom elasticsearch analyzer for language. |
{- "code": "eng",
- "languageAnalyzer": "eng-analyzer"
}
{- "code": "eng",
- "languageAnalyzer": "eng-analyzer"
}
Update language config settings
code required | string[a-zA-Z]{3} Language code |
code required | string[a-zA-Z]{3} An ISO-639-2/B compatible language code. |
languageAnalyzer | string Custom elasticsearch analyzer for language. |
{- "code": "eng",
- "languageAnalyzer": "eng-analyzer"
}
{- "code": "eng",
- "languageAnalyzer": "eng-analyzer"
}
Save feature configuration (enables or disables pre-defined optional search options)
feature required | string (tenantConfiguredFeature) Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" The feature name. |
enabled required | boolean Action - enable or disable option |
{- "feature": "search.all.fields",
- "enabled": false
}
{- "feature": "search.all.fields",
- "enabled": false
}
Update feature configuration settings
featureId required | string Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" Feature id (name) |
feature required | string (tenantConfiguredFeature) Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" The feature name. |
enabled required | boolean Action - enable or disable option |
{- "feature": "search.all.fields",
- "enabled": false
}
{- "feature": "search.all.fields",
- "enabled": false
}
Get all configurations for browse type
browseType required | string (browseType) Value: "instance-classification" Browse feature type |
{- "configs": [
- {
- "id": "all",
- "shelvingAlgorithm": "default",
- "typeIds": [ ]
}, - {
- "id": "dewey",
- "shelvingAlgorithm": "dewey",
- "typeIds": [ ]
}, - {
- "id": "lc",
- "shelvingAlgorithm": "lc",
- "typeIds": [ ]
}
], - "totalRecords": 3
}
Update configuration for browse type
browseType required | string (browseType) Value: "instance-classification" Browse feature type |
browseOptionId required | string (browseOptionType) Enum: "all" "lc" "dewey" Browse option type |
id required | string (browseOptionType) Enum: "all" "lc" "dewey" Browse option type |
shelvingAlgorithm required | string (shelvingOrderAlgorithmType) Enum: "lc" "dewey" "default" Shelving order algorithm |
typeIds | Array of strings <uuid> [ items <uuid > ] Type IDs that should be used by the option |
{- "id": "all",
- "shelvingAlgorithm": "default",
- "typeIds": [
- "7e5684a9-c8c1-4c1e-85b9-d047f53eeb6d",
- "1faf5a71-01cc-4f14-82e8-38e26b6e3071"
]
}
{- "errors": [
- {
- "message": "must not be null",
- "type": "MethodArgumentNotValidException",
- "code": "validation_error",
- "parameters": [
- {
- "key": "parameter",
- "value": "null"
}
]
}
], - "total_records": 1
}
Provides endpoints to retrieve aggregated information (facets) about records, such as counts of records by specific fields or ranges of values. This can be used for faceted search or browsing.
Provides list of facets for the record type
recordType required | string (recordType) Enum: "instances" "authorities" "contributors" "subjects" "classifications" Type of record to get facets for. |
query required | string A CQL query string with search conditions. |
facet required | Array of strings List of facet names. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "facets": {
- "source": {
- "values": [
- {
- "id": "MARC",
- "totalRecords": 20
}, - {
- "id": "FOLIO",
- "totalRecords": 10
}
], - "totalRecords": 2
}
}, - "totalRecords": 1
}
Provides endpoints to manage the search index, including creating or updating mappings, settings, and manually populating the index with records from external sources (e.g., inventory).
Creates indices for passed resource name and tenant id in request header.
x-okapi-tenant required | string X-Okapi-Tenant header value |
resourceName required | string Name of resource |
{- "resourceName": "instance"
}
{- "errorMessage": "Failed to update index settings",
- "status": "error"
}
Creates mappings for passed resource name and tenant id in request header.
x-okapi-tenant required | string X-Okapi-Tenant header value |
resourceName required | string Name of resource |
{- "resourceName": "authority"
}
{- "errorMessage": "Failed to update index settings",
- "status": "error"
}
Indexes the records into elasticsearch.
id | string Resource id |
type | string (resourceEventType) Enum: "UPDATE" "CREATE" "DELETE" "REINDEX" "DELETE_ALL" Resource event operation type - one of [update, create, delete, delete_all, reindex] |
deleteEventSubType | string (resourceDeleteEventSubType) Enum: "SOFT_DELETE" "HARD_DELETE" Resource event delete operation type - one of [soft-delete, hard-delete] |
tenant | string Tenant id |
resourceName | string Name of resource |
new | object Instance record new fields |
old | object Instance record old fields |
[- {
- "resourceName": "instance",
- "type": "CREATE",
- "tenant": "diku",
- "new": {
- "id": "83249565-16a8-4687-9061-fd1de43d7f34",
- "hrid": "in869",
- "title": "Kunstschätze aus badischen Schlössern :Meersburg, Rastatt, Favorite, Bruchsal, Heidelberg, Schwetzingen : 9. Juli bis 12. Oktober 1968, Ausstellung im Gartensaal des Karlsruher Schlosses /Badisches Landesmuseum Karlsruhe ; [Gesamtgestaltung und Redaktion, Ernst Petrasch].",
- "source": "MARC",
- "editions": [
- "2. Aufl."
], - "metadata": {
- "createdDate": "1974-12-03T00:00:00",
- "updatedDate": "2018-10-15T13:25:11Z"
}, - "statusId": "7cc3837e-c4f1-4584-a3ae-b0c0bfce4bb2",
- "subjects": [
- "Art--Germany--Exhibitions.",
- "Castles--Germany--Exhibitions.",
- "Art, Modern.",
- "Exhibition catalogs."
], - "languages": [
- "ger"
], - "indexTitle": "Kunstschätze aus badischen Schlössern :Meersburg, Rastatt, Favorite, Bruchsal, Heidelberg, Schwetzingen : 9. Juli bis 12. Oktober 1968, Ausstellung im Gartensaal des Karlsruher Schlosses /Badisches Landesmuseum Karlsruhe ; [Gesamtgestaltung und Redaktion, Ernst Petrasch].",
- "identifiers": [
- {
- "value": "(ICU)BID10243",
- "identifierTypeId": "2baf4cec-6abf-438b-abd0-a6c512c3c173"
}, - {
- "value": "(OCoLC)26620653",
- "identifierTypeId": "01ca9cda-7027-4d64-abed-9e3c4943daf2"
}
], - "publication": [
- {
- "place": {
- "Karlsruhe": null
}, - "publisher": "The Museum",
- "dateOfPublication": "1968"
}
], - "contributors": [
- {
- "name": "Badisches Landesmuseum Karlsruhe",
- "primary": true,
- "contributorNameTypeId": "2b4007a7-2d96-4262-a360-c9f760e355c3"
}, - {
- "name": "Petrasch, Ernst",
- "primary": false,
- "contributorNameTypeId": "35b01201-597f-4938-a0d1-110245ba9d67"
}
], - "instanceTypeId": "1c43b4c1-b138-4386-a91d-0d305e4ddf23",
- "modeOfIssuanceId": "7b143a6c-84e8-4168-94b1-24220a3d14cc",
- "discoverySuppress": false,
- "statusUpdatedDate": "2019-12-18T20:46:50Z",
- "physicalDescriptions": [
- {
- "46 p.": "ill. ; 21 cm."
}
]
}
}
]
{- "status": "success"
}
Update Index Dynamic Settings data.
x-okapi-tenant required | string X-Okapi-Tenant header value |
resourceName required | string Resource name to set index Settings | ||||
object (indexDynamicSettings) Elasticsearch/Opensearch index dynamic settings | |||||
|
{- "resourceName": "instance",
- "indexSettings": {
- "numberOfReplicas": 4,
- "refreshInterval": -1
}
}
{- "errorMessage": "Failed to update index settings",
- "status": "error"
}
Initiates reindex for the inventory records
x-okapi-tenant required | string X-Okapi-Tenant header value |
recreateIndex | boolean Default: false Boolean parameter, if set to true - tenant index must be recreated before reindex operation | ||||||
resourceName required | string Enum: "authority" "location" "linked-data-instance" "linked-data-work" "linked-data-hub" Resource name to run reindex for | ||||||
object (indexSettings) Elasticsearch/Opensearch index settings | |||||||
|
{- "recreateIndex": true,
- "resourceName": "authority"
}
{- "id": "68ec4438-8b93-46df-8c36-232db4f7862e",
- "jobStatus": "In progress",
- "submittedDate": "2024-12-05T10:22:22"
}
Get a list of statuses for each resource reindexing
x-okapi-tenant required | string X-Okapi-Tenant header value |
[- {
- "entityType": "instance",
- "status": "Upload Completed",
- "totalMergeRanges": 3,
- "processedMergeRanges": 3,
- "totalUploadRanges": 2,
- "processedUploadRanges": 2,
- "startTimeMerge": "2024-04-01T01:37:34.15755006Z",
- "endTimeMerge": "2024-04-01T01:37:35.15755006Z",
- "startTimeUpload": "2024-04-01T01:37:36.15755006Z",
- "endTimeUpload": "2024-04-01T01:37:37.15755006Z"
}, - {
- "entityType": "item",
- "status": "Merge In Progress",
- "totalMergeRanges": 3,
- "processedMergeRanges": 2,
- "startTimeMerge": "2024-04-01T01:37:34.15755006Z"
}, - {
- "entityType": "contributor",
- "status": "Upload Completed",
- "totalUploadRanges": 3,
- "processedUploadRanges": 3,
- "startTimeUpload": "2024-04-01T01:37:34.15755006Z",
- "endTimeUpload": "2024-04-01T01:37:35.15755006Z"
}, - {
- "entityType": "classification",
- "status": "Upload Failed",
- "totalUploadRanges": 2,
- "processedUploadRanges": 1,
- "startTimeUpload": "2024-04-01T01:37:36.15755006Z",
- "endTimeUpload": "2024-04-01T01:37:37.15755006Z"
}
]
Initiates the full reindex for the inventory instance records
x-okapi-tenant required | string X-Okapi-Tenant header value |
numberOfShards | integer [ 1 .. 100 ] The number of primary shards that an index should have. |
numberOfReplicas | integer [ 1 .. 100 ] The number of replicas each primary shard has. |
refreshInterval | integer [ -1 .. 3600 ] How often to make new changes to the index visible to search (seconds). '-1' disables refresh. |
{- "numberOfShards": 1,
- "numberOfReplicas": 1,
- "refreshInterval": 1
}
{- "errors": [
- {
- "message": "must not be null",
- "type": "MethodArgumentNotValidException",
- "code": "validation_error",
- "parameters": [
- {
- "key": "parameter",
- "value": "null"
}
]
}
], - "total_records": 1
}
Initiates reindex upload for inventory instance records
x-okapi-tenant required | string X-Okapi-Tenant header value |
entityTypes required | Array of objects non-empty Items Enum: "instance" "subject" "contributor" "classification" Entity name to run reindex upload | ||||||
object (indexSettings) Elasticsearch/Opensearch index settings | |||||||
|
{- "entityTypes": [
- "instance",
- "subject",
- "contributor",
- "classification"
]
}
{- "errors": [
- {
- "message": "must not be null",
- "type": "MethodArgumentNotValidException",
- "code": "validation_error",
- "parameters": [
- {
- "key": "parameter",
- "value": "null"
}
]
}
], - "total_records": 1
}
Initiates reindexing of failed merge ranges for inventory instance records
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "errors": [
- {
- "message": "must not be null",
- "type": "MethodArgumentNotValidException",
- "code": "validation_error",
- "parameters": [
- {
- "key": "parameter",
- "value": "null"
}
]
}
], - "total_records": 1
}
Provides endpoints to search for records (e.g., instances, authorities) using CQL (Contextual Query Language) queries. Supports various search options and retrieval of search results.
Get a list of instances for CQL query
query required | string A CQL query string Instance search options
Holdings search options
Item search options
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "instances": [
- {
- "id": "d20569a7-9bba-44dd-9ad5-6f8f1d24ee1f",
- "tenantId": "tenant",
- "shared": false,
- "title": "Bilingualism: a bibliography of 1000 references with special reference to Wales.",
- "contributors": [
- {
- "name": "Eichhorst, Georg.",
- "contributorTypeId": "a",
- "authorityId": "a",
- "primary": true
}
], - "publication": [
- {
- "publisher": "Duncker und Humblot",
- "dateOfPublication": "1976",
- "place": "Karlsruhe"
}
], - "staffSuppress": false,
- "discoverySuppress": false,
- "isBoundWith": false,
- "electronicAccess": [ ],
- "notes": [ ],
- "items": [ ],
- "holdings": [ ]
}
], - "totalRecords": 1
}
Get a list of authorities for CQL query
query required | string A CQL query string with search conditions. |
limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
includeNumberOfTitles | boolean Default: true Whether to perform a search for a number of linked instances. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 10,
- "authorities": [
- {
- "id": "f866ae27-ec31-4eb4-8ade-89fe3d9625eb",
- "tenantId": "diku",
- "shared": false,
- "headingType": "Personal Name",
- "authRefType": "Authorized",
- "headingRef": "Kerouac, Jack",
- "numberOfTitles": 0,
- "sourceFileId": "NULL",
- "naturalId": "aat32"
}, - {
- "id": "d16bc790-fa2a-4bae-9563-9796bc7bef3c",
- "tenantId": "diku",
- "shared": false,
- "headingType": "Personal Name",
- "authRefType": "Authorized",
- "headingRef": "Roberts, Julia, 1967-",
- "numberOfTitles": 1,
- "sourceFileId": "af045f2f-e851-4613-984c-4bc13430454a",
- "naturalId": "n910740801"
}
]
}
Get a list of linked data records for CQL query
query required | string A CQL query string with search conditions. |
limit | integer [ 0 .. 100 ] Default: 10 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
omitInstances | boolean Default: false Whether to omit instances from a Work search result set |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "searchQuery": "query string",
- "content": [
- {
- "id": "1",
- "titles": [
- {
- "value": "Title Value",
- "type": "Main"
}
], - "contributors": [
- {
- "name": "John Doe",
- "type": "Person",
- "isCreator": true
}
], - "languages": [
- "eng"
], - "classifications": [
- {
- "number": "1234",
- "source": "ddc"
}
], - "subjects": [
- "Subject"
], - "instances": [
- {
- "id": "2",
- "titles": [
- {
- "value": "Title Value",
- "type": "Main"
}
], - "identifiers": [
- {
- "value": "1234567890",
- "type": "ISBN"
}
], - "contributors": [
- {
- "name": "John Doe",
- "type": "Person",
- "isCreator": true
}
], - "publications": [
- {
- "name": "Publisher Name",
- "date": "2022"
}
], - "editionStatements": [
- "Edition 1"
]
}
]
}
], - "pageNumber": 0,
- "totalPages": 10,
- "totalRecords": 100
}
Get a list of linked data Hubs records for CQL query
query required | string A CQL query string with search conditions. |
limit | integer [ 0 .. 100 ] Default: 10 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "searchQuery": "query string",
- "content": [
- {
- "id": "1",
- "originalId": "d292aac1-6f82-4828-93ae-c1b5cde1318a",
- "hubAAP": "hub AAP",
- "title": "hub title"
}
], - "pageNumber": 0,
- "totalPages": 3,
- "totalRecords": 27
}
Get a list of linked data records for CQL query
query required | string A CQL query string with search conditions. |
limit | integer [ 0 .. 100 ] Default: 10 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "searchQuery": "query string",
- "content": [
- {
- "id": "1",
- "titles": [
- {
- "value": "Title Value",
- "type": "Main"
}
], - "contributors": [
- {
- "name": "John Doe",
- "type": "Person",
- "isCreator": true
}
], - "languages": [
- "eng"
], - "classifications": [
- {
- "number": "1234",
- "source": "ddc"
}
], - "subjects": [
- "Subject"
], - "identifiers": [
- {
- "value": "1234567890",
- "type": "ISBN"
}
], - "publications": [
- {
- "name": "Publisher Name",
- "date": "2022"
}
], - "editionStatements": [
- "Edition 1"
]
}
], - "pageNumber": 0,
- "totalPages": 10,
- "totalRecords": 100
}
Provides endpoints to search for consolidated records (e.g., holdings, items) across multiple institutions or libraries within a consortium.
Get a list of holdings (only for consortium environment)
instanceId | string UUID of the instance |
tenantId | string Tenant ID to filter by |
limit | integer [ 0 .. 1000 ] Default: 100 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "holdings": [
- {
- "id": "68ec4438-8b93-46df-8c36-232db4f7862e",
- "hrid": "ho00231",
- "tenantId": "college",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "discoverySuppress": false,
- "callNumberPrefix": "int",
- "callNumber": "MS 33.123",
- "callNumberSuffix": "pro",
- "copyNumber": "c10",
- "permanentLocationId": "e18610eb-0842-4dac-bd6a-23e6ef962230"
}, - {
- "id": "b6993450-25c1-4c23-a1d1-98abb67fb506",
- "hrid": "ho00333",
- "tenantId": "university",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "discoverySuppress": true,
- "permanentLocationId": "e18610eb-0842-4dac-bd6a-23e6ef962230"
}
], - "totalRecords": 1203
}
Get a list of items (only for consortium environment)
instanceId | string UUID of the instance |
holdingsRecordId | string UUID of the holdings record |
tenantId | string Tenant ID to filter by |
limit | integer [ 0 .. 1000 ] Default: 100 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "items": [
- {
- "id": "68ec4438-8b93-46df-8c36-232db4f7862e",
- "hrid": "it00231",
- "tenantId": "college",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "holdingsRecordId": "2ec87381-cfc6-4cd7-8368-9398410a64c4",
- "barcode": "1233322"
}, - {
- "id": "dab66210-5038-424a-a31e-cda18b4d4061",
- "hrid": "it00033321",
- "tenantId": "university",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "holdingsRecordId": "2ec87381-cfc6-4cd7-8368-9398410a64c4",
- "barcode": "7873426"
}
], - "totalRecords": 1203
}
Get a list of locations (only for consortium environment)
tenantId | string Tenant ID to filter by |
id | string ID to filter by |
limit | integer [ 0 .. 10000 ] Default: 10000 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Default: "name" Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 0,
- "locations": [
- {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "institutionId": "institutionId",
- "discoveryDisplayName": "discoveryDisplayName",
- "libraryId": "libraryId",
- "campusId": "campusId",
- "description": "description",
- "isActive": "isActive",
- "primaryServicePoint": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "name": "name",
- "tenantId": "tenantId",
- "id": "id",
- "servicePointIds": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
]
}, - {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "institutionId": "institutionId",
- "discoveryDisplayName": "discoveryDisplayName",
- "libraryId": "libraryId",
- "campusId": "campusId",
- "description": "description",
- "isActive": "isActive",
- "primaryServicePoint": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "name": "name",
- "tenantId": "tenantId",
- "id": "id",
- "servicePointIds": [
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
- "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
]
}
]
}
Get a list of campuses (only for consortium environment)
tenantId | string Tenant ID to filter by |
id | string ID to filter by |
limit | integer [ 0 .. 1000 ] Default: 1000 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Default: "name" Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 0,
- "campuses": [
- {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "institutionId": "institutionId",
- "tenantId": "tenantId",
- "name": "name",
- "id": "id"
}, - {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "institutionId": "institutionId",
- "tenantId": "tenantId",
- "name": "name",
- "id": "id"
}
]
}
Get a list of libraries (only for consortium environment)
tenantId | string Tenant ID to filter by |
id | string ID to filter by |
limit | integer [ 0 .. 1000 ] Default: 1000 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Default: "name" Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "totalRecords": 0,
- "libraries": [
- {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "tenantId": "tenantId",
- "name": "name",
- "campusId": "campusId",
- "id": "id"
}, - {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "tenantId": "tenantId",
- "name": "name",
- "campusId": "campusId",
- "id": "id"
}
]
}
Get a list of institutions (only for consortium environment)
tenantId | string Tenant ID to filter by |
id | string ID to filter by |
limit | integer [ 0 .. 1000 ] Default: 1000 Limit the number of elements returned in the response. |
offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
sortBy | string Default: "name" Defines a field to sort by. Possible values:
|
sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "institutions": [
- {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "tenantId": "tenantId",
- "name": "name",
- "id": "id"
}, - {
- "metadata": {
- "createdByUserId": "createdByUserId",
- "createdDate": "createdDate",
- "updatedDate": "updatedDate",
- "updatedByUserId": "updatedByUserId"
}, - "code": "code",
- "tenantId": "tenantId",
- "name": "name",
- "id": "id"
}
], - "totalRecords": 0
}
Fetch a list of items (only for consortium environment)
x-okapi-tenant required | string X-Okapi-Tenant header value |
identifierType required | string Enum: "id" "hrid" "accessionNumber" "formerIds" "barcode" "holdingsRecordId" "instanceId" "instanceHrid" "itemBarcode" Type of entity identifier |
identifierValues required | Array of strings Entity identifier values |
{- "identifierType": "id",
- "identifierValues": [
- "string"
]
}
{- "items": [
- {
- "id": "68ec4438-8b93-46df-8c36-232db4f7862e",
- "hrid": "it00231",
- "tenantId": "college",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "holdingsRecordId": "2ec87381-cfc6-4cd7-8368-9398410a64c4",
- "barcode": "1233322"
}, - {
- "id": "dab66210-5038-424a-a31e-cda18b4d4061",
- "hrid": "it00033321",
- "tenantId": "university",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "holdingsRecordId": "2ec87381-cfc6-4cd7-8368-9398410a64c4",
- "barcode": "7873426"
}
], - "totalRecords": 1203
}
Fetch a list of holdings (only for consortium environment)
x-okapi-tenant required | string X-Okapi-Tenant header value |
identifierType required | string Enum: "id" "hrid" "accessionNumber" "formerIds" "barcode" "holdingsRecordId" "instanceId" "instanceHrid" "itemBarcode" Type of entity identifier |
identifierValues required | Array of strings Entity identifier values |
{- "identifierType": "id",
- "identifierValues": [
- "string"
]
}
{- "holdings": [
- {
- "id": "68ec4438-8b93-46df-8c36-232db4f7862e",
- "hrid": "ho00231",
- "tenantId": "college",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "discoverySuppress": false,
- "callNumberPrefix": "int",
- "callNumber": "MS 33.123",
- "callNumberSuffix": "pro",
- "copyNumber": "c10",
- "permanentLocationId": "e18610eb-0842-4dac-bd6a-23e6ef962230"
}, - {
- "id": "b6993450-25c1-4c23-a1d1-98abb67fb506",
- "hrid": "ho00333",
- "tenantId": "university",
- "instanceId": "1af42087-458d-4777-a797-a7717020ab18",
- "discoverySuppress": true,
- "permanentLocationId": "e18610eb-0842-4dac-bd6a-23e6ef962230"
}
], - "totalRecords": 1203
}
Get holding by id (only for consortium environment)
id required | string <uuid> The UUID of a record |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "callNumberPrefix": "callNumberPrefix",
- "instanceId": "instanceId",
- "discoverySuppress": true,
- "hrid": "hrid",
- "callNumber": "callNumber",
- "permanentLocationId": "permanentLocationId",
- "tenantId": "tenantId",
- "copyNumber": "copyNumber",
- "callNumberSuffix": "callNumberSuffix",
- "id": "id"
}
Get an item (only for consortium environment)
id required | string <uuid> The UUID of a record |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "instanceId": "instanceId",
- "hrid": "hrid",
- "tenantId": "tenantId",
- "id": "id",
- "holdingsRecordId": "holdingsRecordId",
- "barcode": "barcode"
}
Provides endpoints to retrieve record IDs by CQL queries, without returning the full record data.
Get a list of instance ids for CQL query
query required | string A CQL query string with search conditions. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
Content-Type | string Content-Type header value |
{- "ids": [
- {
- "id": "e7e7f4a4-ff8e-48f4-ae8e-25770b7ab4b9"
}, - {
- "id": "e60063f6-db50-4a2a-93f6-6b27ab0420f2"
}, - {
- "id": "5fab345a-30a4-4aee-8667-1e33d4627ce9"
}
], - "totalRecords": 3
}
Get a list of holding ids linked to instances found by the CQL query
query required | string A CQL query string with search conditions. |
x-okapi-tenant required | string X-Okapi-Tenant header value |
Content-Type | string Content-Type header value |
{- "ids": [
- {
- "id": "dfb3afad-15c8-4243-9df1-81b12ebd6413"
}, - {
- "id": "c95c7b5d-1fc2-4615-9c73-7034113d30fd"
}, - {
- "id": "2d8abe4b-be87-441c-a163-c3876aa9717b"
}
], - "totalRecords": 3
}
Get a job for the stream of resource ids.
jobId required | string UUID of the job to get |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "id": "eea1432c-beb8-4f4f-b96a-f8de977f1106",
- "query": "title=*",
- "status": "COMPLETED",
- "entityType": "INSTANCE",
- "createdDate": "1974-12-03T00:00:00"
}
Creates a job for the stream of resource ids.
x-okapi-tenant required | string X-Okapi-Tenant header value |
id | string Unique ID for the job record. |
query required | string CQL query for getting ids. |
status | string Enum: "IN_PROGRESS" "ERROR" "COMPLETED" "DEPRECATED" Ids streaming status. |
entityType required | string Enum: "INSTANCE" "AUTHORITY" "HOLDINGS" Type of entity for streaming ids. |
createdDate | string Date and time when the record was created. |
{- "query": "title=*",
- "entityType": "INSTANCE"
}
{- "id": "eea1432c-beb8-4f4f-b96a-f8de977f1106",
- "query": "title=*",
- "status": "COMPLETED",
- "entityType": "INSTANCE",
- "createdDate": "1974-12-03T00:00:00"
}
Get a list of resource ids by job id
jobId required | string UUID of the job to get |
x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "ids": [
- {
- "id": "e7e7f4a4-ff8e-48f4-ae8e-25770b7ab4b9"
}, - {
- "id": "e60063f6-db50-4a2a-93f6-6b27ab0420f2"
}, - {
- "id": "5fab345a-30a4-4aee-8667-1e33d4627ce9"
}
], - "totalRecords": 3
}