Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Douyin Image Search

Документация API
https://api.sandbase.ai/v1/api/douyin/search/image-search

Returns image-based search results from Douyin matching a search keyword. Supports sorting, content filtering, post date filters, and pagination parameters.

Цена
$0.01USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 8 необязательных

Песочница

Ввод
Backtrace for pagination, obtained from the last response
Content type (Fixed to 2 for images)
Pagination cursor (0 for first request)
Video duration filter
Search keyword, e.g., "cat"
Publish time filter
Search ID for pagination
Sorting method
ВыходПример
Ответoutputs · 18.1 KB · 472 строк
[
  {
    "data": {
      "business_config": {
        "ad_info": null,
        "card_count": 20,
        "extra": {
          "is_filter_search": 0,
          "req_start_ts": 1787219240791
        },
        "extra_fresh_struct": null,
        "feedback": null,
        "feelgood_msg": {},
        "filter_bar": null,
        "has_more": 1,
        "is_filter_search": 0,
        "keyword": "猫咪",
        "next_page": {
          "cursor": 20,
          "keyword": "猫咪",
          "poi_search_info": "",
          "search_id": "202608201747200B846B2021BDE7CD8457",
          "search_request_id": "202608201747200B846B2021BDE7CD8457"
        },
        "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": "MS4wLjAAAAAAJtYoCG6ybvaKpznD4H6EwV9cIPORWuU7mImpqSa54S80k2oyxyPkj2M0UyiMCKWbJqCKAZI65uhWpLtIL3MxW-w9dM3BdV7tU0HOQ0RIqVTY23Ei7E9H5oKjxXib1fahD6ZrNQSnVUahJnwSI9_8By04skTkNzR3kiI9ANitbU6zqbaT8EUzJzWvJgrAdWL3pOhkgMVBpqUhg_-6YhbwDXvXhOZvqxQSiUnwd0O57mHDzP0y5e95-OJBl5CRJnmo",
              "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_63e9f09ff719c0984720887008222c6d",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_300x300": {
                  "height": 720,
                  "uri": "300x300/aweme-avatar/tos-cn-avt-0015_63e9f09ff719c0984720887008222c6d",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_larger": {
                  "height": 720,
                  "uri": "1080x1080/aweme-avatar/tos-cn-avt-0015_63e9f09ff719c0984720887008222c6d",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_medium": {
                  "height": 720,
                  "uri": "720x720/aweme-avatar/tos-cn-avt-0015_63e9f09ff719c0984720887008222c6d",
                  "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_63e9f09ff719c0984720887008222c6d",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_uri": "aweme-avatar/tos-cn-avt-0015_63e9f09ff719c0984720887008222c6d",
                "aweme_control": {
                  "can_comment": true,
                  "can_forward": true,
                  "can_share": true,
                  "can_show_comment": true
                },
                "aweme_count": 0,
                "aweme_hotsoon_auth": 1,
                "aweme_hotsoon_auth_relation": 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": 7,
                "contacts_status": 2,
                "contrail_list": null,
                "cover_url": [
                  "…"
                ],
                "create_time": 0,
                "creator_tag_list": null,
                "…": "158 more fields in the full response"
              },
              "author_mask_tag": 0,
              "author_user_id": 7474251619262285000,
              "aweme_control": {
                "can_comment": true,
                "can_forward": true,
                "can_share": true,
                "can_show_comment": true
              },
              "aweme_id": "7676016062639382196",
              "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\":\"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": "",
              "cf_assets_type": 0,
              "cf_recheck_ts": 0,
              "cha_list": [
                {
                  "author": "…",
                  "banner_list": null,
                  "cha_attrs": null,
                  "cha_name": "橘猫户外",
                  "challenge_status": 1,
                  "cid": "7564031851375888424",
                  "collect_stat": 0,
                  "connect_music": "… 0 items in the full response",
                  "desc": "",
                  "extra_attr": "…",
                  "from_ugc_hashtag_bank": "0",
                  "hashtag_profile": "",
                  "insert_template_category_list": null,
                  "is_challenge": 0,
                  "is_commerce": false,
                  "is_pgcshow": false,
                  "schema": "aweme://aweme/challenge/detail?cid=7564031851375888424",
                  "search_impr": "…",
                  "share_info": "…",
                  "show_items": null,
                  "sub_type": 0,
                  "type": 1,
                  "user_count": 0,
                  "view_count": 0
                }
              ],
              "challenge_position": null,
              "chapter_bar_color": null,
              "chapter_list": null,
              "city": "330100",
              "cmt_swt": false,
              "collect_stat": 0,
              "collection_corner_mark": 0,
              "comment_gid": 7676016062639383000,
              "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": 1787211761,
              "create_time_config": {
                "font_color": "TextTertiary",
                "position": 2
              },
              "…": "164 more fields in the full response"
            },
            "aweme_list": null,
            "card_id": "douyin.doctype_aweme_image",
            "card_info": {
              "search_autoplay_business": "303_dy"
            },
            "card_style_type": 1,
            "card_type": 1,
            "debug_data": {
              "filter_debug_info_list": null
            },
            "debug_diff_info": {},
            "doc_type": 303,
            "ecom_goods_list": null,
            "log_data": {
              "search_id": "202608201747200B846B2021BDE7CD8457"
            },
            "music_info_list": null,
            "ops": null,
            "provider_doc_id": 7676016062639383000,
            "provider_doc_id_str": "7676016062639382196",
            "qishui_music_list": null,
            "recommend_title": "",
            "send_back": "",
            "shoot_position_list": null,
            "show_tab": null,
            "sub_card_list": null,
            "tab": null,
            "type": 1
          },
          "data_id": "0",
          "log": {
            "search_id": "202608201747200B846B2021BDE7CD8457"
          },
          "type": 11
        },
        {
          "card_id": "douyin.doctype_aweme_image",
          "data": {
            "aweme_info": {
              "activity_video_type": -1,
              "ai_follow_images": null,
              "ai_search_struct": {
                "show_ai_entrance": true
              },
              "anchors": null,
              "authentication_token": "MS4wLjAAAAAA_4Cv3hobsj4dbSTslOm0WXFOZ-rRbla1_lWc4QaLVijlthJVag2KBGrl_1SRmuYLVJ92h2TSJ6Jp3Xcn-Tx4buP7Xa-ElXFBHHpagnhzmuWXA-fzfnL6NqOjvbHLQXemPbgy4s4OMK-FkTBLv66RjN2N8nNFFeWxMqMFs5QASNu7qfdCmXUj1TM8z3N2mzeXDpyZ7cearMpQftOyTVAUta8_u201kmevzgCxu25MwEb7ErNwrpKuVNLQjz6ABYlH",
              "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-i-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_300x300": {
                  "height": 720,
                  "uri": "300x300/aweme-avatar/tos-cn-i-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_larger": {
                  "height": 720,
                  "uri": "1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_medium": {
                  "height": 720,
                  "uri": "720x720/aweme-avatar/tos-cn-i-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                  "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-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_uri": "aweme-avatar/tos-cn-i-0813c000-ce_oQepyG2CDeGVfruIx7Lz9IAPTYAjQAKaeHAcXA",
                "aweme_control": {
                  "can_comment": true,
                  "can_forward": true,
                  "can_share": true,
                  "can_show_comment": true
                },
                "aweme_count": 0,
                "aweme_hotsoon_auth": 1,
                "aweme_hotsoon_auth_relation": 1,
                "awemehts_greet_info": "",
                "ban_user_functions": [],
                "batch_unfollow_contain_tabs": null,
                "batch_unfollow_relation_desc": null,
                "bind_phone": "",
                "birthday": "",
                "can_set_geofencing": null,

Примеры

Выберите пример, чтобы загрузить его входные данные и результат в playground.

README по API

Douyin Image Search API

Returns Douyin image post search results for a keyword. The main input is keyword. You can also pass sort, publish time, and pagination values.

Use cases

  • Collect image posts that match a topic keyword, such as 猫咪, for content research.
  • Find the accounts that post image content for a keyword through the author details on each result.
  • Page through a keyword's image results with the search_id and cursor values from the previous response.
  • Narrow results to recent posts with the publish_time filter.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/image-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 (Fixed to 2 for images)
cursorintegerNoPagination cursor (0 for first request)
filter_durationstringNoVideo duration filter
keywordstringNoSearch keyword, e.g., "cat"
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.

{
  "business_config": {
    "ad_info": null,
    "card_count": 18,
    "extra": {
      "is_filter_search": 0,
      "req_start_ts": 1793691138079
    },
    "extra_fresh_struct": null,
    "feedback": null,
    "feelgood_msg": {},
    "filter_bar": null,
    "has_more": 1,
    "is_filter_search": 0,
    "keyword": "猫咪",
    "next_page": {
      "cursor": 20,
      "keyword": "猫咪",
      "poi_search_info": "",
      "search_id": "20261103153218ED49D03DEF6B274EE5BA",
      "search_request_id": "20261103153218ED49D03DEF6B274EE5BA"
    },
    "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_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_242e4f83969897e3a72d5f07692df051",
              "url_list": [
                "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_242e4f83969897e3a72d5f…"
              ],
              "width": 720
            }
          },
          "author_mask_tag": 0,
          "author_user_id": 99642755744
        },
        "aweme_list": null,
        "card_id": "douyin.doctype_aweme_image",
        "card_info": {
          "search_autoplay_business": "303_dy"
        },
        "card_style_type": 1,
        "card_type": 1,
        "debug_data": {
          "filter_debug_info_list": null
        },
        "debug_diff_info": {}
      },
      "data_id": "0",
      "log": {
        "search_id": "20261103153218ED49D03DEF6B274EE5BA"
      },
      "type": 11
    }
  ],
  "extra": {
    "device_score": 0,
    "fatal_item_ids": [],
    "logid": "20261103153218ED49D03DEF6B274EE5BA",
    "now": 1793691139000,
    "scenes": null,
    "search_request_id": ""
  },
  "global_config": {
    "hidden_filter": false
  },
  "log": {
    "impr_id": "20261103153218ED49D03DEF6B274EE5BA",
    "search_id": "20261103153218ED49D03DEF6B274EE5BA",
    "search_keyword": "猫咪"
  },
  "log_pb": {
    "impr_id": "20261103153218ED49D03DEF6B274EE5BA",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "status_code": 0,
  "time_cost": {
    "stream_inner": 932
  }
}

Response fields

FieldMeaning
business_data[]One search result card. Each card holds one image post.
business_data[].data.aweme_infoDetails of the image post, including its author and a token string.
business_data[].data.aweme_info.author.avatar_168x168.url_list[]Image URLs for the author's 168x168 avatar. The list holds the same picture in webp and jpeg formats.
business_data[].data.aweme_info.author_user_idNumeric ID of the account that posted the image.
business_data[].data_idPosition of the card in this page of results, as a string starting at 0.
business_config.has_moreShows whether more results exist. 1 in this response.
business_config.next_page.cursorCursor value to send as cursor to get the next page.
business_config.next_page.search_idSearch ID to send as search_id with the next page request.
business_config.card_countNumber of cards in this response.
log.search_keywordThe keyword that the search used.

Notes

  • For the first page, leave cursor at 0 and leave search_id and backtrace empty.
  • For the next page, copy business_config.next_page.cursor into cursor and business_config.next_page.search_id into search_id.
  • The content_type description says to fix it to 2 for images.
  • For image-text results from a different endpoint, try Douyin Image-Text 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.01 за запросJSON
Douyin$0.01 за запросJSON
Douyin$0.01 за запросJSON
Douyin$0.01 за запросJSON
Douyin$0.01 за запросJSON
Douyin$0.01 за запросJSON

Руководства:Best Douyin API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API Douyin Image Search?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/search/image-search, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Douyin Image Search?

$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Douyin Image Search?

Параметры не требуются. Необязательные: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) и publish_time (string) и еще 2. В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Douyin Image Search?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Douyin или API key?

Нет. Douyin Image Search работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.