Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

YouTube Video Comment Replies

APIドキュメント
https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies

Returns second-level replies for a YouTube video comment using a continuation token, with optional filters for region, language, and formatted output.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 3 件

プレイグラウンド

入力
**Purpose**: Reply continuation token from first-level comment
**Purpose**: Region code
**Purpose**: Language preference for comments
**Purpose**: Whether to return cleaned simplified data
出力例
レスポンスoutputs · 64 B · 7 行
[
  {
    "data": {
      "continuation_token": null
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

YouTube Video Comment Replies API

Returns the second-level replies to one YouTube video comment. You pass the continuation_token of that comment, and each reply comes with its text, author details, like count, and age.

Use cases

  • Show the full reply thread under a popular comment on a video.
  • Collect reply text and author channels to study how viewers respond to a specific comment.
  • Find the channel IDs of users who reply, so you can look up their channels.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"continuation_token": "Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd6S1lrc3FlUTVnQTN0MGcwRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3pLWWtzcWVRNWdBM3QwZzBGNEFhQUJBZw%3D%3D"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
continuation_tokenstringYesPurpose: Reply continuation token from first-level comment
country_codestringNoPurpose: Region code
language_codestringNoPurpose: Language preference for comments
need_formatbooleanNoPurpose: Whether to return cleaned simplified data

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "comments": [
    {
      "author": {
        "avatar_thumbnails": null,
        "avatar_url": "https://yt3.ggpht.com/1glim4K6lUrgwfThCmliOU7tTxWQ6Tnl2VSEZKFQNxn5braBtYx8bcljKc…",
        "channel_id": "UCWU69Qbi3A6Bzx4xU-UeK7g",
        "channel_url": "https://www.youtube.com/@egdog_tm",
        "display_name": "@egdog_tm",
        "is_artist": false,
        "is_creator": false,
        "is_verified": false
      },
      "comment_id": "UgzKYksqeQ5gA3t0g0F4AaABAg.91a9XW7osVT952pvnnAzll",
      "content": "The biggest comrade ever",
      "creator_thumbnail_url": null,
      "like_count": "6993",
      "like_count_a11y": "6993 次赞",
      "published_time": "6年前",
      "reply_count": "0",
      "reply_count_a11y": "2 条回复",
      "reply_level": 1
    }
  ],
  "continuation_token": null
}

Response fields

FieldMeaning
comments[]List of replies to the comment. Each item is one reply.
comments[].comment_idID of the reply. It starts with the ID of the parent comment, followed by a dot and a reply suffix.
comments[].contentText of the reply.
comments[].like_countNumber of likes on the reply. The value is a string.
comments[].published_timeAge of the reply as shown on YouTube, for example 6年前. It is localized text, not a timestamp.
comments[].reply_levelDepth of the reply in the thread. Replies in this response have the value 1.
comments[].author.display_name / comments[].author.channel_urlHandle and channel page URL of the reply author.
comments[].author.channel_idYouTube channel ID of the reply author.
comments[].author.is_verified / comments[].author.is_creator / comments[].author.is_artistFlags that show whether the author is verified, is the video creator, or is an artist.
continuation_tokenToken for the next page of replies. The value is null when there are no more pages.

Notes

  • Take the continuation_token from a first-level comment. Get those comments from YouTube Video Comments.
  • To get the next page, send the returned top-level continuation_token as the new continuation_token request value. A null value means the last page.
  • reply_count is 0 on every reply here, so read the number of nested replies from reply_count_a11y, which is a localized text string.
  • country_code and language_code are optional. Set language_code to choose the language of the text YouTube returns, such as published_time and the _a11y fields.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
YouTube$0.001 / 回JSON
YouTube$0.001 / 回JSON
YouTube$0.001 / 回JSON
YouTube$0.001 / 回JSON
YouTube$0.001 / 回JSON
YouTube$0.001 / 回JSON

ガイド:Best YouTube API in 2026: Pricing Compared

質問

FAQ

YouTube Video Comment Replies API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/youtube/web-v2/video-comment-replies に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

YouTube Video Comment Replies API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

YouTube Video Comment Replies API はどのパラメータを受け付けますか?

必須: continuation_token (string)。 任意: country_code (string), language_code (string) と need_format (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

YouTube Video Comment Replies API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

YouTube の開発者アカウントまたは API key は必要ですか?

いいえ。YouTube Video Comment Replies は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。YouTube の API アクセスを別途申請する必要はありません。