Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Douyin Image-Text Search

Docs API
https://api.sandbase.ai/v1/api/douyin/search/image-search-v3

Returns image-text content search results from Douyin based on a target query keyword. Supports pagination using cursor and search session identifiers.

Prix
$0.01USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
Search keyword, e.g., "food"
Pagination cursor (0 for first request)
Search ID for pagination (use value from previous response)
SortieExemple
Réponseoutputs · 19.3 KB · 482 lignes
[
  {
    "data": {
      "business_config": {
        "ad_info": null,
        "card_count": 7,
        "extra_fresh_struct": null,
        "feedback": null,
        "feelgood_msg": {},
        "filter_bar": null,
        "general_search_config": {
          "double_column_layout_type": 3
        },
        "has_more": 1,
        "is_filter_search": 0,
        "keyword": "猫咪",
        "next_page": {
          "cursor": 8,
          "keyword": "猫咪",
          "origin_query": "猫咪",
          "poi_search_info": "",
          "search_id": "2026082017470700278CEC5ABB3C01F597",
          "search_request_id": "2026082017470700278CEC5ABB3C01F597"
        },
        "poi_search_info": "",
        "pre_loadmore_config": null,
        "search_nil_info": null
      },
      "business_data": [
        {
          "card_id": "douyin.doctype_aweme_image",
          "data": {
            "aweme_info": {
              "activity_video_type": 0,
              "ai_follow_images": null,
              "ai_search_struct": {
                "show_ai_entrance": true
              },
              "anchors": null,
              "authentication_token": "MS4wLjAAAAAAqzme1ApQzhu-2qTsjxqTnaFRfTM0vOYfQ8AiPUnodhZiHkddIaiO9u_Pi6D_0t-ALydUWyyLGrUr24DBeeU7vOCDu4KHXUPOniNblptQChelpR1hSoPkGtELMl4HtnNCumPJpd3plIxiMNg25hlb4Osq2KJeCjG8Y3-DJG3gFZEdh0LYH5_QOz8od8GhbSh4A-z1EN6e8G7HdL1u2xchWOhauwnqD7tF7NpH_CdaARJPpzyjQt96fX_CkDy3AP__",
              "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-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_300x300": {
                  "height": 720,
                  "uri": "300x300/aweme-avatar/tos-cn-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_larger": {
                  "height": 720,
                  "uri": "1080x1080/aweme-avatar/tos-cn-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_medium": {
                  "height": 720,
                  "uri": "720x720/aweme-avatar/tos-cn-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_schema_list": null,
                "avatar_thumb": {
                  "height": 720,
                  "uri": "100x100/aweme-avatar/tos-cn-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_uri": "aweme-avatar/tos-cn-i-0813_oUABLERXAI7OIHbBLyAOfQgGfAma3AqEgdesQ7",
                "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": "1974-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": 6,
                "contacts_status": 1,
                "contrail_list": null,
                "cover_url": [
                  "…"
                ],
                "create_time": 0,
                "creator_tag_list": null,
                "custom_verify": "",
                "…": "157 more fields in the full response"
              },
              "author_mask_tag": 0,
              "author_user_id": 93290347896,
              "aweme_control": {
                "can_comment": true,
                "can_forward": true,
                "can_share": true,
                "can_show_comment": true
              },
              "aweme_id": "7607294280423608676",
              "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\":\"false\",\"hit_high_risk\":\"false\",\"media_type\":\"2\",\"reason\":\"hit_ab_0\",\"show\":\"false\"}"
              },
              "aweme_type": 68,
              "aweme_type_tags": "",
              "bodydance_score": 0,
              "book_bar": {},
              "boost_status": 0,
              "can_cache_to_local": false,
              "caption": "",
              "category_da": 16,
              "cf_assets_type": 0,
              "cf_recheck_ts": 0,
              "cha_list": [
                {
                  "author": "…",
                  "banner_list": null,
                  "cha_attrs": null,
                  "cha_name": "萌宠日常",
                  "challenge_status": 1,
                  "cid": "1565460749083649",
                  "collect_stat": 0,
                  "connect_music": "… 0 items in the full response",
                  "desc": "",
                  "extra_attr": "…",
                  "from_ugc_hashtag_bank": "0",
                  "hashtag_profile": "image-cut-tos/c06e7212c38743f19e123f52986734fd.jpg",
                  "insert_template_category_list": null,
                  "is_challenge": 0,
                  "is_commerce": false,
                  "is_pgcshow": false,
                  "schema": "aweme://aweme/challenge/detail?cid=1565460749083649",
                  "search_impr": "…",
                  "share_info": "…",
                  "show_items": null,
                  "sub_type": 0,
                  "type": 0,
                  "user_count": 0,
                  "view_count": 0
                }
              ],
              "challenge_position": null,
              "chapter_bar_color": null,
              "chapter_list": null,
              "city": "420300",
              "clip_paging": {
                "direct": 0,
                "has_more": false,
                "source": "11"
              },
              "cmt_swt": false,
              "collect_stat": 0,
              "collection_corner_mark": 0,
              "comment_gid": 7607294280423608000,
              "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": [
                "f_h"
              ],
              "…": "165 more fields in the full response"
            },
            "aweme_list": null,
            "card_id": "douyin.doctype_aweme_image",
            "card_style_type": 1,
            "card_type": 1,
            "debug_data": {
              "filter_debug_info_list": null
            },
            "debug_diff_info": {},
            "doc_type": 303,
            "ecom_goods_list": null,
            "feedback": {
              "url": "aweme://lynxview_popup/?channel=morphling_normal&bundle=douyin_questionnaire%2Findex%2Ftemplate.js&group=morphling_normal&dynamic=3&enable_prefetch=1&surl=https%3A%2F%2Flf-sourcecdn-tos.bytegecko.com%2Fobj%2Fbyte-gurd-source%2F11618%2Fgecko%2Fresource%2Fmorphling_normal%2Fdouyin_questionnaire%2Finde…"
            },
            "log_data": {
              "dcm": "search.natural.aweme_image.7607294280423608676.2026082017470700278CEC5ABB3C01F597",
              "rank": "1",
              "search_id": "2026082017470700278CEC5ABB3C01F597"
            },
            "music_info_list": null,
            "ops": null,
            "provider_doc_id": 7607294280423608000,
            "provider_doc_id_str": "7607294280423608676",
            "qishui_music_list": null,
            "recommend_title": "",
            "send_back": "CgABaZKJ18aCkWQLAAIAAAALYXdlbWVfaW1hZ2UA",
            "shoot_position_list": null,
            "show_tab": null,
            "tab": null,
            "type": 1,
            "ui_info": {
              "is_waterfall_layout": 1,
              "quality_style_corner_type": 3
            }
          },
          "data_id": "0_7607294280423608676",
          "log": {
            "dcm": "search.natural.aweme_image.7607294280423608676.2026082017470700278CEC5ABB3C01F597",
            "rank": "1",
            "search_id": "2026082017470700278CEC5ABB3C01F597"
          },
          "type": 12
        },
        {
          "card_id": "douyin.doctype_aweme_image",
          "data": {
            "aweme_info": {
              "activity_video_type": 0,
              "ai_follow_images": null,
              "ai_search_struct": {
                "show_ai_entrance": true
              },
              "anchors": null,
              "authentication_token": "MS4wLjAAAAAA3-Qo2YyNZ3FTuzJ7SlzEQWz0-bKMB7Yw_jttnN5WuGbIq5MmGtERUu5Wh-wrf6QpUNmWMPHGqm8Ik5AbyothuZxq6v8bkRHvtgUG4TC9Q9EipKiUnsN-Meq0OPpeBtrb1cZiugC2kxFVAy1AGjsK91hnnpJh_sm6u91kqvhxbTPK1Wgh310EOEP2VgZK5VEG-ngBP5pfZJPWZSKMaYlux_awLUTOPpSEzUr_09OK5ipgx28awt3S9voGYQFdBxFm",
              "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_14822125bc6d317319a72361416608fd",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_300x300": {
                  "height": 720,
                  "uri": "300x300/aweme-avatar/tos-cn-avt-0015_14822125bc6d317319a72361416608fd",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_larger": {
                  "height": 720,
                  "uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_14822125bc6d317319a72361416608fd",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_medium": {
                  "height": 720,
                  "uri": "720x720/aweme-avatar/tos-cn-avt-0015_14822125bc6d317319a72361416608fd",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_schema_list": null,
                "avatar_thumb": {
                  "height": 720,
                  "uri": "100x100/aweme-avatar/tos-cn-avt-0015_14822125bc6d317319a72361416608fd",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_uri": "aweme-avatar/tos-cn-avt-0015_14822125bc6d317319a72361416608fd",
                "aweme_control": {
                  "can_comment": true,
                  "can_forward": true,
                  "can_share": true,
                  "can_show_comment": true

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'API

Douyin Image-Text Search API

Returns Douyin image-text post search results for a keyword. Each result is a card with the post data, the author, and a rank. The only required input is keyword.

Use cases

  • Collect image-text posts that match a topic such as 猫咪 to study what content ranks for it.
  • Build a list of author IDs and avatar images for accounts that post about a keyword.
  • Page through all results for a keyword with cursor and search_id to build a larger sample.
  • Store the data_id values to track which posts appear for a keyword over time.

Request

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

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword, e.g., "food"
cursorintegerNoPagination cursor (0 for first request)
search_idstringNoSearch ID for pagination (use value from previous response)

Example response

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

{
  "business_config": {
    "ad_info": null,
    "card_count": 7,
    "extra_fresh_struct": null,
    "feedback": null,
    "feelgood_msg": {},
    "filter_bar": null,
    "general_search_config": {
      "double_column_layout_type": 3
    },
    "has_more": 1,
    "is_filter_search": 0,
    "keyword": "猫咪",
    "next_page": {
      "cursor": 8,
      "keyword": "猫咪",
      "origin_query": "猫咪",
      "poi_search_info": "",
      "search_id": "202611031532178EA25612545EC9B86A9F",
      "search_request_id": "202611031532178EA25612545EC9B86A9F"
    },
    "poi_search_info": ""
  },
  "business_data": [
    {
      "card_id": "douyin.doctype_aweme_image",
      "data": {
        "aweme_info": {
          "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_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_db24175ed4fad5b8c3189ec252d41369",
              "url_list": [
                "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_db24175ed4fad5b8c3189e…"
              ],
              "width": 720
            },
            "avatar_300x300": {
              "height": 720,
              "uri": "300x300/aweme-avatar/tos-cn-avt-0015_db24175ed4fad5b8c3189ec252d41369",
              "url_list": [
                "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_db24175ed4fad5b8c3189e…"
              ],
              "width": 720
            }
          },
          "author_mask_tag": 0,
          "author_user_id": 4338007174810816
        },
        "aweme_list": null,
        "card_id": "douyin.doctype_aweme_image",
        "card_style_type": 1,
        "card_type": 1,
        "debug_data": {
          "filter_debug_info_list": null
        },
        "debug_diff_info": {},
        "doc_type": 303
      },
      "data_id": "0_7693825739632053071",
      "log": {
        "dcm": "search.natural.aweme_image.7693825739632053071.202611031532178EA25612545EC9B86A9…",
        "rank": "1",
        "search_id": "202611031532178EA25612545EC9B86A9F"
      },
      "type": 12
    }
  ],
  "extra": {
    "fatal_item_ids": [],
    "logid": "202611031532178EA25612545EC9B86A9F",
    "now": 1793691138000,
    "scenes": null,
    "search_request_id": "202611026F72F7399D796ABC"
  },
  "global_config": {},
  "log": {
    "impr_id": "202611031532178EA25612545EC9B86A9F",
    "search_id": "202611031532178EA25612545EC9B86A9F",
    "search_keyword": "猫咪"
  },
  "log_pb": {
    "impr_id": "202611031532178EA25612545EC9B86A9F"
  },
  "status_code": 0,
  "time_cost": {
    "stream_inner": 1094
  }
}

Response fields

FieldMeaning
business_data[]One search result card. The list holds the image-text posts returned for this page.
business_data[].data_idResult identifier. It starts with the zero-based position in the list, then an underscore, then a long numeric post ID.
business_data[].log.rankPosition of the result in the search, as a string. The first result is "1".
business_data[].data.aweme_info.author_user_idNumeric ID of the account that posted the content.
business_data[].data.aweme_info.author.avatar_168x168.url_list / business_data[].data.aweme_info.author.avatar_300x300.url_listAvatar image URLs for the author at 168x168 and 300x300. Each list has a webp and a jpeg link.
business_data[].data.aweme_info.authentication_tokenLong token string attached to the post. The response gives no description of what it is used for.
business_config.has_moreShows whether more results exist. 1 means you can request another page.
business_config.next_page.cursor / business_config.next_page.search_idValues to send in the next request to get the following page.
business_config.card_countNumber of cards the response reports for this page.

Notes

  • Set cursor to 0 and leave search_id empty on the first request.
  • For the next page, send business_config.next_page.cursor as cursor and business_config.next_page.search_id as search_id. Keep the same keyword.
  • Stop paging when business_config.has_more is not 1.
  • For a different result mix, try Douyin Image 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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Douyin$0.01 par appelJSON
Douyin$0.01 par appelJSON
Douyin$0.01 par appelJSON
Douyin$0.01 par appelJSON
Douyin$0.01 par appelJSON
Douyin$0.01 par appelJSON

Guides :Best Douyin API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Douyin Image-Text Search ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/search/image-search-v3 avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Douyin Image-Text Search ?

$0.01 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Douyin Image-Text Search accepte-t-elle ?

Obligatoire : keyword (string). Facultatif : cursor (integer) et search_id (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Douyin Image-Text Search ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Douyin ?

Non. Douyin Image-Text Search fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Douyin séparément.