Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin Video Search

เอกสาร 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.

ราคา
$0.015USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 8 ไม่บังคับ

Playground

อินพุต
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
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 21.4 KB · 539 บรรทัด
[
  {
    "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",

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Douyin Video SearchAPI นี้
Douyin
$0.015 ต่อการเรียก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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin Video Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/search/video-search-v2 โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin Video Search API ราคาเท่าไร?

$0.015 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin Video Search API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) และ publish_time (string) และอีก 2 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin Video Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin Video Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก