Versions Compared

Key

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

           

...

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.


https:title=complete motown singlestitleLabour PartyWill find term in any name field:
nameshakespearename=shakespeare&role=publisherNotypeOfResourcename=shakespeare&resourceType=three dimensional objectq=colonial+north+america&isCollection=true q=colonial+north+america&isManuscript=truehttps://api.lib.harvard.edu/v2/items?q=fish+watercolor&genre=Drawingsgenrependants (jewelry)colonial+north+america&originPlace=BostonoriginPlaceNew-EnglandqshakespearepublisherArdenqshakespearepublisherArden ShakespeareYesYesoriginInfo.dateCaptured
originInfo.copyrightDate
originInfo.dateOtherasimov+isaac&originDate=1961Case-sensitive exact matchasimov+isaac&originDate_exact=[1961]dateIssuedasimov isaacdateIssued=1961asimov isaacdateIssued1961daguerreotypesdateCreated1806dateCreatedlate 18th-early 19th century

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

Case-sensitive exact matchdateCaptured_exact=201502--This query returns all works by Molière published from 1990 forward:nameMolière&dates.start=1990This query returns all works by Molière published from 1990 backwardnameMolière&dates.end=1990This query returns all works by Molière published from 1990 to 2000:Molièredates.start=1990&dates.end=2000originInfo.editionwordsworth&edition_exact=[1st ed.]This query returns items with subject "astronomy" issued as a serial:subjectastronomyissuanceserialThis query returns items of Shakespeare in Chineseshakespeare&languageCode=chiThis query returns items by or about Laozi in Chinesetitle=laozi&language=ChineseThis query returns items with the keyword "justinian" in an abstract or table of contents field:
https://api.abstractTOC=Justinianclassification=F1435.3classificationPR2825.A2 I8This query returns an item by it's ISBN:identifier=9789601426440seriesTitleHarvard-Yenching Institute Monograph Series??subject=perseusCase-sensitive exact match: subject_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.topic=mochica potterysubject.topicMochica potteryCase-sensitive exact match:

https://api.lib.harvard.edu/v2/items?q=samurai&subject.temporal=edo

samurai&subject.temporal_exact=Edo period, 1600-1868Yes namekubrick stanley name=Kubrick, Stanleyname.rolecmpname.rolephotographer.Case-sensitive exact match:

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

genre_exactFolkloregeographicgizaCase-sensitive exact match:
https://api.lib.harvard.edugeographic_exact=Giza, EgyptBostoncontinentafricacountrycanadahierarchicalGeographic.county=middlesexhierarchicalGeographic.city=Cochituate&q=mapshierarchicalGeographicisland*hierarchicalGeographicarea=galiciahierarchicalGeographic.extraterrestrialArea*hierarchicalGeographic.citySection=charlestownphysicalLocation=tozzer&subject=cylinder seals

repository

 location.shelfLocator shelfLocator
q=peanuts&shelfLocator=Film Masq=peanuts&shelfLocatorFilm%20Mas%2025860"true" if

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 elementsqearhart ameliasourceMH:ALMArecordIdentifier=990148733450203941 (for Alma)recordIdentifier=014873345 (for Aleph)

https://api.lib.harvard.edu/v2/items?recordIdentifier=sch00227c00197 (for finding aids)

https://api.libv2/items?recordIdentifier=W42143_:1176307 (for images)Use a keyword query to retrieve items based on record ID in finding aid components and image records:q=olvsurrogate717044YesYessets.setName
extension.sets.setSpec

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

https://collectionTitleChinese Rare BookscollectionTitleChinese Rare Books
collectionIdsets.systemId by the set/collection ID assigned to items that have been grouped together fo rdelivery via Harvard Digital Collections.collectionId=84560Case-sensitive exact matchcollectionId_exact=84560  inDRS

 

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

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

genredaguerreotypeinDRStrueaccessFlag

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

accessFlag (range = <P, R, N, B>)

P (publicly accessible), R (restricted to Harvard), N (not available for delivery), B (bypass, access handled differently)

https:/genreaccessFlagPcontentModel Yes

This query returns items in DRS last modified after 2016-01-05:
https://api.lib.harvard.edu/v2/items?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:q*modified.after=2016-01-04&modified.before=2016-01-06
NameKeyword SearchExact Match SearchCan SortCan FacetMODS Field MappingNotes

