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

Douyin Challenge Search

API 文件
https://api.sandbase.ai/v1/api/douyin/search/challenge-search-v1

Returns Douyin challenge and hashtag search results matching a query. Supports filtering by date, content type, duration, and sorting method.

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

Playground

輸入
Backtrace for pagination, obtained from the last response
Content type filter
Pagination cursor (0 for first request)
Video duration filter
Search keyword, e.g., "food"
Publish time filter
Search ID for pagination
Sorting method
輸出範例
回應outputs · 13.5 KB · 318 行
[
  {
    "data": {
      "ad_info": {},
      "challenge_list": [
        {
          "challenge_info": {
            "author": {
              "accept_private_policy": false,
              "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_8f9c89c85921da89d4026411d3fd5864",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864~c5_168x168.webp?from=273881474",
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864~c5_168x168.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_300x300": {
                "height": 720,
                "uri": "300x300/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864~c5_300x300.webp?from=273881474",
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864~c5_300x300.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_larger": {
                "height": 720,
                "uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_medium": {
                "height": 720,
                "uri": "720x720/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_schema_list": null,
              "avatar_thumb": {
                "height": 720,
                "uri": "100x100/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_uri": "aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
              "aweme_control": {
                "can_comment": true,
                "can_forward": true,
                "can_share": true,
                "can_show_comment": true
              },
              "aweme_count": 0,
              "aweme_hotsoon_auth": 1,
              "awemehts_greet_info": "",
              "ban_user_functions": [],
              "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": 10,
              "contacts_status": 2,
              "contrail_list": null,
              "cover_url": [
                {
                  "height": 720,
                  "uri": "c8510002be9a3a61aad2",
                  "url_list": "… 1 items in the full response",
                  "width": 720
                }
              ],
              "create_time": 0,
              "creator_tag_list": null,
              "custom_verify": "",
              "cv_level": "",
              "…": "153 more fields in the full response"
            },
            "banner_list": null,
            "cha_attrs": null,
            "cha_name": "猫咪",
            "challenge_status": 1,
            "cid": "1562727459956738",
            "collect_stat": 0,
            "connect_music": [],
            "desc": "",
            "extra_attr": {
              "is_live": false
            },
            "from_ugc_hashtag_bank": "0",
            "hashtag_album_cell_camera_icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/kndeh7nuvkuhbnbd/topic/photo_picker_page/dark_shoot_icon.png",
            "hashtag_profile": "https://p26-sign.douyinpic.com/obj/image-cut-tos/8d0440060cb54c1f2b2ad49d967d3d3f.jpg?lk3s=fc8b4eca&x-expires=1787238000&x-signature=2FZxFhdGGWeY0PkXLdbLnh0dDLM%3D&from=4236988106",
            "insert_template_category_list": null,
            "is_challenge": 0,
            "is_commerce": false,
            "is_pgcshow": false,
            "publish_type": 1,
            "schema": "aweme://aweme/challenge/detail?cid=1562727459956738&track_params=%7B%22tag_detail_shoot_enter_from%22%3A%22hashtag_vertical_search%22%2C%22from_ugc_hashtag_bank%22%3A%220%22%7D&ugc_log_params=%7B%22search_enter_from%22%3A%22homepage_search_home%22%7D",
            "search_impr": {
              "entity_id": "1562727459956738"
            },
            "share_info": {
              "bool_persist": 0,
              "share_desc": "在抖音,记录美好生活",
              "share_desc_info": "我在抖音参与话题讨论#猫咪 ",
              "share_quote": "",
              "share_signature_desc": "",
              "share_signature_url": "",
              "share_title": "我在抖音参与话题讨论#猫咪 ",
              "share_title_myself": "",
              "share_title_other": "",
              "share_url": "https://www.iesdouyin.com/share/challenge/1562727459956738/?u_code=0&from_ssr=1",
              "share_weibo_desc": "我在抖音参与话题讨论#猫咪 "
            },
            "show_items": null,
            "sub_type": 0,
            "tag": 0,
            "type": 0,
            "user_count": 40589480,
            "view_count": 552093850463
          },
          "items": null,
          "position": null
        },
        {
          "challenge_info": {
            "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/aweme_default_avatar.png",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/aweme_default_avatar.png~c5_168x168.webp?from=273881474",
                  "https://p3.douyinpic.com/img/aweme-avatar/aweme_default_avatar.png~c5_168x168.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_300x300": {
                "height": 720,
                "uri": "300x300/aweme-avatar/aweme_default_avatar.png",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/aweme_default_avatar.png~c5_300x300.webp?from=273881474",
                  "https://p3.douyinpic.com/img/aweme-avatar/aweme_default_avatar.png~c5_300x300.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_larger": {
                "height": 720,
                "uri": "1080x1080/aweme-avatar/aweme_default_avatar.png",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/aweme_default_avatar.png.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/aweme_default_avatar.png.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_medium": {
                "height": 720,
                "uri": "720x720/aweme-avatar/aweme_default_avatar.png",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/aweme_default_avatar.png.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/aweme_default_avatar.png.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_schema_list": null,
              "avatar_thumb": {
                "height": 720,
                "uri": "100x100/aweme-avatar/aweme_default_avatar.png",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/aweme_default_avatar.png.webp?from=273881474",
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/aweme_default_avatar.png.jpeg?from=273881474"
                ],
                "width": 720
              },
              "avatar_uri": "aweme-avatar/aweme_default_avatar.png",
              "aweme_control": {
                "can_comment": true,
                "can_forward": true,
                "can_share": true,
                "can_show_comment": true
              },
              "aweme_count": 0,
              "aweme_hotsoon_auth": 1,
              "awemehts_greet_info": "",
              "ban_user_functions": [],
              "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": 10,
              "contacts_status": 1,
              "contrail_list": null,
              "cover_url": [
                {
                  "height": 720,
                  "uri": "c8510002be9a3a61aad2",
                  "url_list": "… 1 items in the full response",
                  "width": 720
                }
              ],
              "create_time": 0,
              "creator_tag_list": null,
              "custom_verify": "",
              "…": "152 more fields in the full response"
            },
            "banner_list": null,
            "cha_attrs": null,
            "cha_name": "貓咪",
            "challenge_status": 1,
            "cid": "1566936959441921",
            "collect_stat": 0,
            "connect_music": [],
            "desc": "",
            "extra_attr": {
              "is_live": false
            },
            "from_ugc_hashtag_bank": "0",
            "hashtag_album_cell_camera_icon": "https://lf3-static.bytednsdoc.com/obj/eden-cn/kndeh7nuvkuhbnbd/topic/photo_picker_page/dark_shoot_icon.png",
            "hashtag_profile": "https://p11-sign.douyinpic.com/obj/image-cut-tos/f925eb80ace0cc240455f1ff39a982a1.jpg?lk3s=fc8b4eca&x-expires=1787238000&x-signature=l%2BHk3OTFCuUab2c5YFV8Uf8%2Fi4c%3D&from=4236988106",
            "insert_template_category_list": null,
            "is_challenge": 0,
            "is_commerce": false,
            "is_pgcshow": false,
            "publish_type": 1,
            "schema": "aweme://aweme/challenge/detail?cid=1566936959441921&track_params=%7B%22tag_detail_shoot_enter_from%22%3A%22hashtag_vertical_search%22%2C%22from_ugc_hashtag_bank%22%3A%220%22%7D&ugc_log_params=%7B%22search_enter_from%22%3A%22homepage_search_home%22%7D",
            "search_impr": {
              "entity_id": "1566936959441921"
            },
            "share_info": {
              "bool_persist": 0,
              "share_desc": "在抖音,记录美好生活",
              "share_desc_info": "我在抖音参与话题讨论#貓咪 ",
              "share_quote": "",
              "share_signature_desc": "",
              "share_signature_url": "",
              "share_title": "我在抖音参与话题讨论#貓咪 ",
              "share_title_myself": "",
              "share_title_other": "",
              "share_url": "https://www.iesdouyin.com/share/challenge/1566936959441921/?u_code=0&from_ssr=1",
              "share_weibo_desc": "我在抖音参与话题讨论#貓咪 "
            },
            "show_items": null,
            "sub_type": 0,
            "tag": 0,
            "type": 0,
            "user_count": 53832,
            "view_count": 252427225
          },
          "items": null,
          "position": null
        },
        "… 17 more items in the full response"
      ],
      "cursor": 20,
      "extra": {
        "fatal_item_ids": [],
        "logid": "20260820174649EDFF92F4E1E8C8E46623",
        "now": 1787219209000,
        "scenes": null,
        "search_request_id": ""

範例

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

API README

Douyin Challenge Search API

Returns Douyin challenge (hashtag) search results that match a keyword. Each result holds the challenge name, its ID, and the creator's avatar images. You can filter by publish time, content type and duration, and you can set the sort order.

Use cases

  • Find Douyin hashtags that contain a topic word, such as 猫咪, and compare their name variants.
  • Collect challenge IDs (cid) to use in other hashtag lookups.
  • Page through all challenges for a keyword to build a hashtag list for a topic.
  • Check whether a challenge is active by reading challenge_status.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/challenge-search-v1" \
  -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 request)
filter_durationstringNoVideo duration filter
keywordstringNoSearch keyword, e.g., "food"
publish_timestringNoPublish time filter
search_idstringNoSearch ID for pagination
sort_typestringNoSorting method

Example response

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

{
  "ad_info": {},
  "challenge_list": [
    {
      "challenge_info": {
        "author": {
          "accept_private_policy": false,
          "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_8f9c89c85921da89d4026411d3fd5864",
            "url_list": [
              "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d40264…"
            ],
            "width": 720
          },
          "avatar_300x300": {
            "height": 720,
            "uri": "300x300/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d4026411d3fd5864",
            "url_list": [
              "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_8f9c89c85921da89d40264…"
            ],
            "width": 720
          }
        },
        "banner_list": null,
        "cha_attrs": null,
        "cha_name": "猫咪",
        "challenge_status": 1,
        "cid": "1562727459956738",
        "collect_stat": 0,
        "connect_music": []
      },
      "items": null,
      "position": null
    }
  ],
  "cursor": 20,
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261103153215538D3B1418CA743E39F6",
    "now": 1793691135000,
    "scenes": null,
    "search_request_id": ""
  },
  "global_doodle_config": {
    "keyword": "猫咪"
  },
  "has_more": 1,
  "is_match": false,
  "keyword_disabled": 0,
  "log_pb": {
    "impr_id": "20261103153215538D3B1418CA743E39F6",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "qc": "",
  "status_code": 0
}

Response fields

FieldMeaning
challenge_list[].challenge_info.cha_nameThe hashtag or challenge name, shown without the # sign.
challenge_list[].challenge_info.cidThe challenge ID as a string. Use it to identify the hashtag in other calls.
challenge_list[].challenge_info.challenge_statusStatus code of the challenge. The value 1 appears on all sample results.
challenge_list[].challenge_info.author.avatar_168x168 / challenge_list[].challenge_info.author.avatar_300x300Avatar images tied to the challenge author, at two sizes. Each has uri, url_list, width and height.
challenge_list[].challenge_info.author.avatar_168x168.url_listImage URLs for the avatar in WebP and JPEG formats.
challenge_list[].itemsVideo items under the challenge. It is null in the sample results.
cursorOffset to send as cursor for the next page. The sample shows 20.
has_moreShows whether more results exist. 1 means more pages are available.
extra.logid / log_pb.impr_idRequest log ID and impression ID for this response.
status_codeStatus code of the response. 0 appears on this successful call.

Notes

  • Send cursor as 0 on the first request. For the next page, send the cursor value from the response and keep has_more in mind to know when to stop.
  • The parameters backtrace and search_id are meant for pagination. In this response extra.search_request_id is an empty string.
  • To see details for a challenge you found, call Douyin Hashtag Details. To list its videos, call Douyin Hashtag Video List.

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 Challenge Search API?

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

Douyin Challenge Search API 的費用是多少?

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

Douyin Challenge Search API 接受哪些參數?

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

Douyin Challenge Search API 會回傳什麼?

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

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

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