# 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/youtube/youtube-general-search/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.
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
}
```

## Usage and limits
## YouTube General search (raw data, recommend V2) API

Search for general (raw data, recommend V2) with the YouTube API. Provide search\_query in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Response Envelope

| Field | Meaning |
| --- | --- |
| `code` | Business status code |
| `data` | Business payload (nullable in the reference) |
| `message` | Response message |
| `params` | Returned params field |
| `request_id` | Request identifier |
| `time_stamp` | Returned time stamp field |
| `time_zone` | Returned time zone field |

## 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.

## Common questions
### Which inputs identify this request?
Provide search_query in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
country_code is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Which values can I use for upload_time?
The selected schema accepts hour, today, week, month, year. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

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

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