Worktype

April 23, 2026 ยท View on GitHub

Contains information on the types of works in the Harvard Art Museums collections. Worktype labels are more specific classifications of the object, and they are created and assigned by Harvard Art Museums curators.

Get Worktypes

GET /worktype will get all work types.

Include one or more of the following parameters to filter the items.

ParameterValue
apikeyYOUR API KEY required
qFIELD:VALUE (see Elasticsearch Query String syntax for more options)
size0-9+
page0-9+
sortFIELD NAME or "random" or "random:[SEED NUMBER]"
sortorderasc or desc
fieldscomma separated list of data fields you want in the output
aggregationsee Elasticsearch aggregations
idpipe separated list of record IDs
usedbyFIELD NAME:ID

Examples

https://api.harvardartmuseums.org/worktype
Returns all of the work types.

Response

{
    "info": {
        "totalrecordsperquery": 3,
        "totalrecords": 394,
        "pages": 132,
        "page": 1,
        "next": "https://api.harvardartmuseums.org/worktype?size=3&page=2",
        "responsetime": "5 ms"
    },
    "records": [
        {
            "objectcount": 0,
            "id": "4",
            "lastupdate": "2015-11-22T03:17:53-0500",
            "name": "adze",
            "worktypeid": "4"
        },
        {
            "objectcount": 0,
            "id": "11",
            "lastupdate": "2015-11-22T03:17:53-0500",
            "name": "ammunition",
            "worktypeid": "11"
        },
        {
            "objectcount": 0,
            "id": "16",
            "lastupdate": "2015-11-22T03:17:53-0500",
            "name": "architectural fragment",
            "worktypeid": "16"
        }
    ]
}

Get Worktype

GET /worktype/WORKTYPE_ID will get the full record of the specified work type.

Examples

https://api.harvardartmuseums.org/worktype/25
Returns the full record for the work type astrolabe.

Response

{
    "worktypeid": "25",
    "name": "astrolabe",
    "objectcount": 0,
    "id": "25",
    "lastupdate": "2015-11-22T03:17:53-0500"
}