Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

YouTube Community Post Comments

API 文件
https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments

Returns comments from a YouTube community post with support for pagination, formatted output, and regional localization settings.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 5 個選填

Playground

輸入
Next page token
Country code, default `"US"`
Language code, default `"zh-CN"`
Whether to format data, default `true`
Post ID, required for first request
輸出範例
回應outputs · 3.8 KB · 75 行
[
  {
    "data": {
      "comments": [
        {
          "author": {
            "avatar_thumbnails": null,
            "avatar_url": "https://yt3.ggpht.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s88-c-k-c0x00ffffff-no-rj",
            "channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
            "channel_url": "https://www.youtube.com/@youtubecreators",
            "display_name": "@youtubecreators",
            "is_artist": false,
            "is_creator": true,
            "is_verified": true
          },
          "comment_id": "UgwZHdfuY046UGc1mTV4AaABAg",
          "content": "Let us know what you're MOST excited to share on your Community tab in the comments!",
          "creator_thumbnail_url": null,
          "like_count": "228",
          "like_count_a11y": "228 次赞",
          "published_time": "2年前",
          "reply_continuation_token": "4qmFsgLQAhIrRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3JlcGxpZXNfcGFnZRqgAkVnVndiM04wYzhvQko3SUJKRlZuYTNocFExTlNaa1EyWnpkVFVHeFhSMUJFWVROMllsQTNZVWx6ZVhSWVVtdDJlZW9DQkJBQkdBR3FBNXdCR21rU0dsVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbklnSUlBQ29ZVlVOclVtWkJjblp5ZW1obFZ6SkZOMkkyVTFaVU4zWlJRQUZJQ25va1ZXZHJlR2xEVTFKbVJEWm5OMU5RYkZkSFVFUmhNM1ppVURkaFNYTjVkRmhTYTNaNWdnRUNDQUZDTDJOdmJXMWxiblF0Y21Wd2JHbGxjeTFwZEdWdExWVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbg%3D%3D",
          "reply_count": "133",
          "reply_count_a11y": "133 条回复",
          "reply_count_text": "133 条回复",
          "reply_level": 0
        },
        {
          "author": {
            "avatar_thumbnails": null,
            "avatar_url": "https://yt3.ggpht.com/Cpo6AeYSn7ZbCrbf0pkaxFHOowzl5olD_01FDjoQJhdocu6zZ3kw9Z2v-GeJepjSmgZSqbc4xQ=s88-c-k-c0x00ffffff-no-rj",
            "channel_id": "UCWBltH-mr5IJtZUBm3TGExQ",
            "channel_url": "https://www.youtube.com/@abirkhulna52",
            "display_name": "@abirkhulna52",
            "is_artist": false,
            "is_creator": false,
            "is_verified": false
          },
          "comment_id": "Ugyb5vFcLnDb7vwASmx4AaABAg",
          "content": "Thank you for YouTube Family",
          "creator_thumbnail_url": null,
          "like_count": "1",
          "like_count_a11y": "1 次赞",
          "published_time": "1年前",
          "reply_count": "0",
          "reply_count_a11y": "0 条回复",
          "reply_level": 0
        },
        {
          "author": {
            "avatar_thumbnails": null,
            "avatar_url": "https://yt3.ggpht.com/89rQUcTgD_wfJkr3zNUH4AGwR0hpcOZGi64xWvLom7JJF3OJShratQ0UYO11tD5h5_spompNSQ=s88-c-k-c0x00ffffff-no-rj",
            "channel_id": "UCekLircmkkktFJJJoOSR_RQ",
            "channel_url": "https://www.youtube.com/@YasirG-921",
            "display_name": "@YasirG-921",
            "is_artist": false,
            "is_creator": false,
            "is_verified": false
          },
          "comment_id": "Ugzvvr4m9flSxDpV2al4AaABAg",
          "content": "Tanks you tube family",
          "creator_thumbnail_url": null,
          "like_count": "1",
          "like_count_a11y": "1 次赞",
          "published_time": "2年前",
          "reply_count": "0",
          "reply_count_a11y": "0 条回复",
          "reply_level": 0
        },
        "… 17 more items in the full response"
      ],
      "continuation_token": "4qmFsgKRBRIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBrkBEVnVndiM04wYzZvRHV3TUsxd0puWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGVWRsTnBaVWxJYkROT1RHTlFUM1pRUVd0cFkySm5OVWhhZVZWSmIyaENUR3gwUkcxc01GVk9aR3BhT0ZGQ2JUSmZOMFI0UjB3NVRUVnhlVmRtY3psVFJuRTBjak0xVjJNemEzRnhTSFpKUVZCdFUyOVlURnBHUm10MlFqTjFRWFIyUTFjeU0xRlRhbXBPYVVsaGNGcFNSVzVyTTFKa2FUZzJVbEV5YlhkemFsZGtlV2xxVVhGSWJXTTBORkZCTmpWRlVHVkxWRWxPTFZkVGRuUjZibUYzWW1kV2VtbEdRbkpNVWtsdlVIWlVaekJhVmtwTFVVdzJaMEZSUmtKSlJrTkpXV2RIUVVGVFFsRnBiMGxDWjBGRloxVkphVU5CV1VGQ1NVaERTV05uUlVGRldV…"
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

YouTube Community Post Comments API

Look up community post comments on YouTube by specifying a post_id. Supports localized results and pagination using continuation_token.

Use cases

  • Retrieve audience feedback on channel community posts.
  • Monitor user engagement and discussions across community updates.
  • Extract comment threads for sentiment and topic analysis.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Parameters

NameTypeRequiredDescription
post_idstringNoPost ID, required for first request
need_formatbooleanNoWhether to format data, default true
country_codestringNoCountry code, default "US"
language_codestringNoLanguage code, default "zh-CN"
continuation_tokenstringNoNext page token

Notes

  • post_id is required for the first request.
  • Pass continuation_token to retrieve subsequent pages of comments.
  • Customize localization by setting country_code and language_code.

Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
YouTube每次呼叫 $0.001JSON
YouTube每次呼叫 $0.001JSON
YouTube每次呼叫 $0.001JSON
YouTube每次呼叫 $0.001JSON
YouTube每次呼叫 $0.001JSON
YouTube每次呼叫 $0.001JSON

指南:Best YouTube API in 2026: Pricing Compared

問題

常見問題

我要如何使用 YouTube Community Post Comments API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

YouTube Community Post Comments API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

YouTube Community Post Comments API 接受哪些參數?

不需要任何參數。 選填:continuation_token (string), country_code (string), language_code (string), need_format (boolean) 和 post_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

YouTube Community Post Comments API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。

我需要 YouTube 開發者帳號或 API 金鑰嗎?

不需要。YouTube Community Post Comments 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 YouTube API 存取權。