titleabstractTOC

YesYes

No

No

No

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

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

No

Yes

Yes

Yes

classification

Physical organization code. Includes bibliographic-level classification but not holdings. See LibraryCloud Item API 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=

namePR2825.A2 I8

collectionId

NoYes

Not available 

NoYes

nameextension.namePart

e.g. "Greenblatt, Stephen"

sets.systemId

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

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

collectionId=

role

Yes

Yes

No

Yes

name.namePart.role.roleTerm

84560

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

resourceType

(4/11/19: not working correctly)collectionId_exact=84560

collectionTitle

 

YesYesYesYes

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.

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

isCollection

 

No

Yes

No

Yes

typeOfResource (where collection="yes")

Values are “true” or “false”.

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

collectionTitle=Chinese Rare Books

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

copyrightDate

Yes

Yes

Yes

Yes

originInfo.copyrightDate

Use YYYY format to search.

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

isManuscript

 

No

Yes

No

Yes

typeOfResource (where manuscript="yes")

Values are “true” or “false”.

Indicates whether or not a record describes manuscript or archival material. copyrightDate=2010

dateCaptured

Yes

Yes

Yes

Yes

originInfo.dateCaptured

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

genre

Yes

Yes

No

Yes

genre

dateCaptured=2016&genre=performed+music

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

dateCaptured_exact=

originPlace201502--

dateCreated

Yes

Yes

NoYes

Yes

originInfo.place.placeTermdateCreated

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

daguerreotypes&dateCreated=1806

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

dateCreated_exact=

publisherlate 18th-early 19th century

dateIssued

Yes

Yes

NoYes

Yes

originInfo.publisherdateIssued

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

name=

asimov isaac&

dateIssued=

1961

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

name=

asimov isaac&

dateIssued_exact=

originDate[1961]

dateRange (future)      
dates.startYesNoNoNo

originInfo.dateIssued
originInfo.dateCreated

This query returns all works by Molière published from 1990 forward:
https://api.lib.harvard.edu/v2/items?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?name=

Molière&dates.end=1990

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

dates.end

edition

Yes

Yes

Yes

Yes

originInfo.dateIssuededition

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

Molière&

edition=7th. ed.

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

wordsworth&

edition_exact=[

1st ed.]

dateCreatedgenre

Yes

YesYes

No

Yes

originInfo.dateCreatedgenre

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

fish+watercolor&

genre=

Drawings

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

genre_exact=

dateCaptured

Yes

pendants (jewelry)

identifier

 

No

Yes

YesYes

No

originInfo.dateCaptured

identifier

(Identifier of an item in another system)

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

copyrightDate

Yes

identifier=9789601426440

isCollection

 

No

YesYes

No

Yes

originInfo.copyrightDate

Use YYYY format to searchtypeOfResource (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?copyrightDate=2010dates.startq=colonial+north+america&isCollection=true 

isManuscript

 

No

Yes

No

NoNo

originInfo.dateIssued
originInfo.dateCreated

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?q=colonial+north+america&isManuscript=true

isOnline

 

No

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 LibraryCloud Item API.

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

issuance

Yes

Yes

Yes

Yes

originInfo.issuance

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

languageCode
(Searches based on language ISO code)

No

Yes

No

Yes

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

This query returns items of Shakespeare in Chinese:
https://api.lib.harvard.edu/v2/items?name=
shakespeare&
dates.end
dateRange (future)      

edition

Yes

Yes

Yes

Yes

languageCode=chi

languageText
(Searches based on language name text)

Yes

Yes

No

Yes

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

Facet as "language" rather than "languageText".

This query returns items by or about Laozi in Chinese:
https://api.lib.harvard.edu/v2/items?nametitle=Molièrelaozi&edition=7th. ed.Case-sensitive exact matchlanguage=Chinese

name

Yes

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=

issuanceshakespeare

originDate

Yes

Yes

No

YesYes

originInfo.dateIssued
originInfo.dateCreated
originInfo.dateCaptured
originInfo.issuance

copyrightDate
originInfo.dateOther

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

name=

asimov+isaac&

originDate=

languageCode
(Searches based on language ISO code)

No

Yes

No

Yes

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

1961

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

languageText
(Searches based on language name text)

asimov+isaac&originDate_exact=[1961]

originPlace

Yes

Yes

No

Yes

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

Facet as "language" rather than "languageText".

originInfo.place.placeTerm

https://api.lib.harvard.edu/v2/items?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

physicalLocation

abstractTOC 

Yes

NoNo

Yes

NoYes

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

 

physicalLocation=tozzer&subject=cylinder seals

publisher

Yes

Yes

No

Yes

originInfo.publisher

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

q=shakespeare&publisher=Arden

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

q=shakespeare&publisher_exact=

identifier

(Identifier of an item in another system)Arden Shakespeare

recordIdentifier

No

Yes

No

Yes

Yes

No

identifier

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)

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

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

