YouTube video comments by video id
tikhub.youtube.video.commentsComments on a YouTube video
- Price
- $0.001/successプロバイダー原価
- Success rate
- 100%Last 30 days · 15,473 calls
- Latency p50
- 1.8 sp95 3.3 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-USPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
sort_by | 文字列 | 任意 | top (default) | newest | |
video_id | 文字列 | 必須 | dQw4w9WgXcQ | |
need_format | 真偽値 | 任意 | ||
country_code | 文字列 | 任意 | default US | |
language_code | 文字列 | 任意 | default zh-CN | en-US |
continuation_token | 文字列 | 任意 | pagination token from the previous response | |
- クエリパラメータ
sort_by文字列任意top (default) | newest
video_id文字列必須例:
dQw4w9WgXcQneed_format真偽値任意country_code文字列任意default US
language_code文字列任意default zh-CN
例:
en-UScontinuation_token文字列任意pagination token from the previous response
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.youtube.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US",
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.video.comments?video_id=dQw4w9WgXcQ&language_code=en-US", {
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.001/success です。サービス料を含みます。