Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...


Div
stylefloat:right
classpageTOCwrapper


Panel
bgColor#F5F5F5
titleBGColor#F5F5F5

On this page:

Table of Contents


The LibraryCloud Item API provides Library Cloud is a metadata service that provides open, programmatic access to the metadata about items in available within the Harvard Library collections. For the purposes of this API, an “item” is the metadata describing a catalog record within the Harvard Library. LibraryCloud Item API searches ecosystem. It normalizes metadata so that it can be found across silos, and enriches it with connections to information within the Library’s collection and beyond.  If a resource that should be part of Library Cloud is added or updated, the metadata should be in LibraryCloud the next day.

LibraryCloud offers item and collection APIs that provide search access to Harvard collections metadata:

  • The item API searches over 20 million aggregated metadata records

...

  • sourced from Harvard Library's main catalog (Alma), JSTOR Forum (for visual information components), and ArchivesSpace (for archival finding aid components).

...

Base URI

https://api.lib.harvard.edu/v2/items

Simple Query

...

  • When digitized content is available, these metadata records are enriched with information from Harvard Library's digital repository (DRS). 
  • The collection API provides access to metadata about groupings or sets of these items created for administrative and discovery purposes by Harvard staff.


Div
stylewidth:70%


Warning

Need help? If you have questions or need to report a problem when using LibraryCloud APIs, please contact LTS Support


About the Collections API

The base URI for the collections API is https://api.lib.harvard.edu/v2/items?q=peanuts 
The response will include all items where any field contains the text “peanuts”.Multiple terms may be used in a simple querycollections. Use this API to: 

  • Retrieve a list of all existing collections (sets), with full set metadata including set name, abbreviation (setSpec), set identifier, size, and description:
    https://api.lib.harvard.edu/v2/

...

...

...

...

Note: The Items API supports querying full item records by associated set metadata. For example, the following items API queries use set metadata to return items in the English Crime and Execution Broadsides set:

...

...

Simple Response

The response to any query contains the total number of matching records, the number of records included within this response, the page number of this response, and the matching records. 

...

...

...

...

...

Searching by Field

See the Field Reference for a list of field-based queries.

...

About the Items API

The base URI for items is https://api.lib.harvard.edu/v2/items

Keyword Query

The simplest query to the API includes only a search term:
https://api.lib.harvard.edu/v2/items?titleq=peanuts
This query returns all items with peanuts 
The response will include all items where any field contains the text “peanuts” in the title field.

Field-based queries support combining or excluding terms with AND, OR, NOTMultiple terms may be used in a simple query:
https://api.lib.harvard.edu/v2/items?subjectq=schulz charlesSchulz peanuts
https://api.lib.harvard.edu/v2/items?subjectq=schulzSchulz+charlespeanuts
 https://api.lib.harvard.edu/v2/items?subject=schulz AND charlesq=Schulz AND peanuts 
All the above queries will return items where any subject field contains the text “schulz” “Schulz” AND “charles”“peanuts”.

https://api.lib.harvard.edu/v2/items?titleq=archaeology Schulz OR archeology
This query returns all items containing the text "archaeology" OR archeology in a title fieldpeanuts
The response will include all items where any field contains the text “Schulz” OR “peanuts.

https://api.lib.harvard.edu/v2/items?name=updike NOT john 
This query returns q=Schulz NOT peanuts
The response will include all items where any name field contains the text "updikeSchulz" but NOT "johnpeanuts".

Multiple queries terms can be combined with Boolean operators and parentheses in a complex query:
https://api.lib.harvard.edu/v2/items?
title=peanuts&q=snack
This query returns all items with the text “peanuts” in a title field and “snack” anywhere in the record.q=(ethic*+OR+moral*)+AND+(bioengineering+OR+cloning)

Query Response

The response to any query contains the total number of matching records, the number of records included within this response, the page number of this response, and the matching records. 

Sample XML response:
https://api.lib.harvard.edu/v2/items?titleq=peanuts&name=Schulz
This query returns all items with the text “peanuts” in the title field and “Schulz” in the name field.Case-sensitive exact-match queries can be done on specific fields by appending _exact to the field name

Sample JSON response: 
https://api.lib.harvard.edu/v2/items.json?q=peanuts 

Searching by Field

See the Field Reference for a list of field-based queries.

A query can be limited to a particular field:
https://api.lib.harvard.edu/v2/items?title_exact=Peanutspeanuts
This query returns all items with a title of exactly “Peanuts”. In the Field Reference list, the Exact Match Search column indicates if a field supports an exact match query. 

Accented Characters and Punctuation

If your query terms contain accented characters, include these in the searchthe text “peanuts” in the title field.

Field-based queries support combining or excluding terms with AND, OR, NOT:
https://api.lib.harvard.edu/v2/items?name=Saint-Exupéry, Antoine desubject=schulz charles
https://api.lib.harvard.edu/v2/items?subject=schulz+charles
https://api.lib.harvard.edu/v2/items?namesubject=MolièreIf your query includes an ampersand, the ampersand must be replaced by the URL-encoded equivalent (%26). For example, to search the title Saxo Grammaticus & the life of Hamlet:schulz AND charles
All the above queries will return items where any subject field contains the text “schulz” AND “charles”.

https://api.lib.harvard.edu/v2/items?title_exact=Saxo+Grammaticus+%26+the+life+of+Hamlet 

At this time, LibraryCloud queries can be sensitive to the presence of punctuation. Some MODS fields (e.g. Genre) include supplied punctuation (e.g., a terminal period or comma) that must be included in the query or it will fail. 

Stemming, Stopwords and Wildcards

LibraryCloud uses standard Solr index stemming and stopword lists. The stemming algorithm is based on the Porter stemming algorithm.

Keywords may be wild-carded with an asterisk:
=archaeology OR archeology
This query returns all items containing the text "archaeology" OR archeology in a title field.

