GET /v1/youtube/web_v2/get_general_search
General search (raw data, recommend V2)
stable · 2 credits per success
YouTube comprehensive search with multiple filter options for precise result filtering;**search_query**: Search keyword;**language_code**: Language code (zh-CN for Chinese, en-US for English);**country_code**: Country code affecting regional relevance;**time_zone**: Time zone setting;Filter Options (select one value for each);Upload Time (upload_time);`hour`: Uploaded in the past hour;`today`: Up…
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| feature | string | query | no | 特征过滤 | Feature filter | live |
| sort_by | string | query | no | 排序方式 | Sort by | relevance |
| duration | string | query | no | 视频时长过滤 | Duration filter | short |
| time_zone | string | query | no | 时区(如America | America/Los_Angeles |
| upload_time | string | query | no | 上传时间过滤 | Upload time filter | hour |
| content_type | string | query | no | 内容类型过滤 | Content type filter | video |
| country_code | string | query | no | 国家代码(如US, CN等) | US |
| search_query | string | query | yes | 搜索关键字 | Python编程 |
| language_code | string | query | no | 语言代码(如zh-CN, en-US等) | zh-CN |
| continuation_token | string | query | no | 翻页令牌 | demo |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 that fails the quality gate — costs 0.