Contains a list of the colors used in the color spectrum that is part of the branding of the Harvard Art Museums. Read more about the spectrum at https://harvardartmuseums.org/article/the-index-color-spectrum.
GET /spectrum
will get the museums’ color spectrum.
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 |
https://api.harvardartmuseums.org/spectrum?q=month:1&sort=daynumber
Returns the colors assigned to the month of January.
{
"info": {
"totalrecordsperquery": 10,
"totalrecords": 31,
"pages": 4,
"page": 1,
"next": "https://api.harvardartmuseums.org/spectrum?q=month%3A1&sort=daynumber&size=10&page=2",
"responsetime": "5 ms"
},
"records": [
{
"id": 1,
"color": "#009bdf",
"month": 1,
"day": 1,
"daynumber": 1
},
{
"id": 2,
"color": "#009ade",
"month": 1,
"day": 2,
"daynumber": 2
}
]
}
GET /spectrum/DAY_NUMBER
will get the color associated with a particular day.
https://api.harvardartmuseums.org/spectrum/50
Returns the hex value of the color associated with day 50.
{
"month": 2,
"day": 19,
"color": "#0089ae",
"id": 50,
"daynumber": 50
}