Search YouTube by keyword with filters
tikhub.x.youtube-web-v2-get-general-searchYoutube: get general search (web_v2)
- Price
- $0.001/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 350 calls
- Latency p50
- 1.7 sp95 4.1 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8BPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
feature | other | Opcional | 特征过滤 | Feature filter | |
sort_by | other | Opcional | 排序方式 | Sort by | |
duration | other | Opcional | 视频时长过滤 | Duration filter | |
time_zone | string | Opcional | Time zone | America/Los_Angeles |
upload_time | other | Opcional | 上传时间过滤 | Upload time filter | |
content_type | other | Opcional | 内容类型过滤 | Content type filter | |
country_code | string | Opcional | Country code | US |
search_query | string | Obrigatório | Search keyword | Python编程 |
language_code | string | Opcional | Language code | zh-CN |
continuation_token | other | Opcional | Pagination token | |
- Parâmetros de consulta
featureotherOpcional特征过滤 | Feature filter
sort_byotherOpcional排序方式 | Sort by
durationotherOpcional视频时长过滤 | Duration filter
time_zonestringOpcionalTime zone
Exemplo:
America/Los_Angelesupload_timeotherOpcional上传时间过滤 | Upload time filter
content_typeotherOpcional内容类型过滤 | Content type filter
country_codestringOpcionalCountry code
Exemplo:
USsearch_querystringObrigatórioSearch keyword
Exemplo:
Python编程language_codestringOpcionalLanguage code
Exemplo:
zh-CNcontinuation_tokenotherOpcionalPagination token
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.001/success, incluindo a taxa de serviço.