Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Douyin Video Search

Documentazione API
https://api.sandbase.ai/v1/api/douyin/search/video-search-v2

Search Douyin videos by keyword and get descriptions, authors and play, like, comment and share counts. Filter by sort order, publish time, duration and content type, with cursor pagination.

Prezzo
$0.015USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 8 opzionali

Playground

Input
Backtrace identifier used for pagination(obtained from the last response)
Content type filter
Pagination cursor (0 for the first page, use the last response cursor for subsequent pages)
Video duration filter
Search keyword, e.g., "robot"
Publish time filter
Search ID used for pagination(obtained from the last response)
Sorting method
OutputEsempio
Rispostaoutputs · 21.4 KB · 539 righe
[
  {
    "data": {
      "business_config": {
        "ad_info": null,
        "backtrace": "IkaLj8XdHuweIxXXPkc8sl6guFqvlg/JC4QSV7MpY1HI2+pIPUUvu8RGaOOkzz7MjCRAA1q/u6irb9jvgGUqDw==",
        "card_count": 8,
        "extra": {
          "guide_search_words": [
            {
              "attached_text": null,
              "id": "6527573731718468871",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "视频"
            },
            {
              "attached_text": null,
              "id": "6594507188880807176",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "图片"
            },
            "… 12 more items in the full response"
          ],
          "is_filter_search": 0,
          "is_video_tab_double_column": true,
          "req_start_ts": 1787219259284
        },
        "extra_fresh_struct": null,
        "feedback": null,
        "feelgood_msg": {},
        "filter_bar": {},
        "general_search_config": {
          "keyword": "猫咪"
        },
        "has_more": 1,
        "is_filter_search": 0,
        "keyword": "猫咪",
        "next_page": {
          "cursor": 8,
          "keyword": "猫咪",
          "poi_search_info": "",
          "search_id": "2026082017473946E13301BE4E4A893198",
          "search_request_id": "2026082017473946E13301BE4E4A893198"
        },
        "poi_search_info": "",
        "pre_loadmore_config": null,
        "search_nil_info": null
      },
      "business_data": [
        {
          "card_id": "douyin.doctype_aweme_video.video_search_video_new_double",
          "data": {
            "aweme_info": {
              "activity_video_type": -1,
              "ad_charge_passive_unlock_config": {
                "broadcast_btn_config": {
                  "btn_show_frequency": 1,
                  "btn_show_second": 5,
                  "btn_text": "秒后解锁下一集",
                  "show_second_type": 2
                },
                "trial_btn_config": {
                  "btn_show_frequency": 1,
                  "btn_show_second": 3,
                  "btn_text": "秒后解锁本集",
                  "show_second_type": 2
                }
              },
              "ai_follow_images": null,
              "ai_search_struct": {
                "show_ai_entrance": true
              },
              "anchors": null,
              "authentication_token": "MS4wLjAAAAAAaJNcYkVRjs8oEaYANLt6qJuEzNeoCIRlmKC3NbfWU_MsL1hfRA5tJQzBj2q4BAZEX6uj_lE1DaIb-ZnVB5_riUz90o6aFqvjVbAMg8H41Xk4JypORcyt8vNxCZLNy7gQGI2I130k92u4JTk6ehA1_FwJuwsSjkmz4DxPmvmoTP56coxR0sBCc8Uhde_08Bm05KMDi5zTnGqkV92q4kEJfs5ZzPlhxQekizlZHRDvuxwe8LhLVuzrDJY0SjnFKt-J",
              "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-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_300x300": {
                  "height": 720,
                  "uri": "300x300/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_larger": {
                  "height": 720,
                  "uri": "1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_medium": {
                  "height": 720,
                  "uri": "720x720/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                  "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_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                  "url_list": "… 2 items in the full response",
                  "width": 720
                },
                "avatar_uri": "aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                "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": "1994-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": 5,
                "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": 2740414975578590,
              "aweme_control": {
                "can_comment": true,
                "can_forward": true,
                "can_share": true,
                "can_show_comment": true
              },
              "aweme_id": "7581331706625500153",
              "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": [
                {
                  "author": "…",
                  "banner_list": null,
                  "cha_attrs": null,
                  "cha_name": "分享",
                  "challenge_status": 1,
                  "cid": "1767586573830231",
                  "collect_stat": 0,
                  "connect_music": "… 0 items in the full response",
                  "desc": "",
                  "extra_attr": "…",
                  "from_ugc_hashtag_bank": "0",
                  "hashtag_profile": "image-cut-tos/2638fbe0fa7ce68346c9096820e0b8b1.jpg",
                  "insert_template_category_list": null,
                  "is_challenge": 0,
                  "is_commerce": false,
                  "is_pgcshow": false,
                  "schema": "aweme://aweme/challenge/detail?cid=1767586573830231",
                  "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": "410200",
              "cmt_swt": false,
              "collect_stat": 0,
              "collection_corner_mark": 0,
              "comment_gid": 7581331706625500000,
              "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_bar_info": "[{\"id\":\"playlet_bar\",\"view_type\":0,\"business_type\":1,\"schema\":\"aweme://playlet?playlet_id=7585746250092251178\\u0026aid=7581331706625500153\",\"schema_type\":2,\"title\":{\"text\":\"短剧\"},\"separator_dot\":{\"show\":1},\"main_content\":{\"text\":\"必看科普视频合集\",\"truncate\":1,\"ellipsis\":0},\"head_icon\":{\"url\":\"\",\"show\":1,\"ic…",
              "common_button": {
                "button_list": [
                  "…"
                ]
              },
              "common_left_top_labels": null,
              "component_info_v2": "{\"desc_lines_limit\":0,\"hide_marquee\":false}",
              "cover_labels": null,
              "…": "167 more fields in the full response"
            },
            "aweme_list": null,
            "card_id": "douyin.doctype_aweme_video.video_search_video_new_double",
            "card_info": {
              "search_autoplay_business": "153_dy"
            },
            "card_style_type": 1,
            "card_type": 1,
            "card_type_name": "video_search_video_new_double",
            "debug_data": {
              "filter_debug_info_list": null
            },
            "debug_diff_info": {},
            "doc_type": 153,
            "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": {
              "search_id": "2026082017473946E13301BE4E4A893198"
            },
            "music_info_list": null,
            "ops": null,
            "provider_doc_id": 7581331706625500000,
            "provider_doc_id_str": "7581331706625500153",
            "qishui_music_list": null,
            "recommend_title": "",
            "send_back": "",
            "shoot_position_list": null,
            "show_tab": null,
            "sub_card_list": null,
            "tab": null,
            "type": 1,
            "ui_info": {
              "is_waterfall_layout": 1,
              "quality_style_corner_type": 3
            }
          },
          "data_id": "0",
          "log": {
            "search_id": "2026082017473946E13301BE4E4A893198"
          },
          "type": 1
        },
        {
          "card_id": "douyin.doctype_aweme_video.video_search_video_new_double",
          "data": {
            "aweme_info": {
              "activity_video_type": 0,
              "ai_follow_images": null,
              "ai_search_struct": {
                "show_ai_entrance": true
              },
              "anchors": null,
              "authentication_token": "MS4wLjAAAAAA11uZSV2gn5GcphabibHLD4XJhORn3f3igzP0dCWw0DqJugig4sObcYvC_p2ZTZiYuFc8pd3lN77rVmCODoA7AoGOUuk0B-X5hcgN2WkXnXcOO7D9nTaefZFaaidYt20l4PtZ68SKRFbSVPUl48KjF0q_qG7IeG5YSMx8MEFj2_e1OkBXH7-S7if8rOqUc0K3oCciu0SnRtGScKBw4qHXCnqgNALUVrUW6Otg3iTNIvCW_tmsUADxY2BTH2MSnWg-",
              "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_747d2fa5fa889ce0a7a85f7f8144a980",

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

Douyin Video Search API

Search Douyin videos by keyword with sort, publish-time and content-type filters. Each result carries the full video object: caption, stats, author and play URLs.

Use cases

  • Find popular videos about a product, brand or topic.
  • Collect video IDs for comment or trend analysis.

Request

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

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

Parameters

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

Example response

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

{
  "business_data": [
    {
      "data": {
        "aweme_info": {
          "aweme_id": "7647874180994472809",
          "desc": "窝酱紫可爱吗#金白米努特 #米努特矮脚猫 #萌宠小猫 #软萌小猫",
          "create_time": 1780659469,
          "statistics": {
            "digg_count": 44274,
            "comment_count": 3408,
            "collect_count": 7609,
            "share_count": 40029
          },
          "author": {
            "nickname": "小心米努特矮脚猫舍",
            "uid": "152191991817676",
            "sec_uid": "MS4wLjABAAAATyiM0d18Q9CLp0BXGm…",
            "unique_id": "51547535777"
          },
          "video": {
            "duration": 5549,
            "width": 576,
            "height": 1024,
            "play_addr": {
              "url_list": [
                "https://v3-search.douyinvod.com/f647cae6595842a683dc8f01c823…"
              ]
            }
          }
        }
      }
    }
  ],
  "business_config": {
    "has_more": 1,
    "next_page": {
      "cursor": 8,
      "search_id": "20261103113733421D26B2FB79B528103F"
    },
    "backtrace": "J6aGE6HAjYfQrWVjdpCA4koXHeq2D+…"
  }
}

Response fields

FieldMeaning
business_data[].data.aweme_infoOne video per result, same fields as the video detail APIs (aweme_id, desc, statistics, author, video).
business_config.has_more1 when more pages exist.
business_config.next_pagecursor and search_id for the next page.
business_config.backtraceSend back as backtrace for the next page.

Notes

  • For the next page pass next_page.cursor, next_page.search_id and backtrace from the previous response.
  • sort_type, publish_time and content_type follow the Douyin app's filter options.

Pricing

$0.015 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Douyin$0.015 per chiamataJSON
Douyin$0.01 per chiamataJSON
Douyin$0.01 per chiamataJSON
Douyin$0.01 per chiamataJSON
Douyin$0.01 per chiamataJSON
Douyin$0.01 per chiamataJSON

Guide:Best Douyin API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Douyin Video Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/search/video-search-v2 con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Douyin Video Search?

$0.015 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Douyin Video Search?

Nessun parametro richiesto. Facoltativi: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) e publish_time (string) e altri 2. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Douyin Video Search?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Douyin?

No. Douyin Video Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.