---
title: "Search Videos By Tag"
method: GET
path: "/videos/search"
tags: ["Videos"]
---

# Search Videos By Tag

`GET /videos/search`

## Request

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

Search videos by tag name.

## Query parameters

- `tag` string, required: Tag name to search for

## Response `200`

Successful Response

- GetAllVideosResponse
  - `success` boolean, required
  - `message` string, required
  - `data` VideoData[], 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

## Other responses

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

## Changes

- **2026-09-16** `72c3038bc111`: 1 info
  - added the optional property `data/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/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)
