Search YouTube by keyword with filters
tikhub.x.youtube-web-v2-get-general-searchYoutube: get general search (web_v2)
- Price
- $0.001/successAt provider cost
- Success rate
- 100%Last 30 days · 350 calls
- Latency p50
- 1.7 sp95 4.1 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8BPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
feature | other | Optional | 特征过滤 | Feature filter | |
sort_by | other | Optional | 排序方式 | Sort by | |
duration | other | Optional | 视频时长过滤 | Duration filter | |
time_zone | string | Optional | Time zone | America/Los_Angeles |
upload_time | other | Optional | 上传时间过滤 | Upload time filter | |
content_type | other | Optional | 内容类型过滤 | Content type filter | |
country_code | string | Optional | Country code | US |
search_query | string | Required | Search keyword | Python编程 |
language_code | string | Optional | Language code | zh-CN |
continuation_token | other | Optional | Pagination token | |
- Query parameters
featureotherOptional特征过滤 | Feature filter
sort_byotherOptional排序方式 | Sort by
durationotherOptional视频时长过滤 | Duration filter
time_zonestringOptionalTime zone
Example:
America/Los_Angelesupload_timeotherOptional上传时间过滤 | Upload time filter
content_typeotherOptional内容类型过滤 | Content type filter
country_codestringOptionalCountry code
Example:
USsearch_querystringRequiredSearch keyword
Example:
Python编程language_codestringOptionalLanguage code
Example:
zh-CNcontinuation_tokenotherOptionalPagination token
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8B' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8B",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8B", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/success, including the service fee.