seriesTitleYesYesNoYes

In relatedItem[@type='series']:

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

facet as "relatedItem" rather than "seriesTitle"

recordIdentifier=990148733450203941 (for Alma)

https://api.lib.harvard.edu/v2/items?recordIdentifier=014873345 (for Aleph)

https://api.lib.harvard.edu/v2/items?recordIdentifier=sch00227c00197 (for finding aids)

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

recordIdentifier=

subjectW42143_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

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.citySectionSearch: 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?q=peanuts&repository=Oakes Ames

resourceType

(4/11/19: not working correctly)

Yes

Yes

No

Yes

typeOfResource

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

name=shakespeare&resourceType=three dimensional object

role

Yes

Yes

No

Yes

name.namePart.role.roleTerm

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

subject.topicname=shakespeare&role=publisher

seriesTitleYesYesNoYes

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?seriesTitle=Harvard-Yenching Institute Monograph Series

Anchor
shelfLocator
shelfLocator
shelfLocator

Yes

Yes

Yes

No

Yes

subjectlocation.topicshelfLocator

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

q=peanuts&shelfLocator=Film Mas

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

q=peanuts&shelfLocator_exact=

subject.temporal

Yes

Yes

No

Film%20Mas%2025860

source

No

No

Yes

Yes

subjectrecordInfo.temporal

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?q=subject.titleInfoearhart amelia&source=MH:ALMA

subject

Yes

Yes

No

Yes

subject.titleInfotopic
subject.titlegeographic
subject.titleInfo.subTitletemporal
subject.titleInfo
subject.partNumbername
subject.titleInfo.partNamegenre
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.titleInfo=Middlemarchperseus

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?subject.titleInfo_exact=Gospel%20of%20Mary

subject.name

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

Yes

No

Yes

subject.name
subject.name.namePart

genre

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

genre=

folklore

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

genre_exact=Folklore

subject.name.rolegeographic

Yes

Yes

No

Yes

subject.name.role.roleTerm

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

geographic

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

geographic=

giza

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

geographic_exact=

Giza, Egypt

subject.genrehierarchicalGeographic

Yes

Yes

NoYesNo

subject.genre

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.

hierarchicalGeographic=

Boston

subject.geographichierarchicalGeographic.area

Yes

Yes

No

Yes

subject.hierarchicalGeographic.geographicarea

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

subject.hierarchicalGeographic.city

Yes

Yes

No

Yes

subject.hierarchicalGeographic.city

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.city=Cochituate&q=maps

subject.hierarchicalGeographic.citySection

Yes?

Yes

No

No

Yes

subject.hierarchicalGeographic.continent
subject.hierarchicalGeographic.country
citySection

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.provincecitySection=charlestown

subject.hierarchicalGeographic.region
subject.hierarchicalGeographic.state
subject.hierarchicalGeographic.territorycontinent

Yes

Yes

No

Yes

subject.hierarchicalGeographic.county
subject.hierarchicalGeographic.citycontinent

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

subject.hierarchicalGeographic.country

Yes

Yes

No

Yes

subject.hierarchicalGeographic.island
country

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

subject.hierarchicalGeographic.extraterrestrialAreacounty

Yes

Yes

No

Yes

subject.hierarchicalGeographic.citySectioncounty

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.county=middlesex

subject.hierarchicalGeographic.continentextraterrestrialArea

Yes

Yes

No

Yes

subject.hierarchicalGeographic.continentextraterrestrialArea

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.extraterrestrialArea=*

subject.hierarchicalGeographic.countryisland

Yes

Yes

No

Yes

subject.hierarchicalGeographic.countryisland

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

island=

*

subject.hierarchicalGeographic.province

Yes

Yes

