Search YouTube Shorts by keyword
tikhub.x.youtube-web-v2-get-shorts-searchYoutube: get shorts search (web_v2)
- Price
- $0.001/successAt provider cost
- Success rate
- 100%Last 30 days · 2,474 calls
- Latency p50
- 1.6 sp95 2.7 s
- Last verified
- Jul 28, 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 onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
sort_by | other | Optional | 排序方式 | Sort by for Shorts | |
time_zone | string | Optional | Time zone | America/Los_Angeles |
upload_time | other | Optional | 上传时间过滤 | Upload time filter for Shorts | |
country_code | string | Optional | Country code | US |
search_query | string | Required | Search keyword | Python编程 |
language_code | string | Optional | Language code | en-US |
continuation_token | other | Optional | Pagination token | |
filter_mixed_content | boolean | Optional | Filter mixed content (long videos), default True | true |
- Query parameters
sort_byotherOptional排序方式 | Sort by for Shorts
time_zonestringOptionalTime zone
Example:
America/Los_Angelesupload_timeotherOptional上传时间过滤 | Upload time filter for Shorts
country_codestringOptionalCountry code
Example:
USsearch_querystringRequiredSearch keyword
Example:
Python编程language_codestringOptionalLanguage code
Example:
en-UScontinuation_tokenotherOptionalPagination token
filter_mixed_contentbooleanOptionalFilter mixed content (long videos), default True
Example:
true
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-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());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.