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

Douyin Video Comments (Web)

API 文件
https://api.sandbase.ai/v1/api/douyin/web/video-comments

Returns comments for a specific Douyin video using its video ID. Supports pagination controls via cursor and item count parameters.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Video id
Number
Cursor
輸出範例
回應outputs · 13.9 KB · 391 行
[
  {
    "data": {
      "comment_common_data": "MS4wLjAAAAAAJGJViUPh-NgnKI2q_YhLFZfkA3VmjoZYLcCS3Ir0F_92k6pLEy9SQhehjosT6HX776KYYRpxE7Ia08SvG72EkTnvJDnfAA2msnAuVuZhzvsw8Omdp8YGSd756JRKSUrr5U56AVOXE68myHVN8dt31oP7xV0M7qCnDeGwn1dIdOmCg1diNINToDIA1KED-tGzeK8Ey-2M_T36IdVgMdiNpRB6alyx9IVm85cE8a-JvbbubGKdBUPinQzk11fI9gmlautZs0Yf1PHH5ldVpMBQDTNmbxppzyz0jeMg2mOq50ltwnNIZ0q-V5JbVvdgvi4AcwBtwq1TNYFCwxbRs8c-pF-LB4JHpDvEpN1I5s46WzblyqSlsctgX-BZVTS5J5X2nO3LXW6Zdxe6HZzWgkIjFBtCLcc_JHh1Et9kKCJ2f-C6s8KtC2k4ziDeGcLl_Gu-tQA-emJGyjK7_8usI7CJKznhfaCVxEjzT-CpDGuPb3nhNQ_3BmPEtREf9iBe7cZC-YAcPPS_JNAXgeLuSEesDQHIkVS32Xbk_NkBqCqvrLU3nGNF9fM4CbGfm3eMkAvhKM9s9ky6xPOV…",
      "comment_config": {},
      "comment_insert_bars": null,
      "comments": [
        {
          "aweme_id": "7372484719365098803",
          "can_collect": false,
          "can_share": true,
          "cid": "7373719575131685669",
          "content_type": 1,
          "create_time": 1716827886,
          "decorated_emoji_info": null,
          "digg_count": 83,
          "ent_parachute_tip": 0,
          "enter_from": "",
          "image_list": null,
          "ip_label": "河北",
          "is_author_digged": false,
          "is_folded": false,
          "is_hot": true,
          "is_note_comment": 0,
          "is_user_tend_to_reply": false,
          "item_comment_total": 4083,
          "label_list": null,
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 28,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "stick_position": 0,
          "text": "宝宝 多久我都回 大胆吱[色]",
          "text_extra": [],
          "text_music_info": null,
          "user": {
            "ad_cover_url": null,
            "avatar_schema_list": null,
            "avatar_thumb": {
              "height": 720,
              "uri": "100x100/aweme-avatar/tos-cn-avt-0015_1079c789829034dcadf984ff33b712f3",
              "url_list": [
                "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_1079c789829034dcadf984ff33b712f3.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "aweme_control": {
              "can_comment": true,
              "can_forward": true,
              "can_share": true,
              "can_show_comment": true
            },
            "ban_user_functions": [],
            "batch_unfollow_contain_tabs": null,
            "batch_unfollow_relation_desc": null,
            "can_set_geofencing": null,
            "card_entries": null,
            "card_entries_not_display": null,
            "card_sort_priority": null,
            "cf_list": null,
            "cha_list": null,
            "close_friend_type": 0,
            "comment_setting": 0,
            "commerce_user_level": 0,
            "contrail_list": null,
            "cover_url": null,
            "creator_tag_list": null,
            "custom_verify": "",
            "data_label_list": null,
            "disable_image_comment_saved": 0,
            "display_info": null,
            "endorsement_info_list": null,
            "enterprise_verify_reason": "",
            "familiar_visitor_user": null,
            "follower_list_secondary_information_struct": null,
            "geofencing": null,
            "homepage_bottom_toast": null,
            "identity_labels": null,
            "im_role_ids": null,
            "interest_tags": null,
            "is_ad_fake": false,
            "is_star": false,
            "item_list": null,
            "link_item_list": null,
            "need_points": null,
            "new_story_cover": null,
            "nickname": "小狗烤红薯",
            "not_seen_item_id_list": null,
            "not_seen_item_id_list_v2": null,
            "offline_info_list": null,
            "personal_tag_list": null,
            "platform_sync_info": null,
            "private_relation_list": null,
            "profile_component_disabled": null,
            "profile_mob_params": null,
            "region": "CN",
            "relative_users": null,
            "sec_uid": "MS4wLjABAAAAM7pk0qpQ6keplSD7yE8so54GsqW8mTUSaOP9Rgc01EE",
            "secret": 0,
            "short_id": "35922554493",
            "signature_extra": null,
            "special_people_labels": null,
            "status": 1,
            "text_extra": null,
            "type_label": null,
            "uid": "576598986460267",
            "unique_id": "cxy060910aa",
            "user_canceled": false,
            "user_permissions": null,
            "user_tags": null,
            "verification_permission_ids": null,
            "white_cover_url": null
          },
          "user_buried": false,
          "user_digged": 0,
          "video_list": null
        },
        {
          "aweme_id": "7372484719365098803",
          "can_collect": false,
          "can_share": true,
          "cid": "7376208597615018789",
          "content_type": 1,
          "create_time": 1717407399,
          "decorated_emoji_info": null,
          "digg_count": 51,
          "ent_parachute_tip": 0,
          "enter_from": "homepage_hot",
          "image_list": null,
          "ip_label": "湖北",
          "is_author_digged": false,
          "is_folded": false,
          "is_hot": true,
          "is_note_comment": 0,
          "is_user_tend_to_reply": false,
          "item_comment_total": 4083,
          "label_list": null,
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 2,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "stick_position": 0,
          "text": "我不仅点赞还评论[色]",
          "text_extra": [],
          "text_music_info": null,
          "user": {
            "ad_cover_url": null,
            "avatar_schema_list": null,
            "avatar_thumb": {
              "height": 720,
              "uri": "100x100/aweme-avatar/tos-cn-avt-0015_b43c44462230474ee600fe237a5bd3c3",
              "url_list": [
                "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_b43c44462230474ee600fe237a5bd3c3.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "aweme_control": {
              "can_comment": true,
              "can_forward": true,
              "can_share": true,
              "can_show_comment": true
            },
            "ban_user_functions": null,
            "batch_unfollow_contain_tabs": null,
            "batch_unfollow_relation_desc": null,
            "can_set_geofencing": null,
            "card_entries": null,
            "card_entries_not_display": null,
            "card_sort_priority": null,
            "cf_list": null,
            "cha_list": null,
            "close_friend_type": 0,
            "comment_setting": 0,
            "commerce_user_level": 0,
            "contrail_list": null,
            "cover_url": null,
            "creator_tag_list": null,
            "custom_verify": "",
            "data_label_list": null,
            "disable_image_comment_saved": 0,
            "display_info": null,
            "endorsement_info_list": null,
            "enterprise_verify_reason": "",
            "familiar_visitor_user": null,
            "follower_list_secondary_information_struct": null,
            "geofencing": null,
            "homepage_bottom_toast": null,
            "identity_labels": null,
            "im_role_ids": null,
            "interest_tags": null,
            "is_ad_fake": false,
            "is_star": false,
            "item_list": null,
            "link_item_list": null,
            "need_points": null,
            "new_story_cover": null,
            "nickname": "li",
            "not_seen_item_id_list": null,
            "not_seen_item_id_list_v2": null,
            "offline_info_list": null,
            "personal_tag_list": null,
            "platform_sync_info": null,
            "private_relation_list": null,
            "profile_component_disabled": null,
            "profile_mob_params": null,
            "region": "CN",
            "relative_users": null,
            "sec_uid": "MS4wLjABAAAAc-a-YIbMpE9PF4JkjkwRG5FgHaU_zRXKLaA9g3vdPuusm5FHSLKflZM6E4oYw0XS",
            "secret": 0,
            "short_id": "3596725068",
            "signature_extra": null,
            "special_people_labels": null,
            "status": 1,
            "text_extra": null,
            "type_label": null,
            "uid": "1222255647137261",
            "unique_id": "Xuan10211210",
            "user_canceled": false,
            "user_permissions": null,
            "user_tags": null,
            "verification_permission_ids": null,
            "white_cover_url": null
          },
          "user_buried": false,
          "user_digged": 0,
          "video_list": null
        },
        {
          "aweme_id": "7372484719365098803",
          "can_collect": false,
          "can_share": true,
          "cid": "7376066723244147497",
          "content_type": 1,
          "create_time": 1717374371,
          "decorated_emoji_info": null,
          "digg_count": 55,
          "ent_parachute_tip": 0,
          "enter_from": "homepage_hot",
          "image_list": null,
          "ip_label": "安徽",
          "is_author_digged": false,
          "is_folded": false,
          "is_hot": true,
          "is_note_comment": 0,
          "is_user_tend_to_reply": false,
          "item_comment_total": 4083,
          "label_list": null,
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 5,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "stick_position": 0,
          "text": "宝宝赞了吱声 评论更好[色]",
          "text_extra": [],
          "text_music_info": null,
          "user": {
            "ad_cover_url": null,
            "avatar_schema_list": null,
            "avatar_thumb": {
              "height": 720,
              "uri": "100x100/aweme-avatar/tos-cn-avt-0015_87a26870a06afffec07be6124fec2bec",
              "url_list": [
                "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_87a26870a06afffec07be6124fec2bec.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "aweme_control": {
              "can_comment": true,
              "can_forward": true,
              "can_share": true,
              "can_show_comment": true
            },
            "ban_user_functions": null,
            "batch_unfollow_contain_tabs": null,
            "batch_unfollow_relation_desc": null,
            "can_set_geofencing": null,
            "card_entries": null,
            "card_entries_not_display": null,
            "card_sort_priority": null,
            "cf_list": null,
            "cha_list": null,
            "close_friend_type": 0,

範例

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

API README

Douyin Video Comments (Web) API

Returns a page of comments for one Douyin video. Each comment includes its text, post time, like count, location label and author info. The only required input is the video's aweme_id.

Use cases

  • Collect the comment text of a video to review audience reactions.
  • Find the most liked or hot comments on a post by reading digg_count and is_hot.
  • Group commenters by region using the ip_label value.
  • Export comment IDs to fetch the replies under a comment with a second call.

Request

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

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

Parameters

NameTypeRequiredDescription
aweme_idstringYesVideo id
countintegerNoNumber
cursorintegerNoCursor

Example response

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

{
  "comment_common_data": "MS4wLjAAAAAAyPjaKBZMlThAfoQKVHBP8mFqDbgerrYSqQ3sAlLKDOHul-CTJTHcEtNlhv0TjepZVbpT…",
  "comment_config": {},
  "comment_insert_bars": null,
  "comments": [
    {
      "aweme_id": "7372484719365098803",
      "can_collect": false,
      "can_share": true,
      "cid": "7625716139537204017",
      "content_type": 1,
      "create_time": 1775500406,
      "decorated_emoji_info": null,
      "digg_count": 0,
      "ent_parachute_tip": 0,
      "enter_from": "general_search_scan",
      "image_list": null,
      "ip_label": "广东"
    }
  ],
  "cursor": 20,
  "extra": {
    "fatal_item_ids": null,
    "now": 1793691157000,
    "scenes": null
  },
  "fast_response_comment": {
    "constant_response_words": [
      "赞"
    ],
    "timed_response_words": [
      "早上好"
    ]
  },
  "folded_comment_count": 0,
  "general_comment_config": {},
  "has_more": 1,
  "hotsoon_filtered_count": 0,
  "log_pb": {
    "impr_id": "20261103153237B3CE67C40AB352E0F687"
  }
}

Response fields

FieldMeaning
comments[].cidID of the comment. Use it to identify one comment.
comments[].textThe comment text. Mentions appear as @name in the text.
comments[].create_timeWhen the comment was posted, as a Unix timestamp in seconds.
comments[].digg_countNumber of likes on the comment.
comments[].reply_comment_totalNumber of replies under the comment.
comments[].ip_labelRegion label shown for the commenter, such as 广东.
comments[].is_hot / comments[].is_author_diggedis_hot marks a comment flagged as hot. is_author_digged shows whether the video author liked it.
comments[].image_listImages attached to the comment, in several sizes. It is null when the comment has no image.
comments[].user.avatar_thumb.url_listURLs of the commenter's avatar thumbnail.
total / has_more / cursortotal is the comment count of the video. has_more is 1 when more comments exist. cursor is the value to send for the next page.

Notes

  • Send aweme_id as a string. It is the long numeric video ID, for example 7372484719365098803.
  • To page through results, pass the cursor value from the response into the next request. count sets the number of comments per page and defaults to 20.
  • Each comment repeats item_comment_total and aweme_id for the video.
  • To read replies under a comment, use Douyin Video Comment Replies (Web).

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價格回應
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.03JSON

指南:Best Douyin API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Douyin Video Comments (Web) API?

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

Douyin Video Comments (Web) API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Douyin Video Comments (Web) API 接受哪些參數?

必要:aweme_id (string)。 選填:count (integer) 和 cursor (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Douyin Video Comments (Web) API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

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

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