https://api.lib.harvard.edu/v2/items?name=updike NOT john 
This query returns all items where any name field contains the text "updike" but NOT "john".

Multiple queries can be combined:
https://api.lib.harvard.edu/v2/items?title=peanuts&q=snack
This query returns all items with the text “peanuts” in a title field and “snack” anywhere in the record.

https://api.lib.harvard.edu/v2/items?title=peanut*
https://api.lib.harvard.edu/v2/items?title=p*nut

Paging

By default, each response will include the first 10 records available. A query can request more records in a response (up to 250), and page through the results.
peanuts&name=Schulz
This query returns all items with the text “peanuts” in the title field and “Schulz” in the name field.

Case-sensitive exact-match queries can be done on specific fields by appending _exact to the field name:
https://api.lib.harvard.edu/v2/items?title=peanuts?start=100&limit=50
Return the results for the query starting at item 100, with a page size of 50 (e.g. records 100 through 149).

ParameterDescription
start

The row number to start returning results from. If omitted, will default to 1.

limitThe number of results to return. Default is 10. May be between 0 and 250.

Sorting

Responses can sorted in ascending or descending order. See the Field Reference for a list of sortable fields.
https://_exact=Peanuts
This query returns all items with a title of exactly “Peanuts”. In the Field Reference list, the "Exact Match Search" column indicates if a field supports an exact match query. Note that an exact query can match on contents of a single MODS field only. In the conversion to LibraryCloud MODS, a single field may be split up – for example, a MARC subject heading and its subdivisions will each be fielded separately. In this case, there isn't an item API fielded query that will return only matches on the full subject heading and its subdivisions. 

Accented Characters and Punctuation

If your query terms contain accented characters, include these in the search:
https://api.lib.harvard.edu/v2/items?title=peanuts&sort.asc=resourceType
Sort results by the “resourceType” field, in ascending order.

ParameterDescription
sort.asc OR sort

The field to use for sorting, in ascending order

sort.descThe field to use for sorting, in descending order

Facets

Many fields are available for faceting (see the Field Reference "Can Facet" column for details).
name=Saint-Exupéry, Antoine de
https://api.lib.harvard.edu/v2/items.json?title=peanuts&facets=name,resourceType
Facet search results by the “name” and “resourceType” fields

ParameterDescription
facets

A comma-separated list of facets to return

facet_sizeThe maximum number of facets to be returned for each faceted field. Default is 10. May be between 1 and 100.

Response Format

By default, all responses are in MODS format. Dublin Core (DC) can be requested by adding .dc to the base URI
https://api.lib.harvard.edu/v2/items.dc?title=peanuts

Response Serialization

By default, all responses are returned as XML. Responses can be returned as JSON either by adding “.json” to the base URI, or by setting the “Accept” HTTP header in the request to “application/json”. When specifying both the response format and serialization, the format should be added first.name=Molière

If your query includes an ampersand, the ampersand must be replaced by the URL-encoded equivalent (%26). For example, to search the title Saxo Grammaticus & the life of Hamlet:
https://api.lib.harvard.edu/v2/items?title_exact=Saxo+Grammaticus+%26+the+life+of+Hamlet 

At this time, LibraryCloud queries can be sensitive to the presence of punctuation. Some MODS fields (e.g. Genre) include supplied punctuation (e.g., a terminal period or comma) that must be included in the query or it will fail. 

Stemming, Stopwords and Wildcards

LibraryCloud uses standard Solr index stemming and stopword lists. The stemming algorithm is based on the Porter stemming algorithm.

Keywords may be wild-carded with an asterisk:
https://api.lib.harvard.edu/v2/items.json?title=peanutspeanut*
https://api.lib.harvard.edu/v2/items.dc.json?title=peanuts

Cross-domain queries

The API sets the necessary CORS header to allow cross-domain requests in supported browsers. Cross-domain queries can also use JSONP by specifying a callback function name in a “callback” parameter.p*nut

Pagination

By default, a query response will include the first 10 records available. You can increase the number of records returned (up to a max of 250) by using the optional limit parameter. For example, the following query will return the first set of 50 matching records:
https://api.lib.harvard.edu/v2/items.json?title=peanuts&callbacklimit=myfunction

ParameterDescription
calback

Javascript function name. The response data will enclosed in a javascript function call with this name.

 

API Versioning

The version number of the API is specified in the base URL (e.g. “v2”). A version number is always required when accessing the API. The version number will be incremented whenever breaking (non backwards-compatible) changes are made to the API.

...

This section describes the fields available for searching through the API. In some cases, fields available through the API aggregate multiple fields with the MODS records. When applicable, this is identified in the MODS field mapping column.

...

title

...

Yes

...

Yes

...

No

...

No

...

50

You can combine limit with either the start or cursor parameters to paginate an entire result set. Do not combine start and cursor parameters in a single query.

ParameterDescription
limitThe number of results to return. Omit limit and the default is 10 records. May be between 0 and 250.
start

The row number to start returning results from. If omitted, will default to 1.

cursorEncoded pointer to a specific record in the search results set. On subsequent requests, the server returns results after the given pointer.

Paginating with Start

Use the start parameter to set a numerical offset at which the next page will start and add the limit parameter to set the number of results per page. (Omit the limit parameter and the api will return 10 records per page by default.) For example, the following query will return results starting at item 100, with a page size of 50 (e.g., records 100 through 149): 
https://api.lib.harvard.edu/v2/items?title=peanuts&start=100&limit=50

Query results will include this top-level <pagination> block: 

Code Block
firstline1
<pagination>
<maxPageableSet>100000</maxPageableSet>
<numFound>768</numFound>
<query>start=100&limit=50&title=peanuts</query>
<limit>50</limit>
<start>100</start>
</pagination>

As the <maxPageableSet> element indicates, for performance reasons this api can paginate result sets up to a maximum size of 100,000 records. Beyond this number, you'll need to adjust the query to reduce results to a size that can be paginated. 

