# General search (raw data, recommend V2)

Search YouTube general via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by TikHub, pass parameters such as content_type, duration, feature, and retrieve structured data including business status code, business payload, response message, returned params field, and request identifier for content research and account lookup, and integration reference.

Documentation: https://openany.si/market/apis/youtube/youtube-general-search/?offering=26df84e7-c3cb-4776-b31a-96f0f75e8788
API ID: 26df84e7-c3cb-4776-b31a-96f0f75e8788
Provider: tikhub
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/tikhub/api/v1/youtube/web_v2/get_general_search
Page update time: 2026-12-03T02:55:56.651Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.001 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:56.479Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "General search (raw data, recommend V2) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "search_query": {
          "type": "string",
          "description": "搜索关键字/Search keyword",
          "maxLength": 200
        },
        "language_code": {
          "type": "string",
          "description": "语言代码（如zh-CN, en-US等）/Language code"
        },
        "country_code": {
          "type": "string",
          "description": "国家代码（如US, CN等）/Country code"
        },
        "time_zone": {
          "type": "string",
          "description": "时区（如America/Los_Angeles, Asia/Shanghai等）/Time zone"
        },
        "upload_time": {
          "type": [
            "string",
            "null"
          ],
          "description": "上传时间过滤 | Upload time filter",
          "enum": [
            "hour",
            "today",
            "week",
            "month",
            "year",
            null
          ]
        },
        "duration": {
          "type": [
            "string",
            "null"
          ],
          "description": "视频时长过滤 | Duration filter",
          "enum": [
            "short",
            "medium",
            "long",
            null
          ]
        },
        "content_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "内容类型过滤 | Content type filter",
          "enum": [
            "video",
            "channel",
            "playlist",
            "movie",
            null
          ]
        },
        "feature": {
          "type": [
            "string",
            "null"
          ],
          "description": "特征过滤 | Feature filter",
          "enum": [
            "live",
            "4k",
            "hd",
            "subtitles",
            "creative_commons",
            "360",
            "vr180",
            "3d",
            "hdr",
            "location",
            "purchased",
            null
          ]
        },
        "sort_by": {
          "type": [
            "string",
            "null"
          ],
          "description": "排序方式 | Sort by",
          "enum": [
            "relevance",
            "upload_date",
            "view_count",
            "rating",
            null
          ]
        },
        "continuation_token": {
          "type": [
            "string",
            "null"
          ],
          "description": "翻页令牌/Pagination token"
        }
      },
      "required": [
        "search_query"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cache_message": {
      "type": "string"
    },
    "cache_message_zh": {
      "type": "string"
    },
    "cache_url": {
      "type": "string"
    },
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "null"
    },
    "docs": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "message_zh": {
      "type": "string"
    },
    "params": {
      "type": "object",
      "properties": {}
    },
    "request_id": {
      "type": "string"
    },
    "router": {
      "type": "string"
    },
    "support": {
      "type": "string"
    },
    "time": {
      "type": "string"
    },
    "time_stamp": {
      "type": "integer"
    },
    "time_zone": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/tikhub/api/v1/youtube/web_v2/get_general_search?content_type=video&duration=short&feature=hd&search_query=Python%E7%BC%96%E7%A8%8B&sort_by=relevance&upload_time=hour' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
  "cache_message_zh": "本次响应已缓存，可通过下方 URL 直接查看，有效期 24 小时，访问缓存链接无额外费用。缓存仅用于请求溯源，不影响接口数据的时效性，也不会再次通过接口返回。",
  "cache_url": "<cache_url>",
  "code": 200,
  "data": null,
  "docs": "<docs>",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功，本次请求将被计费。",
  "params": {},
  "request_id": "<request_id>",
  "router": "",
  "support": "Discord: https://discord.gg/aMEAS8Xsvz",
  "time": "<time>",
  "time_stamp": 0,
  "time_zone": "America/Los_Angeles"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- scrapecreators: https://openany.si/market/apis/youtube/youtube-general-search/?offering=cb7323b0-c83e-42df-9130-788bfba98719
- tikhub: https://openany.si/market/apis/youtube/youtube-general-search/?offering=26df84e7-c3cb-4776-b31a-96f0f75e8788
- tikhub: https://openany.si/market/apis/youtube/youtube-general-search/?offering=91b73333-2213-4aa2-afb9-eb9bc8a51731

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
