---
title: "Semantic Search Videos"
method: GET
path: "/videos/semantic-search"
tags: ["Videos"]
---

# Semantic Search Videos

`GET /videos/semantic-search`

## Request

- Base URL: `http://localhost:52123`
- URL: `http://localhost:52123/videos/semantic-search`
- Auth: none declared
- TypeScript: <https://skmtc.dev/aossie-org/apis/pictopy/docs/videos/semantic-search/get.ts> (a function with typed inputs; its response is checked against the schema)

Semantic search videos by query text using SigLIP2 keyframe embeddings.

## Query parameters

- `query` string, required: Query text to search for

## Response `200`

Successful Response

- AppRoutesVideosSemanticSearchResponse
  - `success` boolean, required
  - `message` string, required
  - `data` AppRoutesVideosSemanticSearchData, required
    - `videos` ScoredVideoData[], required
      - `id` string, required
      - `path` string, required
      - `folder_id` string, required
      - `thumbnailPath` string, nullable, required
      - `metadata` VideoMetadataModel, required
        - `name` string, required
        - `date_created` string, nullable, required
        - `width` integer, required
        - `height` integer, required
        - `duration` number, nullable
        - `fps` number, nullable
        - `file_location` string, required
        - `file_size` integer, required
        - `item_type` string, required
      - `isFavourite` boolean, required
      - `favouritedAt` string, nullable
      - `tags` string[], nullable
      - `score` number, required
      - `best_frame_timestamp` number, nullable
    - `total` integer, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

## Changes

- **2026-09-16** `72c3038bc111`: 1 info
  - added the optional property `data/videos/items/favouritedAt` to the response with the `200` status
- **2026-07-24** `139d995685b7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/aossie-org/apis/pictopy/changes/videos/semantic-search/get.md)

---

[API](https://skmtc.dev/aossie-org/apis/pictopy.md) - [All operations](https://skmtc.dev/aossie-org/apis/pictopy/llms.txt) - [OpenAPI document](https://skmtc.dev/aossie-org/apis/pictopy/revisions/9fe895216588?raw)
