Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Douyin Video Comments

API 문서
https://api.sandbase.ai/v1/api/douyin/app-v3/video-comments

Get the comments on a Douyin video: comment text, publish time, like count, reply count and commenter location, with cursor pagination.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 2개
하루 100회 무료 호출하루 첫 100회 호출은 무료입니다(조직별 공유) · UTC 00:00에 초기화됩니다. 이후에는 호출당 요금이 부과됩니다.

Playground

입력
Video id
Number Please keep the default, otherwise there will be BUG.
Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response.
출력예시
응답outputs · 14.8 KB · 364줄
[
  {
    "data": {
      "comment_common_data": "MS4wLjAAAAAAwrNmCYV5CrWQtUEyh4GLteOX6vKuBY7v2CpauO7_d4owTbfwoEFROqT8JVOwucjs1X0vr9yv5lhLk-BdrgW70u5kQqR2EFBS7PP30ONbDmJm230-gf06Vs1rVfZc6hsncBuwAaV8jM5ChTd6qKmvcMx_0xmHpMzb-0xgNxJnNnLrUNfGP6G9UpY-R3ppvM_E3rL3AJl9gIXRZUEZ3261XrdvgHPZPbxzGy-6YnsFgL-YZLvSs1TVZ6jFMbKE1tqys52WcOdqJ4xY7AOCyKHpMKdzDjec6U1TX_LycOzhpRlZGFu5PtMavHdSEvGaaL_F9uDdEGfzOLMkk6ZhF44HA65fAsy-E4jDB0RFFuzm9G4HEyj7wR5LWzolIJwpgKHW7AJW19xl-a14IwmPLkhzzZ32E6_-NKO8luojGGhacM6dnEl9I_0nwR7HC43yvXzhVZ00aTkO-hvP2AyGGsDBnn7IN2vYzQbf4JItJTAe_XfowjEhtYunUEFNhniSEHwM4gZdSdAzlL___tdmyLdLUMmWAPbL0ek54_MH50kDTOiduTFQJ3ExUtH26Hoomcym_C6IOg1ofIAm…",
      "comment_config": {},
      "comment_insert_bars": null,
      "comments": [
        {
          "aweme_id": "7448118827402972455",
          "can_collect": false,
          "can_share": true,
          "cid": "7448331808838320959",
          "comment_token": "MS4wLjAAAAAAKVrL3xPOJsZnpHiPIwjcbgei3lmBJxKD-dyHr0BYvry03k9scRFpJuMkAe1dbbOcXLQ1rTPRezFR1WU62cvza3cSKPWdsLtReBZ9jgoj59C0zTgUsxs9dBIozsiiM8VLw8ChmS_pUp9Pm0CidDx5ot9BQbzdjWL-wcIg9_3rtSL9jq7OdVYQzhzh0YQVJp1mWWk5hacU8qa0pbRS_05nX3hmAhjLYK3YQSNjRlrl4JQ",
          "content_type": 1,
          "create_time": 1734210865,
          "decorated_emoji_info": null,
          "digg_count": 69,
          "ent_parachute_tip": 0,
          "enter_from": "recommend",
          "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": 57,
          "label_list": null,
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 13,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "text": "这样讲基础上是可以的,但事实上这样非常容易形成误导。第一,线程也并不是在一个时间片中完成的。换句话来说,即便分成线程,系统时间片依然会轮询。但正常的系统中与RTOS系统中两者表现并不相同。只说windows或linux下的话,每个线程依然是由时间片控制,所以完成的时间并不完全基于任务量的多少。还要考虑任务优先级等各种因素,这个必须要提示的内容。第二,每个线程重入并不固定到固定的核心(时间片用完线程进入阻塞状态,然后再下获得时间片不一定被分配到上次工作的CPU核心上。第三,不要用代码来演示,即便用代码来演示也必须说明,分配线程并非是代码分配,程序只负责将代码打包,等待系统的调用。也就是分配线程根本就是系统在起做用。但问题是,代码中开辟了100个线程,其实就是开辟了100个线程,甚至你可以认为它们是同时运行的。因为开辟线程其实只是一个包,线程开辟后状态是阻塞而已。所以程序为了防止开辟过程线程(线程数多少与内存有关),一般可以考虑使用线程模式,通过信号量来控制线程的开辟。意思是在一个8核心的一般会开辟16个线程,然后逐个完成。完后一个后再开线程,而不是说并发任务可以随便开线程。",
          "text_extra": [],
          "text_music_info": null,
          "user": {
            "ad_cover_url": null,
            "avatar_schema_list": null,
            "avatar_thumb": {
              "height": 720,
              "uri": "100x100/aweme-avatar/aweme_default_avatar.png",
              "url_list": [
                "https://p3.douyinpic.com/aweme-avatar/aweme_default_avatar.png~tplv-dy-shrink-adapter:96:96.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/aweme_default_avatar.png.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/aweme_default_avatar.png.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "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,
            "commerce_user_level": 0,
            "contrail_list": null,
            "cover_url": null,
            "creator_tag_list": null,
            "data_label_list": null,
            "display_info": null,
            "endorsement_info_list": null,
            "familiar_visitor_user": null,
            "follower_list_secondary_information_struct": null,
            "followers_detail": null,
            "geofencing": null,
            "homepage_bottom_toast": null,
            "identity_labels": null,
            "im_role_ids": null,
            "interest_tags": null,
            "is_ad_fake": false,
            "item_list": null,
            "link_item_list": null,
            "need_points": null,
            "new_story_cover": null,
            "nickname": "用户3439801425229",
            "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": "MS4wLjABAAAAFbgfAIlvflslRNaNQRSEyY4rX_hNvam2XXG7V0FDyjI",
            "secret": 0,
            "short_id": "1997307764",
            "signature_extra": null,
            "special_people_labels": null,
            "text_extra": null,
            "type_label": null,
            "uid": "109201297107",
            "unique_id": "",
            "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": "7448118827402972455",
          "can_collect": false,
          "can_share": true,
          "cid": "7467763338786210614",
          "comment_token": "MS4wLjAAAAAAQ3L-agnn8ZRFm3JLv526hlyTEglbxGkTbJIuvfm9dr83d9WEJ6COkdWUEv3d8kNbs6tP38cr8O4W4PGyfUpxXk6VTP5CumzWUCy5sSGgHq2tNBo9PMOMk0j0sZMUVl9o04yd6ut8RbtiuLHf1KYnFx7qKbVJAWi_4J_73hvo-v84BYkBPdabnGAvj29WFwY28w2zfXOk2yqrB6hfUFvzH21b4dOXGu2HdbhRVDq6Bc0",
          "content_type": 1,
          "create_time": 1738724150,
          "decorated_emoji_info": null,
          "digg_count": 1,
          "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": 57,
          "label_list": null,
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 3,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "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-i-0813c001_okCeCAmyAA9fgIBVf8hZOEAfAeAefdrfQiAA79i",
              "url_list": [
                "https://p3.douyinpic.com/aweme-avatar/tos-cn-i-0813c001_okCeCAmyAA9fgIBVf8hZOEAfAeAefdrfQiAA79i~tplv-dy-shrink-adapter:96:96.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_okCeCAmyAA9fgIBVf8hZOEAfAeAefdrfQiAA79i.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_okCeCAmyAA9fgIBVf8hZOEAfAeAefdrfQiAA79i.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "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,
            "commerce_user_level": 0,
            "contrail_list": null,
            "cover_url": null,
            "creator_tag_list": null,
            "data_label_list": null,
            "display_info": null,
            "endorsement_info_list": null,
            "familiar_visitor_user": null,
            "follower_list_secondary_information_struct": null,
            "followers_detail": null,
            "geofencing": null,
            "homepage_bottom_toast": null,
            "identity_labels": null,
            "im_role_ids": null,
            "interest_tags": null,
            "is_ad_fake": 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": "MS4wLjABAAAAzlfAohi5AEIhxM_IVJ4AUG-m7F9iFh5WhXjyqIjW1Jk",
            "secret": 0,
            "short_id": "1701148208",
            "signature_extra": null,
            "special_people_labels": null,
            "text_extra": null,
            "type_label": null,
            "uid": "106083842527",
            "unique_id": "",
            "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": "7448118827402972455",
          "can_collect": false,
          "can_share": true,
          "cid": "7448483521444283146",
          "comment_token": "MS4wLjAAAAAA_ZCeobIAgLiDge3D1lldk4vc7xNPn2Ddexa-C1MJN4yzTmwVt-MYlhUX0RuFrgbwDw1fn8YT2AAvXvM9IduiuyZUTfziYRrKUbFXgBZTa-m1CEI7YHO4qIc13QjEviQoUbKfKWm4Xt5M1WopFE6vWQe5twZOMEMf0ZOZnxI_rgMN6Cqu_0-1P_GCkWp4YdUUHl1P1zWE35MF_U2yotwbvwbsi28ur-lZSZMsMKtMk_g",
          "content_type": 1,
          "create_time": 1734235217,
          "decorated_emoji_info": null,
          "digg_count": 2,
          "ent_parachute_tip": 0,
          "enter_from": "homepage_hot",
          "image_list": null,
          "ip_label": "广东",
          "is_author_digged": true,
          "is_folded": false,
          "is_hot": true,
          "is_note_comment": 0,
          "is_user_tend_to_reply": false,
          "item_comment_total": 57,
          "label_list": [
            {
              "text": "作者赞过",
              "type": 20
            }
          ],
          "label_text": "",
          "label_type": -1,
          "level": 1,
          "merge_comment_label": null,
          "reply_comment": null,
          "reply_comment_total": 3,
          "reply_id": "0",
          "reply_to_reply_id": "0",
          "sort_tags": "{\"top_list\":1}",
          "status": 1,
          "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_6e7693e097d14e61ab2ff8ac5bcd1162",
              "url_list": [
                "https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_6e7693e097d14e61ab2ff8ac5bcd1162~tplv-dy-shrink-adapter:96:96.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_6e7693e097d14e61ab2ff8ac5bcd1162.heic?from=2064092626",
                "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_6e7693e097d14e61ab2ff8ac5bcd1162.jpeg?from=2064092626"
              ],
              "width": 720
            },
            "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,
            "commerce_user_level": 0,
            "contrail_list": null,
            "cover_url": null,
            "creator_tag_list": null,
            "data_label_list": null,
            "display_info": null,
            "endorsement_info_list": null,
            "familiar_visitor_user": null,
            "follower_list_secondary_information_struct": null,
            "followers_detail": null,
            "geofencing": null,
            "homepage_bottom_toast": null,
            "identity_labels": null,
            "im_role_ids": null,
            "interest_tags": null,
            "is_ad_fake": false,
            "item_list": null,
            "link_item_list": null,
            "need_points": null,
            "new_story_cover": null,
            "nickname": "露娜超爱玩",
            "not_seen_item_id_list": null,

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Douyin Video Comments API

Returns the first-level comments on a Douyin video, with text, publish time, like count, reply count and the commenter's IP location. It needs the video ID in aweme_id. Results come in pages with a cursor.

Use cases

  • Read what viewers say about a product or campaign video and score the sentiment.
  • Collect the questions viewers ask under a video to build an FAQ.
  • Compare commenter regions using ip_label to see where an audience is based.
  • Find comments with replies and call the replies API to read the threads.

Request

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

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

Parameters

NameTypeRequiredDescription
aweme_idstringYesVideo id
countintegerNoNumber Please keep the default, otherwise there will be BUG.
cursorintegerNoCursor, used for paging, the first page is 0, the second page is the cursor value in the first response.

Example response

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

{
  "comment_common_data": "MS4wLjAAAAAAK94fZypbcSoKKAxk0SidLyyXg0ilf_OVZdvKpflgNmdnEVcwf9dcRv6n68LYu5sDbbke…",
  "comment_config": {},
  "comment_insert_bars": null,
  "comments": [
    {
      "aweme_id": "7565738211130035491",
      "can_collect": false,
      "cid": "7703557083483915008",
      "comment_audio": {
        "content": "{\"status\":10,\"message\":\"success\",\"version\":3,\"video_id\":\"v03423g10003dbk8feq7dld…",
        "duration": 9571,
        "timbre_text": "识别到萌音",
        "timbre_type": "萌音",
        "vid": "v03423g10003dbk8feq7dldde24v8c80",
        "wave": "0.25079367,0.7111111,0.7619048,0.4936508,0.6333333,0.3857143,0.43650794,0.628571…"
      },
      "comment_token": "MS4wLjAA…",
      "content_type": 8,
      "create_time": 1793624155,
      "decorated_emoji_info": null,
      "digg_count": 0,
      "ent_parachute_tip": 0,
      "enter_from": "general_search",
      "image_list": null
    }
  ],
  "cursor": 20,
  "extra": {
    "fatal_item_ids": null,
    "now": 1793691105000,
    "scenes": null
  },
  "fast_response_comment": {
    "constant_response_words": [
      "赞"
    ],
    "timed_response_words": [
      "早上好"
    ]
  },
  "folded_comment_count": 0,
  "general_comment_config": {
    "survey_info": {
      "stay_duration": 10000,
      "survey_detail": "{\"icon_url_dark\":\"https://lf3-static.bytednsdoc.com/obj/eden-cn/wpozuvpahsly_lm_…",
      "survey_id": "1789370631",
      "survey_index": 0,
      "survey_lynx_uri": "aweme://lynxview/?surl=https%3A%2F%2Flf-dy-sourcecdn-tos.bytegecko.com%2Fobj%2Fb…",
      "survey_type": 2
    }
  },
  "has_more": 1,
  "hotsoon_filtered_count": 0,
  "log_pb": {
    "impr_id": "20261103153145C624057C7A1A9E123BFA"
  }
}

Response fields

FieldMeaning
totalTotal number of comments on the video (5092 in this response).
has_moreShows whether another page exists. 1 means more comments are available.
cursorValue to send as cursor to get the next page. It was 20 after the first page.
comments[].cidID of the comment.
comments[].textComment text. It is an empty string for voice comments.
comments[].create_timePublish time of the comment as a Unix timestamp in seconds.
comments[].digg_countNumber of likes on the comment.
comments[].reply_comment_totalNumber of replies to the comment.
comments[].ip_labelProvince-level location label of the commenter, such as 河南.
comments[].comment_audio.timbre_type / comments[].comment_audio.durationPresent on voice comments. They give the voice style label and the audio length, with duration as a number in the response.

Notes

  • Get aweme_id from a video list or detail API, for example Douyin Video Detail.
  • Send cursor as 0 for the first page. For the next page, pass the cursor value from the previous response.
  • Keep count at the default 20. The parameter notes say other values can cause bugs.
  • To read replies under a comment, call Douyin Video Comment Replies (App V3).

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON

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

질문

FAQ

Douyin Video Comments API를 어떻게 사용하나요?

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

Douyin Video Comments API 비용은 얼마인가요?

호출당 $0.001. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.

Douyin Video Comments API는 어떤 매개변수를 받나요?

필수: aweme_id (string). 선택: count (integer) 및 cursor (integer). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Douyin Video Comments API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Douyin 개발자 계정이나 API 키가 필요한가요?

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