> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xinobi-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Multiple Buckets

> Search across multiple buckets at once

Search multiple buckets in one request.

## Parameters

<ParamField body="query" type="string" required>
  What to search for
</ParamField>

<ParamField body="unique_ids" type="array" required>
  List of bucket IDs
</ParamField>

<ParamField body="top_k" type="integer" default="10">
  Max results per bucket
</ParamField>

<RequestExample>
  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://memoryapi-production.up.railway.app/search/multiple",
      headers={"X-API-Key": "xinobi"},
      json={
          "query": "family dinner",
          "unique_ids": ["bucket-1", "bucket-2"]
      }
  )
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "results": [
      {
        "unique_id": "bucket-1",
        "media": [{"videoNo": "VI123", "score": 0.85}],
        "text": [{"id": "456", "content": "Family dinner last night"}]
      },
      {
        "unique_id": "bucket-2",
        "media": [],
        "text": []
      }
    ]
  }
  ```
</ResponseExample>
