---
title: "Search within collection"
method: POST
path: "/collection/{collection_id}/search/"
---

# Search within collection

`POST /collection/{collection_id}/search/`

## Path parameters

- `collection_id` string, required

## Request body

- object
  - `query` string, required
  - `index_type` 'spoken_word' | 'scene'
  - `search_type` 'semantic' | 'custom'
  - `score_threshold` number
  - `result_threshold` integer
  - `stitch` boolean
  - `rerank` boolean
  - `filter` object[]

## Response `200`

Search results

- SearchResult
  - `success` boolean
  - `data` object
    - `query` string
    - `results` object[]
      - `video_id` string
      - `start` number
      - `end` number
      - `text` string
      - `score` number

---

[API](https://skmtc.net/video-db/apis/videodb-server-api.md) · [All operations](https://skmtc.net/video-db/apis/videodb-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/video-db/videodb-server-api/versions/21b1d1d3eae8/schema)