Pros: Pagination using the start parameter supports the default sort by relevancy or alphanumeric sort (when available). 

Cons: Pagination using the start parameter does not scale well with larger result sets. For example, queries using start can time out at around 30,000 record hits.

Paginating with Cursor

A cursor is a pointer to a specific record in a result set. (In this case, the cursor is an encoded version of a record identifier.) The api uses the cursor to divide a list of results into records that fall before the cursor and records that fall after the cursor. In your initial query, include the parameter cursor=* (along with a limit parameter to define number of results per page) and the api will return the first page of results plus a <nextCursor> value. For example, the following query will return the first 50 records that match the query along with a nextCursor value that can be used as the cursor value in the next request: 
https://api-qa.lib.harvard.edu/v2/items?title=peanuts&cursor=*&limit=50

Query results will include this top-level <pagination> block: 

Code Block
firstline1
<pagination>
<maxPageableSet>100000</maxPageableSet>
<nextCursor>AoEyOTkwMDM3NTk4NzAwMjAzOTQx</nextCursor>
<numFound>769</numFound>
<query>cursor=*&limit=50&title=peanuts</query>
<limit>50</limit>
<start>0</start>
</pagination>

To get the next set of results, the client (web browser or application) would make another query that uses the <nextCursor> value as cursor parameter. For example, the following query will return the next 50 matching records:
https://api-qa.lib.harvard.edu/v2/items?title=peanuts&cursor=AoEyOTkwMDM3NTk4NzAwMjAzOTQx&limit=50

The <pagination> block in the next set of query results will include a new <nextCursor> value that can be used in the subsequent query, and so on.

Pros:  Pagination using the cursor parameter works well with large result sets but note that the api can paginate result sets up to a maximum size of 100,000 records. Beyond this number, you'll need to adjust the query to reduce results to a size that can be paginated.  

Cons: Pagination using the cursor parameter currently returns results in alphanumeric order by record identifier. Support for sort by relevancy is planned for the future. Also, at this time the api will return a <nextCursor> value even if there are no more results to return. 

Sorting

By default, query responses are sorted by relevancy and sub-sorted by record identifier. In some cases, query responses can be sorted in ascending or descending alphanumeric order. See the "Alpha Sort" column in the Field Reference for an indication of which fields support alphanumeric sorting. 

This query returns results sorted in ascending order by source of item:
https://api.lib.harvard.edu/v2/items?q=university AND choir&sort=source

This query returns results sorted in descending order by recordIdentifier of item:
https://api.lib.harvard.edu/v2/items?title=peanuts&sort.desc=recordIdentifier

ParameterDescription
sort.asc OR sort

The field to use for sorting, in ascending order

sort.descThe field to use for sorting, in descending order

Facets

Facets are attributes of an item (name, genre, type of resource, language, date, etc.) that can be used to power a faceted search or browse option in a discovery system. The items API supports a facets parameter that will return a list of facet values present in the query results. Many item API fields are available for faceting – see the Field Reference "Can Facet" column for an indication of which fields can be faceted.

For example, this query will return items that contain "peanuts" in a title followed by a list of facet values (and counts) for the “name” and “resourceType” fields that are present in the query results:
https://api.lib.harvard.edu/v2/items.json?title=peanuts&facets=name,resourceType

ParameterDescription
facets

A comma-separated list of facets to return

facet_sizeThe maximum number of facets to be returned for each faceted field. Default is 10. May be between 1 and 100.

Response Format

By default, all responses are in MODS format. Dublin Core (DC) can be requested by adding .dc to the base URI
https://api.lib.harvard.edu/v2/items.dc?title=peanuts

Response Serialization

By default, all responses are returned as XML. Responses can be returned as JSON either by adding “.json” to the base URI, or by setting the “Accept” HTTP header in the request to “application/json”. When specifying both the response format and serialization, the format should be added first.
https://api.lib.harvard.edu/v2/items.json?title=peanuts
https://api.lib.harvard.edu/v2/items.dc.json?title=peanuts

API Request Rate Limit

The LibraryCloud API is limited to an average of 300 requests per 5 minutes; if, after 5 minutes, that limit is exceeded, the client will receive a 5 minute timeout before they can resume requests. Please limit your requests to no more once per second.

Cross-Domain Queries

The API sets the necessary CORS header to allow cross-domain requests in supported browsers. Cross-domain queries can also use JSONP by specifying a callback function name in a “callback” parameter.
https://api.lib.harvard.edu/v2/items.json?title=peanuts&callback=myfunction

ParameterDescription
callback

Javascript function name. The response data will enclosed in a javascript function call with this name.

 API Versioning

The version number of the API is specified in the base URL (e.g. “v2”). A version number is always required when accessing the API. The version number will be incremented whenever breaking (non backwards-compatible) changes are made to the API.

Anchor
fields
fields
Field Reference

This section describes the fields available for searching through the API. In some cases, fields available through the API aggregate multiple fields within the MODS records. When applicable, this is identified in the MODS field mapping column.

NameExact Match SearchAlpha SortCan FacetMODS Field MappingExamples/Notes

abstractTOC

No

No

No

abstract
tableOfContents

This query returns items with the keyword "justinian" in an abstract or table of contents field:
https://api.lib.harvard.edu/v2/items?abstractTOC=Justinian

classification

Yes

No

Yes

classification

Physical organization code. Includes bibliographic-level classification but not holdings. See shelfLocator for holdings-level classification.

https://api.lib.harvard.edu/v2/items?classification=F1435.3

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?classification_exact=PR2825.A2 I8

collectionId

YesNoYes

extension.sets.systemId

Query by the set/collection ID assigned to items that have been grouped together for delivery via Harvard Digital Collections.

This query returns items associated with a specific set by its identifier:
https://api.lib.harvard.edu/v2/items?collectionId=84560

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?collectionId_exact=84560

collectionTitle


YesNoYes

extension.sets.setName
extension.sets.setSpec

