You can search for an objectObject (Museology) Artefact or specimen held in a museum collection. (Computer science) A software "bundle" consisting of a set of variables which define the states the object can exist in and a set of functions that define its behavior. by passing an Argument in the queryQuery (Computer Science) A query is a request for data or information from a database table or combination of tables, or an API that manages access to those tables. The query below uses one of an object’s identifiers – in this case its accession numberAccession Number (Museology) When an object is accessioned it receives a unique identifier called an Accession Number. These numbers may codify the year the object was accessioned, the department, or if the object is part of a series of objects that form a whole.

{
  object (identifierIdentifier (API) A group of fields containing different unique identifiers for an object, agent, exhibition, or other unique datatype: "2018-22-51") {
    identifier
    titleTitle (Museology) The name given to the design or work of art.
    descriptionDescription (API) Long-form, curatorial,  interpretive text created for context and additional descriptive elements.
  }
}

The fieldsFields (Computer Science) The smallest container of information in a database. A field is named, e.g. "Title" or "Date" and each record contains a group of fields. that can be searched for are:

general: stringString (Computer Science) A string is a sequence of characters forming words or sentences

agentId: string
agent: string
collectionsOnlineIdcollectionsOnlineId (API) A legacy ID specific to Cooper Hewitt's collection site established in 2012: string
country: string
culture: string
departmentDepartment (API) The section of the museum that an object is associated with. : string
departmentId: string
displayed: boolean
dynasty: string
exhibitionExhibition (API) A listing of exhibitions where an object was part of the display.: string
exhibitionId: string
geography: string
hasImages: boolean
identifier: string
id: string
loaned: boolean
makerMaker (API) Creator of an object: string
makerId: string
material: string
name: string
onDisplay: boolean
period: string
provenanceProvenance (Museology) A record of ownership of a work of art or an antique, used as a guide to authenticity or quality.: string
reign: string
summary: string
subject: string
subjectId: string
title: string
year: YYYY
yearRange: {from:YYYY, to:YYYYY}

You can also use general to search across all searchable fields at the same time.

{
  object (general: "swivel chair") {
    identifier
    title
    description
  }
}

Searching between years

When searching, yearRange accepts spans of years in order to filterFilters (Computer Science) Methods to reduce the number of records in a data set to help refine the result to something more useful for the user the results. This uses the following format:

{
  object(yearRange:{from:1960, to:1970}){
    identifier
    title
    description
  }
}

You can use just one of the terms from or to for search that just starts or ends with a particular year.