Search YouTube videos by keyword and filters
tikhub.youtube.search.videosSearch YouTube by keyword (filter type=video for videos only)
- Price
- $0.002/successプロバイダー原価
- Success rate
- 100%Last 30 days · 42,337 calls
- Latency p50
- 1.6 sp95 3.3 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.youtube.search.videos?type=video&keyword=coffeePreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
type | 文字列 | 任意 | video | channel | playlist | movie | video |
keyword | 文字列 | 必須 | required on the first request; omit when paging with continuation_token | coffee |
sort_by | 文字列 | 任意 | relevance | upload_date | view_count | rating | |
duration | 文字列 | 任意 | short (<4min) | medium (4-20min) | long (>20min) | |
features | 文字列 | 任意 | comma-separated: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr | |
upload_date | 文字列 | 任意 | last_hour | today | this_week | this_month | this_year | |
continuation_token | 文字列 | 任意 | pagination token for the next page | |
- クエリパラメータ
type文字列任意video | channel | playlist | movie
例:
videokeyword文字列必須required on the first request; omit when paging with continuation_token
例:
coffeesort_by文字列任意relevance | upload_date | view_count | rating
duration文字列任意short (<4min) | medium (4-20min) | long (>20min)
features文字列任意comma-separated: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr
upload_date文字列任意last_hour | today | this_week | this_month | this_year
continuation_token文字列任意pagination token for the next page
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.002/success です。サービス料を含みます。