Query by the set/collection title assigned to items that have been grouped together for delivery via Harvard Digital Collections.

This query returns items associated with a specific set by set title:
https://api.lib.harvard.edu/v2/items?

...

...

...

name

...

Chinese Rare Books

copyrightDate

Yes

...

No

Yes

...

originInfo.

...

e.g. "Greenblatt, Stephen"

...

copyrightDate

Use YYYY format to search.

https://api.lib.harvard.edu/v2/items?

...

...

?Search by name_exact returns 0 for known items:
https://api.lib.harvard.edu/v2/items?name_exact=keller, helen

...

role

...

Yes

...

2010

dateCaptured

Yes

No

Yes

...

...

...

...

...

resourceType

GETTING FALSE POSITIVES

...

Yes

...

Yes?

...

No

...

Yes

...

typeOfResource

...

isCollection
(Values are “true” or “false”)

GETTING FALSE POSITIVES

...

No

...

dateCaptured_exact=201502--

dateCreated

Yes

No

Yes

...

typeOfResource (where collection="yes")

Indicates whether or not a record describes a collection of items.

...

isManuscript
(Values are “true” or “false”)

GETTING FALSE POSITIVES

...

No

...

Yes?

...

No

...

Yes

...

typeOfResource (where manuscript="yes")

Indicates whether or not a record describes manuscript or archival material.

...

genre

...

...

...

...

...

[1961]

dateRange (future)

...






dates.start

...

No

...

No

...

Yes

No

...

originInfo.dateIssued
originInfo.

...

https://api.lib.harvard.edu/v2/items?q=colonial+north+america&originPlace=Boston

...

dateCreated

Use YYYY format to search.

This query returns all works by Molière published from 1990 forward:
https://api.lib.harvard.edu/v2/items?

...

publisher

...

Yes

...

Yes

...

No

...

Yes

...

name=Molière&dates.start=1990

This query returns all works by Molière published from 1990 backward:
https://api.lib.harvard.edu/v2/items?

...

...

...

...

1990

This query returns all works by Molière published from 1990 to 2000:
https://api.lib.harvard.edu/v2/items?

...

originDate

...

name=Molière&dates.start=1990&dates.end=2000

dates.end

edition

Yes

No

Yes

originInfo.

...

...

...

...

...

...

...

dateIssued

genre

Yes

...

No

Yes

...

Yes

...

...

genre_exact=pendants (jewelry)

identifier


Yes

No

No

identifier

(Identifier of an item in another system)

This query returns an item by its ISBN:
https://api.lib.harvard.edu/v2/items?

...

dateCreated

...

Yes

...

Yes

...

Yes

...

Yes

...

identifier=9789601426440

isCollection


Yes

No

Yes

typeOfResource (where collection="yes")

Values are “true” or “false”.

Indicates whether or not a record describes a collection of items.

https://api.lib.harvard.edu/v2/items?q=

...

colonial+north+america&isCollection=true 

isManuscript


Yes

No

Yes

typeOfResource (where manuscript="yes")

Values are “true” or “false”.

Indicates whether or not a record describes manuscript or archival material.

https://api.lib.harvard.edu/v2/items?

...

dateCaptured

...

Yes

...

Yes

...

Yes

...

Yes

...

originInfo.dateCaptured

https://api.lib.harvard.edu/v2/items?dateCaptured=2016&genre=performed+music

...

q=colonial+north+america&isManuscript=true

isOnline


No

Yes†

Yes

"true" if location.url[@access = 'raw object'] exists, "false" otherwise

Indicates whether or not an item is available in digital form; values are "true" or "false". See also inDRS.

https://api.lib.harvard.edu/v2/items?

...

copyrightDate

...

q=earhart amelia&isOnline=true

†Will sort all @access=raw object items together in a result set.

issuance

Yes

...

No

Yes

...

Yes

originInfo.

...

issuance

This query returns items with subject "astronomy" issued as a serial:
https://api.lib.harvard.edu/v2/items?

...

...

Yes

...

originInfo.dateIssued
originInfo.dateCreated

...

language.languageTerm (where languageTerm type="code")

Search is based on language ISO code.

This query returns items of Shakespeare in Chinese:
https://api.lib.harvard.edu/v2/items?name=

...

This query returns all works by Molière published from 1990 backward:
https://api.lib.harvard.edu/v2/items?name=Molière&dates.end=1990

...

shakespeare&languageCode=chi

languageText

Yes

No

Yes

language.languageTerm (where languageTerm type="text")

Facet as "language" rather than "languageText".

For exact match, use "language_exact".

Search is based on language name text.

This query returns items by or about Laozi in Chinese:
https://api.lib.harvard.edu/v2/items?

...

...

...

edition

...

Yes

...

Yes

...

Yes

...

Yes

...

originInfo.edition

...

...

...

...

language_exact=Chinese

name

Not available 

No

Yes

name.namePart

e.g. "Greenblatt, Stephen"

Will find term in any name field:
https://api.lib.harvard.edu/v2/items?name=

...

issuance

...

shakespeare

originDate

Yes

No

Yes

...

Yes

...

Yes

originInfo.dateIssued
originInfo.dateCreated
originInfo.dateCaptured
originInfo.

...

copyrightDate
originInfo.dateOther

https://api.lib.harvard.edu/v2/items?

...

...

...

...

languageCode
(Searches based on language ISO code)

...

No

...

Yes

...

No

...

Yes

...

language.languageTerm (where languageTerm type="code")

...

...

languageText
(Searches based on language name text)

...

Yes

...

Yes

...

No

...

Yes

...

language.languageTerm (where languageTerm type="text")

facet as "language" rather than "languageText"

...

...

physicalDescription

...

q=colonial+north+america&originPlace=Boston

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?originPlace_exact=New-England

physicalDescription




No

No

physicalDescription.form
physicalDescription.note

...

