Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Douyin Video Search

Dokumentasi 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.

Harga
$0.015USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 8 opsional

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
OutputContoh
Responsoutputs · 21.4 KB · 539 baris
[
  {
    "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",

Contoh

Pilih contoh untuk memuat input dan hasilnya ke 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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Douyin$0.015 per panggilanJSON
Douyin$0.01 per panggilanJSON
Douyin$0.01 per panggilanJSON
Douyin$0.01 per panggilanJSON
Douyin$0.01 per panggilanJSON
Douyin$0.01 per panggilanJSON

Panduan:Best Douyin API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Douyin Video Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/search/video-search-v2 dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Douyin Video Search?

$0.015 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Douyin Video Search?

Tidak ada parameter yang wajib. Opsional: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) dan publish_time (string) dan 2 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Douyin Video Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Douyin?

Tidak. Douyin Video Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.