No

Yes

subject.hierarchicalGeographic.province

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.province=quebec

subject.hierarchicalGeographic.region

Yes

Yes

No

Yes

subject.hierarchicalGeographic.region

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.region=nile

subject.hierarchicalGeographic.state

Yes

Yes

No

Yes

subject.hierarchicalGeographic.state

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.state=massachusetts&q=maps

subject.hierarchicalGeographic.territory

Yes

Yes

No

Yes

subject.hierarchicalGeographic.territory

https://api.lib.harvard.edu/v2/items?subject.hierarchicalGeographic.territory=*

subject.hierarchicalGeographic.countyname

Yes

Yes

No

Yes

subject.hierarchicalGeographic.countyname
subject.name.namePart

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

subject.hierarchicalGeographic.city

Yes

Yes

No

Yes

subject.hierarchicalGeographic.city

name=kubrick stanley

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

name=Kubrick, Stanley

subject.hierarchicalGeographicname.islandrole

Yes

Yes

No

Yes

subject.hierarchicalGeographic.island.name.role.roleTerm

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

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

name.

role=

subject.hierarchicalGeographic.area

Yes

Yes

No

Yes

subject.hierarchicalGeographic.areacmp

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

name.

role_exact=photographer.

subject.hierarchicalGeographic.extraterrestrialAreatemporal

Yes

Yes

No

Yes

subject.hierarchicalGeographic.extraterrestrialAreatemporal

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

temporal=

subject.hierarchicalGeographic.citySection

Yes

Yes

No

Yes

subject.hierarchicalGeographic.citySectionedo

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?q=samurai&subject.

physicalLocation

 temporal_exact=Edo period, 1600-1868

subject.titleInfo

Yes

Yes

No

Yes

Yes

location.physicalLocation

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

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

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

subject.titleInfo=Middlemarch

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?subject.titleInfo_exact=Gospel%20of%20Mary

subject.topic

Yes

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).

subject.topic

Yes

Yes

Yes

No

https://api.lib.harvard.edu/v2/items?subject.topic=mochica pottery

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

q=peanuts&repository=Oakes Ames
Anchor
shelfLocatorshelfLocator

subject.topic_exact=Mochica pottery

title

Yes

Yes

No

No

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

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

title=complete motown singles

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

title_exact=

Labour Party

url

No

Yes

No

No

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&url=*RAD.SCHL*

Case-sensitive exact match:
https://api.lib.harvard.edu/v2/items?q=earhart amelia&url_exact=https://nrs.harvard.edu/urn-3:RAD.SCHL:29639951

url.access

 

No

Yes

No

Yes

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 

**At this time, only url.access=preview works.

isOnlineurn

 

YesNoNo

Yes

Yes

No

location.url[@access = 'raw object'] exists, "false" otherwiseIndicates whether or not an item is available in digital form; values are "true" or "false". See also LibraryCloud Item API.

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?q=earhart amelia&isOnline=true

source

No

No

Yes

Yes

urn=urn-3:FHCL:1155043
DRS Extensions      

Anchor
accessFlag
accessFlag
accessFlag (valid if inDRS=true)

 

NoYes Yes

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

P (publicly accessible), R (restricted to Harvard), N (not available for delivery), B (bypass, access handled differently)

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

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

recordIdentifier

Anchor

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)

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

contentModel

Yes

No

No

contentModel
contentModel (valid if inDRS=true)

 

YesYes Yes

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

Use _exact query to find "DOCUMENT".

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).

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

title=biodiversity&limit=100&contentModel=PDS DOCUMENT

Use the case-sensitive exact match query to find "DOCUMENT":
https://api.lib.harvard.edu/v2/items?

contentModel_exact=DOCUMENT

fileDeliveryURL (valid if inDRS=true)

 

NoYes No

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?

urn

 

YesNoNoNo

location.url

Queries an item by its NRS URN (the URN only e.g., " urn-3:FHCL:1155043" minus the actionable URL components).title=annual+report&fileDeliveryURL=https://nrs.harvard.edu/urn-3:HMS.COUNT:22923642

Anchor
inDRS
inDRS
inDRS

 

NoYes Yes

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

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

https://api.lib.harvard.edu/v2/items?urn=urn-3:FHCL:1155043collectionTitlegenre=daguerreotype&inDRS=true
maxImageDeliveryDimension (future)NoFutureNoFutureextension.HarvardDRS.maxImageDeliveryDimension - e.g., "600". Value is in pixels. 