This query returns items in print form with "peanut" in the title:
https://api.lib.harvard.edu/v2/items?title=peanut&physicalDescription=print

...

abstractTOC

...

physicalLocation


No

No

...

Yes

...

abstract
tableOfContents

location.physicalLocation

Includes Harvard repository names but also non-Harvard locations, especially for artworks.

https://api.lib.harvard.edu/v2/items?

...

classification
(Physical organization code. Includes bibliographic-level classification but not holdings. See LibraryCloud Item API for holdings-level classification.)

...

No

...

Yes

...

Yes

...

Yes

classification

...

...

...

...

identifier

(Identifier of an item in another system)

...

No

...

Yes

...

Yes

...

No

...

identifier

...

Arden Shakespeare

recordIdentifier

Yes

No

No

recordInfo.recordIdentifier at the top level only

priorrecordids.recordIdentifier

e.g. recordIdentifier=sch00443c00117  (for finding aids), recordIdentifier=S26791_olvsurrogate827653 (for images), recordIdentifier=012956251 (for Aleph)

Internal recordInfo.recordIdentifier elements in finding aid components and image records can be searched as keywords.

https://api.lib.harvard.edu/v2/items?

...

In relatedItem[@type='series']:

titleInfo.title
titleInfo.subtitle
titleInfo.partName
titleInfo.partNumber

...

...

subject

...

Yes

...

Yes?

...

No

...

Yes?

...

subject.topic
subject.geographic
subject.temporal
subject.titleInfo
subject.name
subject.genre
subject.hierarchicalGeographic.continent
subject.hierarchicalGeographic.country
subject.hierarchicalGeographic.province
subject.hierarchicalGeographic.region
subject.hierarchicalGeographic.state
subject.hierarchicalGeographic.territory
subject.hierarchicalGeographic.county
subject.hierarchicalGeographic.city
subject.hierarchicalGeographic.island
subject.hierarchicalGeographic.area
subject.hierarchicalGeographic.extraterrestrialArea
subject.hierarchicalGeographic.citySection

https://api.lib.harvard.edu/v2/items?subject=perseus

...

recordIdentifier=sch00227c00197 (for finding aids)

https://api.lib.harvard.edu/v2/items?recordIdentifier=W42143_urn-3:FHCL:1176307 (for images)

Use a keyword query to retrieve items based on record ID in finding aid components and image records:
https://api.lib.harvard.edu/v2/items?q=olvsurrogate717044


repository


Yes

No

Yes

Search: location.physicalLocation (where @type="repository")

Facet: extension.librarycloud.HarvardRepositories.HarvardRepository

Includes Harvard repositories only.

A search will query the long form repository name (e.g.Eda Kuhn Loeb Music Library); faceting will return the short form repository name (e.g. Loeb Music).

https://api.lib.harvard.edu/v2/items

...

Notes:

...

Faceting or an _exact query on MODS subject.name and subject.titleinfo does not currently work.

...

subject.topic

...

...

subject.topic

...

name.namePart.role.roleTerm

https://api.lib.harvard.edu/v2/items?

...

name=shakespeare&role=publisher

seriesTitleYesNoYes

In relatedItem[@type='series']:

titleInfo.title
titleInfo.subtitle
titleInfo.partName
titleInfo.partNumber

facet as "relatedItem" rather than "seriesTitle"

https://api.lib.harvard.edu/v2/items?

...

subject.temporal

...

seriesTitle=Harvard-Yenching Institute Monograph Series

Anchor
shelfLocator
shelfLocator
shelfLocator

Yes

No

Yes

...

location.

...

...

...

...

...

...

subject.titleInfo

...

https://api.lib.harvard.edu/v2/items?subject.titleInfo=Middlemarch

...

Film%20Mas%2025860

source

No

Yes

Yes

...

No

...

Yes

...

subject.titleInfo.title
subject.titleInfo.subTitle
subject.titleInfo.partNumber
subject.titleInfo.partName

recordInfo.recordIdentifier source attribute

Sources are currently MH:ALMA (from Alma), MH:VIA (image items from JSTOR forum), or MH:OASIS (finding aid components from ArchivesSpace).

Attribute occurs only on top-level recordInfo.recordIdentifier elements

https://api.lib.harvard.edu/v2/items?

...

subject.name

...

Yes

...

Yes

...

No

...

Yes

...

q=earhart amelia&source=MH:ALMA

subject

Yes

No

Yes

subject.topic
subject.geographic
subject.temporal
subject.titleInfo
subject.name
subject.

...

https://api.lib.harvard.edu/v2/items?subject.name=kubrick stanley

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?subject.name=Kubrick,%20Stanley

...

subject.name.role

...

Yes?

...

Yes

...

No

...

Yes

...

genre
subject.hierarchicalGeographic.continent
subject.hierarchicalGeographic.country
subject.hierarchicalGeographic.province
subject.hierarchicalGeographic.region
subject.hierarchicalGeographic.state
subject.hierarchicalGeographic.territory
subject.hierarchicalGeographic.county
subject.hierarchicalGeographic.city
subject.hierarchicalGeographic.island
subject.hierarchicalGeographic.area
subject.hierarchicalGeographic.extraterrestrialArea
subject.hierarchicalGeographic.citySection

https://api.lib.

...

...

OTOH, subject.genre also has terminal periods on terms but the solr query works with or without:
https://api.lib.harvard.edu/v2/items?subject.genre=Folklore.

...

subject.genre

...

Yes

...

_exact=cylinder seals

Note: An exact query can match on contents of a single field only. In LibraryCloud MODS, a subject heading and its subdivision(s) are split into separate fields, e.g. the subject heading "Older people -- Services for" appears in the LibCloud MODS record as these fields:

<mods:topic>Older people</mods:topic>
<mods:topic>Services for</mods:topic>


subject.genre

Yes

No

Yes

subject.genre

https://api.lib.harvard.edu/v2/items?subject.genre=folklore

...

Case-sensitive exact match

...

...

subject.geographic

