Search YouTube videos by keyword and filters
tikhub.youtube.search.videosSearch YouTube by keyword (filter type=video for videos only)
- Price
- $0.002/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 42 337 calls
- Latency p50
- 1.6 sp95 3.3 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.youtube.search.videos?type=video&keyword=coffeePreviewTry onlineBientôtProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
type | chaîne | Facultatif | video | channel | playlist | movie | video |
keyword | chaîne | Obligatoire | required on the first request; omit when paging with continuation_token | coffee |
sort_by | chaîne | Facultatif | relevance | upload_date | view_count | rating | |
duration | chaîne | Facultatif | short (<4min) | medium (4-20min) | long (>20min) | |
features | chaîne | Facultatif | comma-separated: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr | |
upload_date | chaîne | Facultatif | last_hour | today | this_week | this_month | this_year | |
continuation_token | chaîne | Facultatif | pagination token for the next page | |
- Paramètres de requête
typechaîneFacultatifvideo | channel | playlist | movie
Exemple :
videokeywordchaîneObligatoirerequired on the first request; omit when paging with continuation_token
Exemple :
coffeesort_bychaîneFacultatifrelevance | upload_date | view_count | rating
durationchaîneFacultatifshort (<4min) | medium (4-20min) | long (>20min)
featureschaîneFacultatifcomma-separated: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr
upload_datechaîneFacultatiflast_hour | today | this_week | this_month | this_year
continuation_tokenchaîneFacultatifpagination token for the next page
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.youtube.search.videos?type=video&keyword=coffee' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.youtube.search.videos?type=video&keyword=coffee",
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.youtube.search.videos?type=video&keyword=coffee", {
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.002/success, frais de service inclus.