Search YouTube Shorts by keyword
tikhub.x.youtube-web-v2-get-shorts-searchYoutube: get shorts search (web_v2)
- Price
- $0.001/successAl precio del proveedor
- Success rate
- 100 %Last 30 days · 2474 calls
- Latency p50
- 1.6 sp95 2.7 s
- Last verified
- 28 jul 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-shorts-search?time_zone=America%2FLos_Angeles&country_code=US&search_query=Python%E7%BC%96%E7%A8%8B&language_code=en-US&filter_mixed_content=truePreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
sort_by | other | Opcional | 排序方式 | Sort by for Shorts | |
time_zone | cadena | Opcional | Time zone | America/Los_Angeles |
upload_time | other | Opcional | 上传时间过滤 | Upload time filter for Shorts | |
country_code | cadena | Opcional | Country code | US |
search_query | cadena | Obligatorio | Search keyword | Python编程 |
language_code | cadena | Opcional | Language code | en-US |
continuation_token | other | Opcional | Pagination token | |
filter_mixed_content | booleano | Opcional | Filter mixed content (long videos), default True | true |
- Parámetros de consulta
sort_byotherOpcional排序方式 | Sort by for Shorts
time_zonecadenaOpcionalTime zone
Ejemplo:
America/Los_Angelesupload_timeotherOpcional上传时间过滤 | Upload time filter for Shorts
country_codecadenaOpcionalCountry code
Ejemplo:
USsearch_querycadenaObligatorioSearch keyword
Ejemplo:
Python编程language_codecadenaOpcionalLanguage code
Ejemplo:
en-UScontinuation_tokenotherOpcionalPagination token
filter_mixed_contentbooleanoOpcionalFilter mixed content (long videos), default True
Ejemplo:
true
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-shorts-search?time_zone=America%2FLos_Angeles&country_code=US&search_query=Python%E7%BC%96%E7%A8%8B&language_code=en-US&filter_mixed_content=true' \
-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-shorts-search?time_zone=America%2FLos_Angeles&country_code=US&search_query=Python%E7%BC%96%E7%A8%8B&language_code=en-US&filter_mixed_content=true",
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-shorts-search?time_zone=America%2FLos_Angeles&country_code=US&search_query=Python%E7%BC%96%E7%A8%8B&language_code=en-US&filter_mixed_content=true", {
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.001/success, incluida la tarifa de servicio.