Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 2.07 KB

File metadata and controls

82 lines (67 loc) · 2.07 KB

Culture

Contains information on the cultures used to describe items in the Harvard Art Museums.

Get Cultures

GET /culture will get all cultures.

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

Parameter Value
apikey YOUR API KEY required
q FIELD:VALUE (see Elasticsearch Query String syntax for more options)
size 0-9+
page 0-9+
sort FIELD NAME or "random" or "random:[SEED NUMBER]"
sortorder asc or desc
fields comma separated list of data fields you want in the output
aggregation see Elasticsearch aggregations
id pipe separated list of record IDs
usedby FIELD NAME:ID

Examples

https://api.harvardartmuseums.org/culture
Returns all of the cultures.

Response

{
    "info": {
        "totalrecordsperquery": 3,
        "totalrecords": 255,
        "pages": 85,
        "page": 1,
        "next": "https://api.harvardartmuseums.org/culture?size=3&page=2",
        "responsetime": "6 ms"
    },
    "records": [
        {
            "id": 37527705,
            "objectcount": 24,
            "lastupdate": "2015-11-22T03:17:48-0500",
            "name": "Indonesian"
        },
        {
            "id": 37528335,
            "objectcount": 4,
            "lastupdate": "2015-11-22T03:17:48-0500",
            "name": "Philisto-Arabian"
        },
        {
            "id": 37528974,
            "objectcount": 1,
            "lastupdate": "2015-11-22T03:17:48-0500",
            "name": "Yemeni"
        }
    ]
}

Get Culture

GET /culture/CULTURE_ID will get the full record of the specified culture.

Examples

https://api.harvardartmuseums.org/culture/37527705
Returns the full record for the culture Indonesian.

Response

{
    "id": 37527705,
    "name": "Indonesian",
    "objectcount": 24,
    "lastupdate": "2015-11-22T03:17:48-0500"
}