# YouTube general search

Search YouTube videos, Shorts, channels, and playlists. Takes keyword, continuation token, upload date and more, all optional. Served by TikHub.

Purpose:
- Search YouTube videos, Shorts, channels, and playlists
- Returns cleaned structured data (compared to get_general_search which returns raw data)
- Supports multiple filter conditions and sorting options
- Supports pagination for loading more results

Parameters:
- keyword: Search keyword (required for first request)
- continuation_token: Pagination token (pass from previous response for next page)
- upload_date: Upload date filter - last_hour/today/this_week/this_month/this_year
- type: Result type filter - video/channel/playlist/movie
- duration: Video duration filter - short(<4min)/medium(4-20min)/long(>20min)
- features: Feature filter (comma separated) - live/4k/hd/subtitles/creative_commons/360/vr180/3d/hdr
- sort_by: Sort by - relevance/upload_date/view_count/rating

Returns:
- videos: Video list (title, duration, views, author, channel_id, thumbnails, etc.)
- shorts: Shorts video list
- channels: Channel list
- playlists: Playlist list
- continuation_token: Next page token
- completion_suggestions: Search suggestions

Usage flow:
1. First search with keyword (optional filter params)
2. Load more by passing continuation_token from previous response

- Tool ID: `tikhub/youtube-web-v2-get-general-search-v2`
- Name in the catalog: Youtube, General search V2
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube search](/tools/youtube/search.md)
- Price: $0.002 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.002
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.002; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "description": "搜索关键词（首次请求必填）/Search keyword (required for first request)",
      "title": "Keyword"
    },
    "continuation_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "分页token，用于获取下一页/Continuation token for next page",
      "title": "Continuation Token"
    },
    "upload_date": {
      "anyOf": [
        {
          "enum": [
            "last_hour",
            "today",
            "this_week",
            "this_month",
            "this_year"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "上传时间过滤/Upload date filter",
      "title": "Upload Date"
    },
    "type": {
      "anyOf": [
        {
          "enum": [
            "video",
            "channel",
            "playlist",
            "movie"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "类型过滤/Type filter",
      "title": "Type"
    },
    "duration": {
      "anyOf": [
        {
          "enum": [
            "short",
            "medium",
            "long"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "时长过滤/Duration filter: short (<4min), medium (4-20min), long (>20min)",
      "title": "Duration"
    },
    "features": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "特性过滤（逗号分隔）/Feature filter (comma separated): live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr",
      "title": "Features"
    },
    "sort_by": {
      "anyOf": [
        {
          "enum": [
            "relevance",
            "upload_date",
            "view_count",
            "rating"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "排序方式/Sort by",
      "title": "Sort By"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/youtube-web-v2-get-general-search-v2",
  "input": {
    "keyword": "Python tutorial"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/YouTube-Web-V2-API/get_general_search_v2_api_v1_youtube_web_v2_get_general_search_v2_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/youtube-web-v2-get-general-search-v2) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/youtube-web-v2-get-general-search-v2) · [Agent index](/llms.txt)
