Search YouTube Shorts by keyword
tikhub.x.youtube-web-v2-get-shorts-searchYoutube: get shorts search (web_v2)
- Price
- $0.001/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 2.474 calls
- Latency p50
- 1.6 sp95 2.7 s
- Last verified
- 28 de jul. de 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=truePreviewTry 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 | ||||
sort_by | other | Opcional | 排序方式 | Sort by for Shorts | |
time_zone | string | Opcional | Time zone | America/Los_Angeles |
upload_time | other | Opcional | 上传时间过滤 | Upload time filter for Shorts | |
country_code | string | Opcional | Country code | US |
search_query | string | Obrigatório | Search keyword | Python编程 |
language_code | string | 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_zonestringOpcionalTime zone
Exemplo:
America/Los_Angelesupload_timeotherOpcional上传时间过滤 | Upload time filter for Shorts
country_codestringOpcionalCountry code
Exemplo:
USsearch_querystringObrigatórioSearch keyword
Exemplo:
Python编程language_codestringOpcionalLanguage code
Exemplo:
en-UScontinuation_tokenotherOpcionalPagination token
filter_mixed_contentbooleanoOpcionalFilter mixed content (long videos), default True
Exemplo:
true
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-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());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.