---
title: "Perform complex search queries over Auckland Museum Collections and Cenotaph data"
method: POST
path: "/search/{index}/{operation}"
tags: ["search"]
---

# Perform complex search queries over Auckland Museum Collections and Cenotaph data

`POST /search/{index}/{operation}`

## Request

- Base URL: `https://api.aucklandmuseum.com`
- URL: `https://api.aucklandmuseum.com/search/{index}/{operation}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/docs/search/:index/:operation/post.ts> (a function with typed inputs; its response is checked against the schema)

Searches performed via this endpoint run against an [Elastic](www.elastic.co) server. This endpoint mirrors the Elastic search API documented [here](https://www.elastic.co/guide/en/elasticsearch/reference/1.5/search-search.html)

Use the
  - `collectionsonline` index to perform searches over other all Collections data
  - `cenotaph` index to perform searches over Cenotaph data

## Path parameters

- `index` string, required
- `operation` string, required

## Request body

- object

## Response `200`

search results found

## Other responses

- `400`: bad request
- `404`: not found

---

[API](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api.md) - [All operations](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/revisions/892a068b75e7?raw)
