Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin Video Comments (Web)

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Video id
Number
Cursor
Đầu raVí dụ
Phản hồioutputs · 13.9 KB · 391 dòng
[
  {
    "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,

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.03 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Video Comments (Web)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/web/video-comments với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Douyin Video Comments (Web) có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Douyin Video Comments (Web) chấp nhận những tham số nào?

Bắt buộc: aweme_id (string). Tùy chọn: count (integer) và cursor (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Video Comments (Web) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin Video Comments (Web) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.