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

Douyin Discussion Search

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.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
0 個必填 · 8 個選填

Playground

輸入
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
輸出範例
回應outputs · 18.1 KB · 381 行
[
  {
    "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

範例

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

API README

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.

探索更多

相關 APIs

所有 APIs
API價格回應
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.01JSON

指南:Best Douyin API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Douyin Discussion Search API?

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

Douyin Discussion Search API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Douyin Discussion Search API 接受哪些參數?

不需要任何參數。 選填:backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) 和 publish_time (string),以及另外 2 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Douyin Discussion Search API 會回傳什麼?

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

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

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