...

Yes

...

Yes

...

Yes?

The umbrella "subject" field is not populated, but most individual components are. Remove and JIRA this.

Yes

NoNo

subject.hierarchicalGeographic.continent
subject.hierarchicalGeographic.country
subject.hierarchicalGeographic.province
subject.hierarchicalGeographic.region
subject.hierarchicalGeographic.state
subject.hierarchicalGeographic.territory
subject.hierarchicalGeographic.county
subject.hierarchicalGeographic.city
subject.hierarchicalGeographic.island
subject.hierarchicalGeographic.area
subject.hierarchicalGeographic.extraterrestrialArea
subject.hierarchicalGeographic.citySection

...

...

subject.hierarchicalGeographic.area

Yes

No

Yes

subject.hierarchicalGeographic.area

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.area=galicia

subject.hierarchicalGeographic.city

...

...

city=Cochituate&q=maps

subject.hierarchicalGeographic.citySection

Yes

No

Yes

subject.hierarchicalGeographic.citySection

https://api.lib.harvard.edu/v2/items?

...

...

citySection=charlestown

subject.hierarchicalGeographic.continent

...

Yes

No

Yes

subject

...

.hierarchicalGeographic.continent

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.continent=africa

subject.hierarchicalGeographic.country

...

Yes

No

Yes

subject.hierarchicalGeographic.country

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.country=canada

subject.hierarchicalGeographic.

...

county

Yes

No

Yes

subject.hierarchicalGeographic.

...

...

...

middlesex

subject.hierarchicalGeographic.

...

extraterrestrialArea

Yes

No

Yes

subject.hierarchicalGeographic.

...

NOT WORKING / Seems a valid SOLR field, but no values returned

...

...

*

subject.hierarchicalGeographic.

...

island

Yes

No

Yes

subject.hierarchicalGeographic.

...

...

island=*

subject.hierarchicalGeographic.

...

province

Yes

No

Yes

subject

...

...

...

quebec

subject.hierarchicalGeographic.

...

region

Yes

No

Yes

subject.hierarchicalGeographic.

...

...

...

nile

subject.hierarchicalGeographic.

...

state

Yes

...

Yes

No

Yes

subject.hierarchicalGeographic.

...

...

...

massachusetts&q=maps

subject.hierarchicalGeographic.

...

territory

Yes

No

Yes

subject.hierarchicalGeographic.

...

NOT WORKING / Seems a valid SOLR field, but no values returned

...

...

...

...

...

subject.hierarchicalGeographic.extraterrestrialArea

...

Yes

...

Yes

...

No

...

Yes

...

...

...

name.role

Yes

No

Yes

subject.

...

name.role.roleTerm

Terms may be expressed as a word (photographer.) or abbreviation ("cmp" for composer).

https://api.lib.harvard.edu/v2/items?subject.

...

...

...

physicalLocation

(Includes Harvard repository names but also non-Harvard locations, especially for artworks.)

...

Yes

...

No

...

Yes

...

Yes

...

cmp

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?

...

repository

(Includes Harvard repositories only)

...

Yes

...

...

Search: location.physicalLocation (where @type="repository")

Facet: extension.librarycloud.HarvardRepositories.HarvardRepository

A search will query the long form repository name (e.g.Eda Kuhn Loeb Music Library); faceting will return the short form repository name (e.g. Loeb Music).

...

Yes

...

Yes

...

Yes

...

No

...

location.shelfLocator

...

samurai&subject.temporal_exact=Edo period, 1600-1868

subject.titleInfo

Yes

No

Yes

subject.titleInfo.title
subject.titleInfo.subTitle
subject.titleInfo.partNumber
subject.titleInfo.partName

https://api.lib.harvard.edu/v2/items?

...

...

...

url

...

No

Gospel%20of%20Mary

subject.topic

Yes

No

...

Yes

...

subject.

...

topic

...

...

...

url.access

(At this time, only url.access=preview works.)

...

...

There's a typo in item api code: defined range values are "preview" and "raw object in context" but should be "preview", "raw object", and "object in context".

...

No

...

location.url.access (range = <preview, raw object, object in context>)

facet as url.access.preview or url.access.raw_object

titleInfo.title
titleInfo.subTitle
titleInfo.partNumber
titleInfo.partName

https://api.lib.harvard.edu/v2/items?

...

...

isOnline

