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

Douyin Discussion Search

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/search/discuss-search

Returns discussion and question-and-answer search results from Douyin. Supports filtering by keyword, sort order, content type, post time, and video duration.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 8 tùy chọn

Phòng thử nghiệm

Đầu vào
Backtrace for pagination, obtained from the last response
Content type filter
Pagination cursor (0 for first page, use the last response cursor for subsequent pages)
Video duration filter
Search keyword, e.g., "study abroad"
Publish time filter
Search ID used for pagination
Sorting method
Đầu raVí dụ
Phản hồioutputs · 18.1 KB · 381 dòng
[
  {
    "data": {
      "business_config": {
        "ad_info": null,
        "backtrace": "QljQY1wnumX0q3TKVwL5sA==",
        "card_count": 13,
        "extra": {
          "comment_config": {
            "card_template": {
              "data_template": "{\"data_id\":\"1\",\"type\":999,\"data\":{\"card_type_name\":\"douyin_topic_comment_card\",\"raw_data\":\"$raw_data\",\"height\":0,\"waterfall_layout_single_schema\":\"aweme://lynxview/?channel=morphling_high&bundle=douyin_discuss%2Faweme_album_comment%2Ftemplate.js&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2F…",
              "raw_data_template": "{\"type\":350,\"is_newly_published\":1,\"doc_type\":345,\"sub_card_list\":null,\"tab\":null,\"show_tab\":null,\"aweme_list\":null,\"ecom_goods_list\":null,\"music_info_list\":null,\"comment_info\":{\"is_general_search\":false,\"comment_data\":\"$comment_data\"},\"ops\":null,\"qishui_music_list\":null,\"log_data\":\"$log_data\"}",
              "render_info_template": "{\"render_id\":\"1\",\"render_type\":1,\"render_extra\":{\"card_type_name\":\"douyin_topic_comment_card\",\"type\":999,\"height\":0,\"schema\":\"aweme://lynxview/?channel=morphling_high&bundle=douyin_discuss%2Faweme_album_comment%2Ftemplate.js&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-sourc…"
            },
            "comment_group_id": 6537523068217103000,
            "comment_service_id": 148,
            "disable_comment_bar": true,
            "enable_insert_newest_comment": false
          },
          "is_filter_search": 0,
          "req_start_ts": 1787219271627
        },
        "extra_fresh_struct": null,
        "feedback": null,
        "feelgood_msg": {},
        "filter_bar": null,
        "has_more": 1,
        "is_filter_search": 0,
        "keyword": "猫咪",
        "next_page": {
          "cursor": 15,
          "keyword": "猫咪",
          "poi_search_info": "",
          "search_id": "2026082017475150D0E1DFFA03DAF7A214",
          "search_request_id": "2026082017475150D0E1DFFA03DAF7A214"
        },
        "poi_search_info": "",
        "pre_loadmore_config": null,
        "search_background_config": {
          "search_header_background_config": {
            "background_color_config_dark": {
              "color": "#FF0E0F1A"
            },
            "background_color_config_light": {
              "color": "#FFF8F8F8"
            }
          },
          "search_result_background_config": {
            "background_color_config_dark": {
              "color": "#FF0E0F1A"
            },
            "background_color_config_light": {
              "color": "#FFF8F8F8"
            },
            "extra_height": 173,
            "hide_corner": 1,
            "result_background_blank_offset": 8
          }
        },
        "search_nil_info": null
      },
      "business_data": [
        {
          "card_id": "douyin.doctype_aweme_comment",
          "data": {
            "aweme_list": [
              {
                "activity_video_type": 0,
                "ai_follow_images": null,
                "ai_search_struct": {
                  "show_ai_entrance": true
                },
                "anchors": null,
                "authentication_token": "MS4wLjAAAAAAl11wvF6BjJav5T8pqBFzCky8RVDdIEhgd031kiOcT-mFFy2KOS1CRtJ1P9BkS1kqoaxXg2kcYvrcYVkQ9xefANrIKM1bB41VyFxj9GZ0Ebo0K6ca4XUp34bJAvq1EagpVJ4vmu09811m1OUWUQ2ZYipoWeoKzGcLcWRF1qCSUBhFI52umGnCmQHtwLFB8QiSGlojWmExH9P1XqaApAR12gClbUvEMzrLtUdq63d71nvRE4Zls2Qf72pyqNE07W3i",
                "author": {
                  "accept_private_policy": false,
                  "account_cert_info": "{}",
                  "account_region": "",
                  "ad_cover_url": null,
                  "allow_story_normal_like": false,
                  "apple_account": 0,
                  "authority_status": 0,
                  "avatar_168x168": "…",
                  "avatar_300x300": "…",
                  "avatar_larger": "…",
                  "avatar_medium": "…",
                  "avatar_schema_list": null,
                  "avatar_thumb": "…",
                  "avatar_uri": "aweme-avatar/tos-cn-avt-0015_e134e286acc2426f94df8f4e29e607d3",
                  "aweme_control": "…",
                  "aweme_count": 0,
                  "awemehts_greet_info": "",
                  "ban_user_functions": "… 0 items in the full response",
                  "batch_unfollow_contain_tabs": null,
                  "batch_unfollow_relation_desc": null,
                  "bind_phone": "",
                  "birthday": "",
                  "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_filter_status": 0,
                  "comment_setting": 0,
                  "commerce_user_level": 0,
                  "constellation": 0,
                  "contacts_status": 2,
                  "contrail_list": null,
                  "cover_url": "… 1 items in the full response",
                  "create_time": 0,
                  "creator_tag_list": null,
                  "custom_verify": "",
                  "cv_level": "",
                  "…": "156 more fields in the full response"
                },
                "author_mask_tag": 0,
                "author_user_id": 65584265695534,
                "aweme_control": {
                  "can_comment": true,
                  "can_forward": true,
                  "can_share": true,
                  "can_show_comment": true
                },
                "aweme_id": "7631044070555997158",
                "aweme_listen_struct": {
                  "trace_info": "{\"copyright_not_speech\":\"true\",\"copyright_reason\":\"not_intercept\",\"copyright_tag_hit\":\"0\",\"copyright_use_aed_default\":\"false\",\"copyright_use_tag_default\":\"false\",\"cp_ab\":\"true\",\"desc\":\"\",\"duration_over\":\"false\",\"hit_high_risk\":\"false\",\"media_type\":\"4\",\"reason\":\"hit_ab_0\",\"show\":\"false\"}"
                },
                "aweme_type": 0,
                "aweme_type_tags": "",
                "bodydance_score": 0,
                "book_bar": {},
                "boost_status": 0,
                "can_cache_to_local": true,
                "caption": "#家庭监控视角 #猫 #猫咪迷惑行为大赏 #真实事件 #顽皮猫猫挑战赛",
                "cf_assets_type": 0,
                "cf_recheck_ts": 0,
                "cha_list": [
                  "…"
                ],
                "challenge_position": null,
                "chapter_bar_color": null,
                "chapter_list": null,
                "city": "310000",
                "cmt_swt": false,
                "collect_stat": 0,
                "collection_corner_mark": 0,
                "comment_gid": 7631044070555997000,
                "comment_list": null,
                "comment_permission_info": {
                  "can_comment": true,
                  "comment_permission_status": 0,
                  "item_detail_entry": true,
                  "press_entry": true,
                  "toast_guide": false
                },
                "comment_words_recommend": {
                  "zero_comment": null
                },
                "commerce_config_data": null,
                "commerce_info": {
                  "ad_type": 0,
                  "is_ad": false
                },
                "common_left_top_labels": null,
                "component_info_v2": "{\"desc_lines_limit\":0,\"hide_marquee\":false}",
                "cover_labels": null,
                "create_scale_type": null,
                "create_time": 1776740903,
                "dcm_info": {
                  "dcm": "search.natural.aweme_comment.7631160052896334641.2026082017475150D0E1DFFA03DAF7A214",
                  "dcm_extra": "…"
                },
                "…": "160 more fields in the full response"
              }
            ],
            "card_id": "douyin.doctype_aweme_comment",
            "card_type_name": "doctype_aweme_comment",
            "filtered_in_video_detail": 0,
            "height": 0,
            "not_inject_aweme_list": false,
            "origin_type": 0,
            "prefetch_resource": {
              "dynamic_component": null,
              "prefetch_image": null
            },
            "raw_data": "{\"type\":344,\"doc_type\":316,\"deduplication_config\":{\"discuss_duplicate\":\"74730853522_我家7只猫也这样,一开始我以为是屎嗨,后来发现它们就是为了散臭,拉的越臭,它们越嫌弃,越是不埋,跑的越快,圈数越多,小猫咪也不想自己身上闻起来臭臭的[杀马特]_\"},\"sub_card_list\":null,\"log_data\":{\"entity_paths\":\"{\\\"entity_id\\\":\\\"7631160052896334641\\\",\\\"entity_name\\\":\\\"aweme_comment\\\",\\\"dcm_info\\…",
            "raw_data_struct": null,
            "schema": "aweme://lynxview/?channel=morphling_high&bundle=douyin_discuss%2Faweme_album_comment%2Ftemplate.js&group=morphling_high&dynamic=1&fe_enable_preserve_data=1&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsearch%2Ffe%2Fdouyin%2Fmorphling_high%2Fdouyin_discuss%2Faweme…",
            "show_feedback": false,
            "ui_info": {
              "is_in_background": 1
            },
            "waterfall_layout_single_schema": "aweme://lynxview/?channel=morphling_high&bundle=douyin_discuss%2Faweme_album_comment%2Ftemplate.js&group=morphling_high&dynamic=1&fe_enable_preserve_data=1&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsearch%2Ffe%2Fdouyin%2Fmorphling_high%2Fdouyin_discuss%2Faweme…"
          },
          "data_id": "0",
          "log": {
            "dcm": "search.natural.aweme_comment.7631160052896334641.2026082017475150D0E1DFFA03DAF7A214",
            "entity_paths": "{\"entity_id\":\"7631160052896334641\",\"entity_name\":\"aweme_comment\",\"dcm_info\":{\"dcm\":\"search.natural.aweme_comment.7631160052896334641.2026082017475150D0E1DFFA03DAF7A214\",\"dcm_extra\":{\"token_type\":\"aweme_comment\",\"search_result_id\":\"7631160052896334641\",\"is_aladdin\":\"0\",\"rank\":\"0\",\"topic\":\"猫咪\",\"search…"
          },
          "type": 999
        },
        {
          "card_id": "douyin.doctype_aweme_comment",
          "data": {
            "aweme_list": [
              {
                "activity_video_type": -1,
                "ai_follow_images": null,
                "ai_search_struct": {
                  "show_ai_entrance": true
                },
                "anchors": null,
                "authentication_token": "MS4wLjAAAAAAX96cS-hRUs8u1Vaj2TNOBImbRzolH0uwVW-r0T2HWNC7SjJ6juAPWJm2dXTKexW84WvhJFsDJ4wDMx750kymOe59zEZ_NrMxi7VuewNWDSkdQGHYXjZZ7D-SqfAStrfxueyCevDGlqvRZN3GpdDBEpwvGKIiBw2dyDBbeHUMqVsgZnXqJyRibE3NmKhImIj_58qYWvz7HbymXMki2cUeU4L3hFJJuaeIAL0HH4xZZ_obECXxK0QpxP6VXZAgop7l",
                "author": {
                  "accept_private_policy": false,
                  "account_cert_info": "{}",
                  "account_region": "",
                  "ad_cover_url": null,
                  "allow_story_normal_like": false,
                  "apple_account": 0,
                  "authority_status": 0,
                  "avatar_168x168": "…",
                  "avatar_300x300": "…",
                  "avatar_larger": "…",
                  "avatar_medium": "…",
                  "avatar_schema_list": null,
                  "avatar_thumb": "…",
                  "avatar_uri": "aweme-avatar/tos-cn-i-0813_oYEAHlfACCxAjg99S2IACeDAAEnrRhAujbb7DC",
                  "aweme_control": "…",
                  "aweme_count": 0,
                  "aweme_hotsoon_auth": 1,
                  "awemehts_greet_info": "",
                  "ban_user_functions": "… 0 items in the full response",
                  "batch_unfollow_contain_tabs": null,
                  "batch_unfollow_relation_desc": null,
                  "bind_phone": "",
                  "birthday": "1997-01-01",
                  "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_filter_status": 0,
                  "comment_setting": 0,
                  "commerce_user_level": 0,
                  "constellation": 7,
                  "contacts_status": 2,
                  "contrail_list": null,
                  "cover_url": "… 1 items in the full response",
                  "create_time": 0,
                  "creator_tag_list": null,
                  "custom_verify": "",
                  "…": "157 more fields in the full response"
                },
                "author_mask_tag": 0,
                "author_user_id": 94041259003,
                "aweme_control": {
                  "can_comment": true,
                  "can_forward": true,
                  "can_share": true,
                  "can_show_comment": true
                },
                "aweme_id": "7623011931641612659",
                "aweme_listen_struct": {
                  "trace_info": "{\"copyright_not_speech\":\"false\",\"copyright_reason\":\"has_listen_cp_new\",\"copyright_tag_hit\":\"\",\"copyright_use_aed_default\":\"false\",\"copyright_use_tag_default\":\"false\",\"cp_ab\":\"true\",\"desc\":\"\",\"duration_over\":\"true\",\"hit_high_risk\":\"false\",\"media_type\":\"4\",\"reason\":\"hit_ab_0\",\"show\":\"false\"}"
                },
                "aweme_type": 0,
                "aweme_type_tags": "",
                "bodydance_score": 0,
                "book_bar": {},
                "boost_status": 0,
                "can_cache_to_local": true,
                "caption": "我的老天奶,徒手爆蛋!#虐猫 #猫咪 #萌宠 #离谱 #蠢人比坏人更可怕",
                "cf_assets_type": 0,
                "cf_recheck_ts": 0,
                "cha_list": [
                  "…"
                ],
                "challenge_position": null,
                "chapter_bar_color": null,
                "chapter_list": null,
                "city": "440100",
                "cmt_swt": false,
                "collect_stat": 0,
                "collection_corner_mark": 0,
                "comment_gid": 7623011931641612000,
                "comment_list": null,
                "comment_permission_info": {
                  "can_comment": true,
                  "comment_permission_status": 0,
                  "item_detail_entry": true,
                  "press_entry": true,
                  "toast_guide": false
                },
                "comment_words_recommend": {
                  "zero_comment": null

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 Discussion Search API

Returns Douyin discussion and Q&A search results for a keyword. Each result is a card that holds a video (aweme_list) with its author. Send keyword, and add filters such as sort_type, content_type, publish_time or filter_duration to narrow the results.

Use cases

  • Collect the videos and questions people post about a topic such as a pet breed or a study abroad destination.
  • Find creators who often appear in discussion results for a keyword.
  • Page through discussion results for a keyword to build a dataset of community posts.
  • Match each result to its search session with log.search_id when you store results.

Request

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

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

Parameters

NameTypeRequiredDescription
backtracestringNoBacktrace for pagination, obtained from the last response
content_typestringNoContent type filter
cursorintegerNoPagination cursor (0 for first page, use the last response cursor for subsequent pages)
filter_durationstringNoVideo duration filter
keywordstringNoSearch keyword, e.g., "study abroad"
publish_timestringNoPublish time filter
search_idstringNoSearch ID used for pagination
sort_typestringNoSorting method

Example response

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

{
  "business_config": {
    "ad_info": null,
    "backtrace": "QljQY1wnumX0q3TKVwL5sA==",
    "card_count": 13,
    "extra": {
      "comment_config": {
        "card_template": {
          "data_template": "{\"data_id\":\"1\",\"type\":999,\"data\":{\"card_type_name\":\"douyin_topic_comment_card\",\"…",
          "raw_data_template": "{\"type\":350,\"is_newly_published\":1,\"doc_type\":345,\"sub_card_list\":null,\"tab\":nul…",
          "render_info_template": "{\"render_id\":\"1\",\"render_type\":1,\"render_extra\":{\"card_type_name\":\"douyin_topic_…"
        },
        "comment_group_id": 6537523068217103624,
        "comment_service_id": 148,
        "disable_comment_bar": true,
        "enable_insert_newest_comment": false
      },
      "is_filter_search": 0,
      "req_start_ts": 1793691135460
    },
    "extra_fresh_struct": null,
    "feedback": null,
    "feelgood_msg": {},
    "filter_bar": null,
    "has_more": 1,
    "is_filter_search": 0,
    "keyword": "猫咪",
    "next_page": {
      "cursor": 15,
      "keyword": "猫咪",
      "poi_search_info": "",
      "search_id": "202611031532158D0D959FB7060254C42E",
      "search_request_id": "202611031532158D0D959FB7060254C42E"
    }
  },
  "business_data": [
    {
      "card_id": "douyin.doctype_aweme_comment",
      "data": {
        "aweme_list": [
          {
            "activity_video_type": 0,
            "ai_follow_images": null,
            "ai_search_struct": {
              "show_ai_entrance": true
            },
            "anchors": null,
            "authentication_token": "MS4wLjAA…",
            "author": {
              "accept_private_policy": false,
              "account_cert_info": "{}",
              "account_region": "",
              "ad_cover_url": null,
              "allow_story_normal_like": false,
              "apple_account": 0,
              "authority_status": 0,
              "avatar_168x168": {
                "height": 720,
                "uri": "168x168/aweme-avatar/tos-cn-avt-0015_e134e286acc2426f94df8f4e29e607d3",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_e134e286acc2426f94df8f…"
                ],
                "width": 720
              }
            },
            "author_mask_tag": 0,
            "author_user_id": 65584265695534
          }
        ],
        "card_id": "douyin.doctype_aweme_comment",
        "card_type_name": "doctype_aweme_comment",
        "filtered_in_video_detail": 0,
        "height": 0,
        "not_inject_aweme_list": false,
        "origin_type": 0,
        "prefetch_resource": {
          "dynamic_component": null,
          "prefetch_image": null
        }
      },
      "data_id": "0",
      "log": {
        "dcm": "search.natural.aweme_comment.7631160052896334641.202611031532158D0D959FB7060254C…",
        "entity_paths": "{\"entity_id\":\"7631160052896334641\",\"entity_name\":\"aweme_comment\",\"dcm_info\":{\"dc…"
      },
      "type": 999
    }
  ],
  "extra": {
    "device_score": 0,
    "fatal_item_ids": [],
    "logid": "202611031532158D0D959FB7060254C42E",
    "now": 1793691135000,
    "scenes": null,
    "search_request_id": ""
  },
  "global_config": {
    "hidden_filter": false
  },
  "log": {
    "impr_id": "202611031532158D0D959FB7060254C42E",
    "pass_through": {
      "hotspot_params": {
        "gid": "",
        "new_source": "discuss_tab"
      }
    },
    "search_id": "202611031532158D0D959FB7060254C42E",
    "search_keyword": "猫咪",
    "topic": "猫咪"
  },
  "log_pb": {
    "impr_id": "202611031532158D0D959FB7060254C42E",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "status_code": 0,
  "time_cost": {
    "stream_inner": 520
  }
}

Response fields

FieldMeaning
business_data[]One result card per item. Each card holds a list of videos in data.aweme_list.
business_data[].data.aweme_list[]The videos in the card. Each item has video details and an author object.
business_data[].data.aweme_list[].authorThe creator of the video. It includes avatar images such as avatar_168x168 and avatar_300x300, each with a url_list.
business_data[].data.aweme_list[].author_user_idNumeric ID of the creator who posted the video.
business_data[].data.aweme_list[].authentication_tokenToken string attached to the video item.
business_data[].log.entity_pathsJSON string with the entity_id of the result, which matches the ID at the end of log.dcm.
business_config.has_moreShows 1 when more results are available.
business_config.next_page.cursorCursor value to send as cursor for the next page.
business_config.backtrace / business_config.next_page.search_idValues to send as backtrace and search_id for the next page.
log.search_keywordThe keyword that the search used.

Notes

  • Send cursor as 0 for the first page. For the next page, send business_config.next_page.cursor, business_config.backtrace and business_config.next_page.search_id.
  • Check business_config.has_more before you request another page.
  • The data of each card in business_data has card_type_name set to doctype_aweme_comment.
  • For regular video search, see Douyin Video Search or Douyin General Search.

Pricing

$0.01 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.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 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 Discussion Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/search/discuss-search 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 Discussion Search có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Douyin Discussion Search chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) và publish_time (string) và 2 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Discussion Search 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 Discussion Search 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.