metsLabel (valid if inDRS=true)

 

YesYes No

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)

 

NoYes NoYes

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?

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?

DRS Extensions

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?q=*&modified.after=2016-01-04&modified.before=2016-01-06

modified.before (valid if inDRS=true)No  No  
Anchor
inDRSinDRSownerCode (valid if inDRS=true)NoYes Yesextension.HarvardDRS.ownerCode, eg. "FHCL.HOUGH"
https://api.lib.harvard.edu/v2/items?q=cookbook*&ownerCode=
Anchor
accessFlagaccessFlagRAD.SCHL
ownerCodeDisplayName (valid if inDRS=true)NoYes Yesextension.HarvardDRS.ownerCodeDisplayName, eg. "Houghton Library"
 
https://api.lib.harvard.edu/v2/items?q=daguerreotype&ownerCodeDisplayName=
Anchor
contentModelcontentModelSchlesinger

uriType (valid if inDRS=true)

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).

 

NoYes Yes

extension.HarvardDRS.contentModel uriType  (range = <AUDIO<FDS, DOCUMENTIDS, PDS DOCUMENT, PDS DOCUMENT _LIST, STILL IMAGE, TEXT, VIDEO>)

Use _exact query to find "DOCUMENT"

https://api.lib.harvard.edu/v2/items?title=biodiversity&limit=100&contentModel=PDS DOCUMENT

Use the case-sensitive exact match query to find "DOCUMENT":
https://api.lib.harvard.edu/v2/items?contentModel_exact=DOCUMENT

uriType (valid if inDRS=true)

 

NoYes Yes

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 

fileDeliveryURL (valid if inDRS=true)

 

NoYes No

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?title=annual+report&fileDeliveryURL=https://nrs.harvard.edu/urn-3:HMS.COUNT:22923642
ownerCode (valid if inDRS=true)NoYes Yesextension.HarvardDRS.ownerCode, eg. "FHCL.HOUGH"
https://api.lib.harvard.edu/v2/items?q=cookbook*&ownerCode=RAD.SCHL
ownerCodeDisplayName (valid if inDRS=true)NoYes Yesextension.HarvardDRS.ownerCodeDisplayName, eg. "Houghton Library"
 
https://api.lib.harvard.edu/v2/items?q=daguerreotype&ownerCodeDisplayName=Schlesinger

metsLabel (valid if inDRS=true)

 

YesYes No

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)

 

NoYes No

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).

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&
modified.before (valid if inDRS=true)No  No
maxImageDeliveryDimension (future)NoFutureNoFutureextension.HarvardDRS.maxImageDeliveryDimension - e.g., "600". Value is in pixels.uriType=SDS 
LibraryCloud Extensions      

Anchor
availableTo
availableTo
availableTo

See also: availableTo to query by DRS accessFlag.

 

NoYesNoYes

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).

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).

Yes  Yes

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.

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

processed.after

NoYes  

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      
setNameYes 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
setSpecYes 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

Examples

#search all of LibraryCloud for “peanuts” in the title
http://api.lib.harvard.edu/v2/items?title=peanuts
 
#search oasis components for “peanuts” in the title
http://api.lib.harvard.edu/v2/items?title=peanuts&source=MH:OASIS   (can use MH:OASIS, MH:VIA, or MH:ALEPH)
 
#search for a specific component identifier in OASIS
http://api.lib.harvard.edu/v2/items?recordIdentifier=sch00443c00007&source=MH:OASIS

#search for a specific component identifier in VIA (the identifier actually has the form "<viaRecordId>_<URN>", but the wildcard matches the URN portion if not known.
http://api.lib.harvard.edu/v2/items?recordIdentifier=W188002*
 
#search for all components in an OASIS record
http://api.lib.harvard.edu/v2/items?recordIdentifier=sch00443*

#look up the MODS for a PDS object given its URN

http://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  (NOTE: "restricted" DRS Access Flag field not yet released to production API)
http://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=(https://api.lib.harvard.edu/v2/items?physicalLocation=sch&isManuscript=true&q=(electronic%20finding%20aid%20available)%20OR%20(electronic%20container%20list%20available))

Support

LibraryCloud Support



...