Search YouTube by keyword with filters
tikhub.x.youtube-web-v2-get-general-searchYoutube: get general search (web_v2)
- Price
- $0.001/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 350 calls
- Latency p50
- 1.7 sp95 4.1 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8BPreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
feature | other | Facultatif | 特征过滤 | Feature filter | |
sort_by | other | Facultatif | 排序方式 | Sort by | |
duration | other | Facultatif | 视频时长过滤 | Duration filter | |
time_zone | chaîne | Facultatif | Time zone | America/Los_Angeles |
upload_time | other | Facultatif | 上传时间过滤 | Upload time filter | |
content_type | other | Facultatif | 内容类型过滤 | Content type filter | |
country_code | chaîne | Facultatif | Country code | US |
search_query | chaîne | Obligatoire | Search keyword | Python编程 |
language_code | chaîne | Facultatif | Language code | zh-CN |
continuation_token | other | Facultatif | Pagination token | |
- Paramètres de requête
featureotherFacultatif特征过滤 | Feature filter
sort_byotherFacultatif排序方式 | Sort by
durationotherFacultatif视频时长过滤 | Duration filter
time_zonechaîneFacultatifTime zone
Exemple :
America/Los_Angelesupload_timeotherFacultatif上传时间过滤 | Upload time filter
content_typeotherFacultatif内容类型过滤 | Content type filter
country_codechaîneFacultatifCountry code
Exemple :
USsearch_querychaîneObligatoireSearch keyword
Exemple :
Python编程language_codechaîneFacultatifLanguage code
Exemple :
zh-CNcontinuation_tokenotherFacultatifPagination token
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.001/success, frais de service inclus.