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

YouTube Video Comment List

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

Get first-level comments for a YouTube video with sorting, locale options, and cursor pagination. Use it to review audience discussion or continue through additional comment pages.

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

プレイグラウンド

入力
The unique identifier for a YouTube video.
Pagination cursor returned by the previous response.
Language preference for response data.
Region code for response data.
Sort order for the comment list.
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

YouTube Video Comment List API

This API returns first-level comments for a YouTube video. It needs a videoId and returns one page of comments plus a token for the next page.

Use cases

  • Read the newest comments on a video to track how viewers react after a release.
  • Pull the top comments of a video to find the most liked viewer opinions.
  • Collect commenter channel IDs and URLs to find active fans of a video.
  • Find comments with replies and fetch those threads with the reply token.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/video-comment" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"videoId": "dQw4w9WgXcQ"}'

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

Parameters

NameTypeRequiredDescription
videoIdstringYesThe unique identifier for a YouTube video.
countryCodestringNoRegion code for response data.
cursorstringNoPagination cursor returned by the previous response.
languageCodestringNoLanguage preference for response data.
sortBystringNoSort order for the comment list.

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/-E_1_UKaW4IjUqAmk6N7s3qr_8PbKnu9qRPFXo6z2ifCAllcNGgSges4D6…",
        "channel_id": "UC5KHEnpHIDdKl6ALNpA9dNQ",
        "channel_url": "https://www.youtube.com/@bitkoinaz",
        "display_name": "@bitkoinaz",
        "is_artist": false,
        "is_creator": false,
        "is_verified": false
      },
      "comment_id": "Ugw9M0L8J6DB47hdd9h4AaABAg",
      "content": "о боже какая песня. ее нашел для меня ИИ бот когда я попросил его скачать какую …",
      "creator_thumbnail_url": null,
      "like_count": "0",
      "like_count_a11y": "0 次赞",
      "published_time": "22分钟前",
      "reply_count": "0",
      "reply_count_a11y": "0 条回复",
      "reply_level": 0
    }
  ],
  "continuation_token": "Eg0SC2RR…"
}

Response fields

FieldMeaning
comments[]List of first-level comments on the requested page.
comments[].comment_idUnique ID of the comment.
comments[].contentText of the comment.
comments[].author.display_name / comments[].author.channel_urlHandle and channel link of the commenter.
comments[].author.channel_idYouTube channel ID of the commenter.
comments[].author.is_verified / comments[].author.is_creator / comments[].author.is_artistBoolean flags for the commenter. They show whether the author is verified, is the video creator, or is an artist.
comments[].like_count / comments[].reply_countNumber of likes and replies on the comment. Both values are strings.
comments[].published_timeRelative publish time as display text, for example 22分钟前. It is not a timestamp.
comments[].reply_continuation_tokenToken that appears only on comments that have replies. Use it to load the reply thread.
continuation_tokenToken for the next page of comments. Send it as cursor in the next request.

Notes

  • The videoId is the value after v= in a YouTube watch URL, for example dQw4w9WgXcQ.
  • For the next page, pass the continuation_token from the response as cursor. Keep the same sortBy value (top or newest).
  • Text such as published_time and like_count_a11y follows the language settings, and the sample shows Chinese strings. Use languageCode and countryCode to change them.
  • To read replies to a comment, call YouTube Comment Replies with the comment's reply_continuation_token.

Pricing

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

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
YouTube$0.014286 / 回JSON
YouTube1回あたり $0.00045 からJSON
YouTube1回あたり $0.0012 からJSON
YouTube1回あたり $0.0012 からJSON
YouTube1回あたり $0.0012 からJSON
YouTube$0.014286 / 回JSON

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

質問

FAQ

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

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

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

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

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

必須: videoId (string)。 任意: cursor (string), languageCode (string), countryCode (string) と sortBy(top, newest のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

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

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

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

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