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개

Playground

입력
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.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

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.

더 살펴보기

관련 API

모든 API
API가격응답
YouTube$0.014286 / 호출JSON
YouTube호출당 $0.00045부터JSON
YouTube호출당 $0.0012부터JSON
YouTube호출당 $0.0012부터JSON
YouTube호출당 $0.0012부터JSON
YouTube$0.014286 / 호출JSON

가이드:Best YouTube API in 2026: Pricing Compared

질문

FAQ

YouTube Video Comment List API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/youtube/video-comment에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

YouTube Video Comment List API 비용은 얼마인가요?

호출당 $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 키가 필요한가요?

아니요. YouTube Video Comment List은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. YouTube API 액세스를 별도로 신청할 필요는 없습니다.