---
title: "Search YouTube videos"
method: GET
path: "/api/v1/youtube/search"
---

# Search YouTube videos

`GET /api/v1/youtube/search`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/api/v1/youtube/search`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`)

Search for YouTube videos by keyword. Supports sorting by relevance, date, view count, or rating. Can optionally restrict to a specific channel. Use when user asks 'find YouTube videos about X', 'search YouTube for Y'. **NOTE:** Uses Google OAuth — if not authenticated, user must sign in with Google first.

## Query parameters

- `query` string, required
- `max_results` integer
- `order` 'relevance' | 'date' | 'viewCount' | 'rating'
- `channel_id` string
- `page_token` string

## Response `200`

YouTube search results

- YouTubeSearchResponse
  - `user` string
  - `provider` string
  - `videos` object[]
    - `video_id` string
    - `title` string
    - `description` string
    - `channel_title` string
    - `channel_id` string
    - `published_at` string
    - `thumbnail_url` string
  - `total_results` integer
  - `next_page_token` string
  - `_meta` object
    - `source` string
    - `authoritative` boolean

## Other responses

- `401`: Authentication required
- `500`: Internal server error

---

[API](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api.md) · [All operations](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/revisions/e25648ba6027?raw)
