Search

Search functionality for the MAAS API can be accessed from this endpoint:

https://api.maas.museum/search

This url is a proxy for Elasticsearch (version 2.3), most GET and POST commands should work. Check out the Elasticsearch documentation here.

Examples

Search for ‘boats’ within our collection objects:
https://api.maas.museum/search/maas/object/_search?q=boat

Search for ‘sherlock’ within our museum events:
https://api.maas.museum/search/maas/event/_search?q=sherlock

Search for ‘membership’ within our store products:
https://api.maas.museum/search/maas/product/_search?q=membership

Search for ‘star’ across all our types:
https://api.maas.museum/search/maas/_search?q=star

Access record by resource and id:
https://api.maas.museum/search/maas/[resource]/_search?q=id:[id]
(Replace [id] with an integer and [resource] with object, multimedia, narrative, product, event or program)

We’ll write up some more examples in the coming months.