(Indicates whether or not an item is available in digital form; values are "true" or "false. See also LibraryCloud Item API.)

...

...

Yes

...

Yes

...

location.url

Can be URLs or URNs; includes links to digital content and catalog records.

https://api.lib.harvard.edu/v2/items?q=earhart amelia&

...

source

...

No

...

No

...

Yes

...

Yes

recordInfo.recordIdentifier source attribute

Sources are currently MH:ALMA (from Alma), MH:VIA (image items from JSTOR forum), or MH:OASIS (finding aid components from ArchivesSpace).

...

...

recordIdentifier

...

...

No

...

No

recordInfo.recordIdentifier at the top level only

priorrecordids.recordIdentifier

e.g. recordIdentifier=sch00443c00007  (for finding aids), recordIdentifier=S26791_olvsurrogate827653 (for images), recordIdentifier=012956251 (for Aleph)

...

location.url.access (range = <preview, raw object>)

facet as url.access.preview or url.access.raw_object

Query for records containing a url field with a specific @access attribute. Values are:

"preview"= indicates link to image thumbnail
"raw object"= indicates link to full online content
 

This query returns items containing a url with the attribute access="preview" (i.e., an image thumbnail link is present):
https://api.lib.harvard.edu/v2/items?

...

q=earhart amelia&url.access=preview 

This query returns items containing a url with the attribute access="raw object" (i.e., a link to full digital content is present):
https://api.lib.harvard.edu/v2/items

...

?q=earhart%20amelia&url.access=raw+object

urn


NoNoNo

location.url

Queries an item by its NRS URN (the URN only e.g., " urn-3:FHCL:1155043" minus the actionable URL components).

https://api.lib.harvard.edu/v2/items?

...

urn=urn-3:FHCL:1155043
DRS Extensions
drsFileId (valid if inDRS=true)


extension.HarvardDRS.drsFileId

The database identifier in the DRS for a file.

This query will return a LibraryCloud item by the corresponding DRS file ID:
https://api.lib.harvard.edu/v2/items?

...

drsFileId=481890727
drsObjectId (valid if inDRS=true)


extension.HarvardDRS.drsObjectId

The database identifier in the DRS for an object.

This query will return an item for the Harvard Book by corresponding DRS object ID:
https://api.lib.harvard.edu/v2/items?

...

...

urn

(?Queries an item by its NRS URN (the URN only e.g., " urn-3:FHCL:1155043" minus the actionable URL components)

...

2573632

This query will return all items in Library Cloud that have a corresponding digital object in the DRS:
https://api.lib.harvard.edu/v2/items?

...

collectionTitle
(see /wiki/spaces/LibraryStaffDoc/pages/43288674)

(Query by the set/collection title assigned to items that have been grouped together for delivery via Harvard Digital Collections)

...

drsObjectId=*

Anchor
accessFlag
accessFlag
accessFlag (valid if inDRS=true)


YesNoYes

extension.

...

HarvardDRS.accessFlag (range = <P, R, N>)

P (publicly accessible), R (restricted to Harvard), N (not available for delivery)

See also: availableTo to query human-readable version of DRS accessFlags.

https://api.lib.harvard.edu/v2/items?

...

Case-sensitive exact match:https://api.lib.harvard.edu/v2/items?collectionTitle_exact=Chinese Rare Books

...

collectionId
(see /wiki/spaces/LibraryStaffDoc/pages/43288674)

(Query by the set/collection ID assigned to items that have been grouped together fo rdelivery via Harvard Digital Collections)

...

genre=daguerreotype&accessFlag=P

Anchor
contentModel
contentModel
contentModel (valid if inDRS=true)


YesNoYes

extension

...

.HarvardDRS.contentModel (range = <AUDIO, DOCUMENT, PDS DOCUMENT, PDS DOCUMENT LIST, STILL IMAGE, TEXT, VIDEO>)

Use _exact query to find "DOCUMENT".

See also: digitalFormat to query by human-readable value derived from the contentModel for an object in Harvard's Digital Repository Service (DRS).

https://api.lib.harvard.edu/v2/items?

...

...

...

...

(Query for items in Harvard Library's digital repository service. See also LibraryCloud Item API.)

...

contentModelCode
(valid if inDRS=true)



extension.HarvardDRS.contentModelCode

An identifier that uniquely identifies a specific DRS content model. For example, CMID-5.0 identifies the Still Image content model. See the DRS Content Guide for content model names and identifiers.

This query will return all items in Library Cloud that have a corresponding digital object in DRS with content model CMID-5.0 (Still Image):
https://api.lib.harvard.edu/v2/items?contentModelCode=CMID-5.0

fileDeliveryURL (valid if inDRS=true)


YesNoNo

extension.HarvardDRS.fileDeliveryURL, eg. "http://nrs.harvard.edu/urn-3:FHCL.HOUGH:1090399"

Query an item by its full delivery URL.

https://api.lib.harvard.edu/v2/items?

...

...

...

...

inDRS

...

inDRS

...

inDRS

...

See also: LibraryCloud Item API to query human-readable version of DRS accessFlags.

...


YesNoYes

...

extension.HarvardDRS

...

.inDRS  (range = <"true", "false">)

Query for items in Harvard Library's digital repository service. See also isOnline.

https://api.lib.harvard.edu/v2/items?genre=daguerreotype&

...

...

...

insertionDate

...






lastModifiedDate

...

 

See also: LibraryCloud Item API to query by human-readable value derived from the contentModel for an object in Harvard's Digital Repository Service (DRS).

...

extension.HarvardDRS.contentModel (range = <AUDIO, DOCUMENT, PDS DOCUMENT, PDS DOCUMENT LIST, STILL IMAGE, TEXT, VIDEO>) Use _exact query to find "DOCUMENT"

...






maxImageDeliveryDimension (future)FutureNoFutureextension.HarvardDRS.maxImageDeliveryDimension - e.g., "600". Value is in pixels.

metsLabel (valid if inDRS=true)


YesNoNo

extension.HarvardDRS.metsLabel  eg. Any text string

Query for items by keywords in the descriptive METS label - if defined in DRS metadata.

https://api.lib.harvard.edu/v2/items?metsLabel=seward

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?

...

metsLabel_exact=The Italians in Chicago. Washington: G.P.O., 1897.

modified.after (valid if inDRS=true)


YesNoNo

extension.HarvardDRS.lastModifiedDate - eg. "2016-05-03

Query items by the "last modified" date of a linked digital object in DRS (in YYYY-MM-DD format).

This query returns items in DRS last modified after 2016-01-05:
https://api.lib.harvard.edu/v2/items?

...

uriType (valid if inDRS=true)

(Query for items by type of delivery urn, which is a proxy for type of delivery service)

...

extension.HarvardDRS.uriType  (range = <FDS, IDS, PDS, PDS_LIST, SDS, SDS_VIDEO>)

...

q=*&modified.after=2016-01-05

This query returns items in DRS last modified before a specific date:
https://api.lib.harvard.edu/v2/items?q=*&modified.before=2016-01-05

This query returns items in DRS last modified on 2016-01-05:

https://api.lib.harvard.edu/v2/items?

...

(Query an item by its full delivery URL)


No

...

...

...

*&modified.before=2015-01-01

ownerCode (valid if inDRS=true)

...

Yes

...

NoYesextension.HarvardDRS.ownerCode, eg. "FHCL.HOUGH"
https://api.lib.harvard.edu/v2/items?q=cookbook*&ownerCode=RAD.SCHL
ownerCodeDisplayName (valid if inDRS=true)

...

YesNoYes

...

extension.HarvardDRS.ownerCodeDisplayName, eg. "Houghton Library"
 
https://api.lib.harvard.edu/v2/items?q=daguerreotype&ownerCodeDisplayName=Schlesinger

...

https://api.lib.harvard.edu/v2/items?metsLabel=seward

...

ownerSuppliedName (valid if inDRS=true)

(Query for items by keywords in the descriptive METS label - if defined in DRS metadata)




extension.HarvardDRS.ownerSuppliedName

The distinctive name for the digital item provided by the owning Harvard repository responsible for the content. This is the DRS object owner supplied name (OSN).

This query returns the LibraryCloud item for the Harvard Book by its object owner supplied name: https://api.lib.harvard.edu/v2/items?ownerSuppliedName=124783.xml
suppliedFilename (valid if inDRS=true)


extension.HarvardDRS.suppliedFilename

uriType (valid if inDRS=true)


YesNoYes

extension.HarvardDRS.uriType  (range = <FDS, IDS, PDS, PDS_LIST, SDS, SDS_VIDEO>)

Query for items by type of delivery urn, which is a proxy for type of delivery service.

Delivery service types: FDS (text documents), IDS (images), PDS (page-turned objects), PDS_LIST (list of page-turned objects), SDS (streaming audio), (SDS_VIDEO (streaming video)

https://api.lib.harvard.edu/v2/items?

...

subject=jazz&uriType=SDS 
viewText (valid if inDRS=true)

...

NOT WORKING

...

...




extension.HarvardDRS.

...

viewText (range = <on, off>)

Query items by status of the View Text setting of the object in DRS. View Text is an object-level field that controls the View Text menu option in the PDS user interface.

This query returns items owned by Houghton that have the View Text control set "off":
https://api.lib.harvard.edu/v2/items?

...

...

...

See also: availableTo to query by DRS accessFlag.

 

...

viewText=off
LibraryCloud Extensions

Anchor
availableTo
availableTo
availableTo



YesNoYes

extension.librarycloud.availableTo

Human-readable values for access to digital content in Harvard's Digital Repository Service (DRS).

Values are "Everyone" (corresponds to accessFlag=P) and "Harvard only" (corresponds to accessFlag=R).

See also: availableTo to query by DRS accessFlag.

https://api.lib.harvard.edu/v2/items?q=colonialism&availableTo=Everyone

Anchor
digitalFormat
digitalFormat
digitalFormat

See also: LibraryCloud Item API to query by the DRS content model of an object in Harvard's Digital Repository Service (DRS).



NoYes

extension.librarycloud.digitalFormats.digitalFormat

Human readable values derived from the contentModel for an object in Harvard's Digital Repository Service (DRS).

Values are audio, books and documents, images, and video.

See also: contentModel to query by the DRS content model of an object in Harvard's Digital Repository Service (DRS).

https://api.lib.harvard.edu/v2/items?subject=poetry&digitalFormat=audio

processed.after

...

YesNo

...

No

extension.librarycloud.processingDate

Use YYYY-MM-DD format to search

...

.

This processing date indicates the most recent re-ingest of a metadata record (an "item") into LibraryCloud from its source catalog.

This query returns items processed after the date specified:
https://api.lib.harvard.edu/v2/items?processed.after=2019-01-01

This query returns items processed before the date specified:
https://api.lib.harvard.edu/v2/items?processed.before=2019-01-02

This query returns items processed between the specified dates:
https://api.lib.harvard.edu/v2/items?processed.after=2018-07-01&processed.before=2019-01-01

processed.before

Sets Extensions

...

...

setName

...


NoYes

extension.sets.set.setName

Human-readable names that identify a set of materials selected by, for example, a curator for administrative or discovery purposes or for harvesting via OAI-PMH.

https://api.lib.harvard.edu/v2/items?setName=chinese rare books
setSpec

...

...


NoYes

extension.sets.set.setSpec

Codes used to identify a set of materials selected by, for example, a curator for administrative or discovery purposes or for harvesting via OAI-PMH.

https://api.lib.harvard.edu/v2/items?setSpec=crb

More Query Examples

...

#Search all of LibraryCloud for “peanuts” in the title:

...

https://api.lib.harvard.edu/v2/items?title=peanuts

...

#Search finding aid components for “peanuts” in the title:

...

https://api.lib.harvard.edu/v2/items?title=peanuts&source=MH:OASIS   (can use MH:OASIS, MH:VIA, or MH:

...

ALMA)

...

#Search for a specific component identifier in

...

a finding aid:
https://api.lib.harvard.edu/v2/items

...

?source=MH:OASIS&recordIdentifier=sch00443c00072

...

#Search for a specific image component identifier in

...

JSTOR Forum (the identifier actually has the form "<viaRecordId>_<URN>", but the wildcard matches the URN portion if not known

...

:

...

https://api.lib.harvard.edu/v2/items?recordIdentifier=W188002*

...

#Search for all components in an OASIS record:

...

https://api.lib.harvard.edu/v2/items?recordIdentifier=sch00443*

...

#Look up the MODS for a PDS object given its URN:

...

https://api.lib.harvard.edu/v2/items?urn=urn-3:FHCL.HOUGH:25620083

...

#Search all of library cloud for VIA records that are public and have “peanuts” in the

...

title:
https://api.lib.harvard.edu/v2/items?title=peanuts&source=MH:VIA&accessFlag=P

#Get the facet counts for collections with various collection titles:
https://api.lib.harvard.edu/v2/items?facets=collectionTitle

#Get all manuscripts from Schlesinger Library that contain either the string "electronic finding aid available" OR "electronic container list available":
https://api.lib.harvard.edu/v2/items?physicalLocation=sch&isManuscript=true&q=(

...

Support

LibraryCloud Support

 electronic finding aid available) OR (electronic container list available)