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.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.03 每次调用JSON

指南:Best Douyin API in 2026: Pricing Compared

问题

常见问题

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

向 https://api.sandbase.ai/v1/api/douyin/web/video-comments 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Douyin Video Comments (Web) API 的价格是多少?

每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 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 key 吗?

不需要。Douyin Video Comments (Web) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。