Search YouTube by keyword with filters
tikhub.x.youtube-web-v2-get-general-searchYoutube: get general search (web_v2)
- 価格
- $0.001/successカタログ価格で提供
- 成功率
- 100%直近 30 日 · 355 回
- レイテンシ p50
- 1.7 sp95 4.1 s
- 最終確認
- 2026/07/28動作確認済み
GEThttps://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8BBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
feature | other | 任意 | 特征过滤 | Feature filter | |
sort_by | other | 任意 | 排序方式 | Sort by | |
duration | other | 任意 | 视频时长过滤 | Duration filter | |
time_zone | 文字列 | 任意 | Time zone | America/Los_Angeles |
upload_time | other | 任意 | 上传时间过滤 | Upload time filter | |
content_type | other | 任意 | 内容类型过滤 | Content type filter | |
country_code | 文字列 | 任意 | Country code | US |
search_query | 文字列 | 必須 | Search keyword | Python编程 |
language_code | 文字列 | 任意 | Language code | zh-CN |
continuation_token | other | 任意 | Pagination token | |
- クエリパラメータ
featureother任意特征过滤 | Feature filter
sort_byother任意排序方式 | Sort by
durationother任意视频时长过滤 | Duration filter
time_zone文字列任意Time zone
例:
America/Los_Angelesupload_timeother任意上传时间过滤 | Upload time filter
content_typeother任意内容类型过滤 | Content type filter
country_code文字列任意Country code
例:
USsearch_query文字列必須Search keyword
例:
Python编程language_code文字列任意Language code
例:
zh-CNcontinuation_tokenother任意Pagination token
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.youtube-web-v2-get-general-search?search_query=Python%E7%BC%96%E7%A8%8B' \
-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-general-search?search_query=Python%E7%BC%96%E7%A8%8B",
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-general-search?search_query=Python%E7%BC%96%E7%A8%8B", {
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 は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。