Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Douyin Video Search (V1)

Documentación de la API
https://api.sandbase.ai/v1/api/douyin/search/video-search-v1

Search Douyin videos by keyword: descriptions, authors and play, like, comment and share counts, with sort, publish-time, duration and content-type filters.

Precio
$0.015USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 8 opcionales

Entorno de pruebas

Entrada
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., "Artificial Intelligence"
Publish time filter
Search ID used for pagination(obtained from the last response)
Sorting method
SalidaEjemplo
Respuestaoutputs · 26.8 KB · 631 líneas
[
  {
    "data": {
      "ad_info": {},
      "aweme_list": null,
      "backtrace": "J6aGE6HAjYfQrWVjdpCA4koXHeq2D+xd626XetlNTOcDaD1vfAp9QZlMsoEl42R1WqHHFYJwGEfrOQ51pQjUog==",
      "cursor": 8,
      "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": "MS4wLjAAAAAAWdyMipEzkgk6Rogy4BRIJpNIaZC6MCiXm09UgXOUm3u_q4UqiWYPK0LJ3gmfXX76z2H0V59HuWfOFRWQMIjHzmdZ2B-6T5yUsnW1VLt6G9WEA5M-siRZU1eK9ZtmCmaAGPGkaUYO5GxTh2feqejM9BJf0a60Uy8ZWG8thp4OV6KUuqzunKI05gZdR07OineEgU4v0WH71_ksmngviGsMt97PiegbNnAvdveVQQaa8V1VlsGaDplnIPtuZcMbv1gs",
            "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": [
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1~c5_168x168.webp?from=327834062",
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1~c5_168x168.jpeg?from=327834062"
                ],
                "width": 720
              },
              "avatar_300x300": {
                "height": 720,
                "uri": "300x300/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                "url_list": [
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1~c5_300x300.webp?from=327834062",
                  "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1~c5_300x300.jpeg?from=327834062"
                ],
                "width": 720
              },
              "avatar_larger": {
                "height": 720,
                "uri": "1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.webp?from=327834062",
                  "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.jpeg?from=327834062"
                ],
                "width": 720
              },
              "avatar_medium": {
                "height": 720,
                "uri": "720x720/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.webp?from=327834062",
                  "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.jpeg?from=327834062"
                ],
                "width": 720
              },
              "avatar_schema_list": null,
              "avatar_thumb": {
                "height": 720,
                "uri": "100x100/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
                "url_list": [
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.webp?from=327834062",
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1.jpeg?from=327834062"
                ],
                "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": [
                {
                  "height": 720,
                  "uri": "c8510002be9a3a61aad2",
                  "url_list": "… 1 items in the full response",
                  "width": 720
                }
              ],
              "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": {
                  "ad_cover_url": null,
                  "avatar_schema_list": null,
                  "ban_user_functions": null,
                  "batch_unfollow_contain_tabs": null,
                  "batch_unfollow_relation_desc": null,
                  "can_set_geofencing": null,
                  "card_entries": null,
                  "card_entries_not_display": null,
                  "card_sort_priority": null,
                  "cf_list": null,
                  "cha_list": null,
                  "contrail_list": null,
                  "cover_url": null,
                  "creator_tag_list": null,
                  "data_label_list": null,
                  "display_info": null,
                  "endorsement_info_list": null,
                  "familiar_visitor_user": null,
                  "follower_list_secondary_information_struct": null,
                  "followers_detail": null,
                  "geofencing": null,
                  "homepage_bottom_toast": null,
                  "identity_labels": null,
                  "im_role_ids": null,
                  "interest_tags": null,
                  "item_list": null,
                  "link_item_list": null,
                  "need_points": null,
                  "new_story_cover": null,
                  "not_seen_item_id_list": null,
                  "not_seen_item_id_list_v2": null,
                  "offline_info_list": null,
                  "personal_tag_list": null,
                  "platform_sync_info": null,
                  "private_relation_list": null,
                  "profile_component_disabled": null,
                  "profile_mob_params": null,
                  "profile_signature_components": null,
                  "relative_users": null,
                  "signature_extra": null,
                  "…": "8 more fields in the full response"
                },
                "banner_list": null,
                "cha_attrs": null,
                "cha_name": "分享",
                "challenge_status": 1,
                "cid": "1767586573830231",
                "collect_stat": 0,
                "connect_music": [],
                "desc": "",
                "extra_attr": {
                  "is_live": false
                },
                "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": {
                  "entity_id": "1767586573830231"
                },
                "share_info": {
                  "bool_persist": 0,
                  "share_desc": "在抖音,记录美好生活",
                  "share_desc_info": "我在抖音参与话题讨论#分享 ",
                  "share_quote": "",
                  "share_signature_desc": "",
                  "share_signature_url": "",
                  "share_title": "我在抖音参与话题讨论#分享 ",
                  "share_title_myself": "",
                  "share_title_other": "",
                  "share_url": "https://www.iesdouyin.com/share/challenge/1767586573830231/?u_code=0&from_ssr=1",
                  "share_weibo_desc": "我在抖音参与话题讨论#分享 "
                },
                "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": [
                {
                  "basic_info": "…",
                  "priority": 200400
                }
              ]
            },
            "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": "202608201746533C9FD961808498C289FD"
          },
          "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,

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

Douyin Video Search API (V1)

Returns a page of Douyin video search results for a keyword. Each result holds the video record with its author, plus search tracking values for the next page. The only input you need is keyword.

Use cases

  • Collect videos that match a product name or topic on Douyin.
  • Find creators who post about a keyword and read their author IDs and avatars.
  • Page through all results for a keyword to count how many videos appear for it.
  • Use the related search words to expand a keyword list.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/video-search-v1" \
  -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., "Artificial Intelligence"
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.

{
  "ad_info": {},
  "aweme_list": null,
  "backtrace": "w8KOvPTzjA32DWEYf/cuFW45DQGXnMhbmtMMdOJA8MfKx+wJO5eOs3pIHfwYBckrqCwIlbiGsquRCyjR…",
  "cursor": 8,
  "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": "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-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
            "url_list": [
              "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2…"
            ],
            "width": 720
          },
          "avatar_300x300": {
            "height": 720,
            "uri": "300x300/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2SF8fyDjgbmvgBAJDE07A1",
            "url_list": [
              "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_o8AAjKEQIJgQyYff2…"
            ],
            "width": 720
          }
        },
        "author_mask_tag": 0
      },
      "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%2Fi…"
      }
    }
  ],
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261103153222807FBF14578AD2BCB393",
    "now": 1793691143000,
    "scenes": null,
    "search_request_id": ""
  },
  "global_doodle_config": {
    "keyword": "猫咪"
  },
  "guide_search_words": [
    {
      "attached_text": null,
      "id": "6527573731718468871",
      "query_id": "6537523068217103624",
      "type": "recom",
      "word": "视频"
    }
  ],
  "has_more": 1,
  "log_pb": {
    "impr_id": "20261103153222807FBF14578AD2BCB393",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "status_code": 0
}

Response fields

FieldMeaning
data[].aweme_infoThe video record for one search result. It holds the video details and the author object.
data[].aweme_info.author_user_idNumeric ID of the account that posted the video.
data[].aweme_info.author.avatar_168x168.url_list / data[].aweme_info.author.avatar_300x300.url_listAvatar image URLs for the author at 168x168 and 300x300 sizes. Each list has a .webp and a .jpeg link.
data[].log_data.search_idID of this search. It is the same for every item on the page.
data[].card_type_nameName of the result card type. Video results show video_search_video_new_double.
cursor / backtracePagination values to send back in the next request.
has_moreShows 1 when more results are available.
guide_search_words[].wordRelated search words suggested for the keyword. Each entry also has an id and a type.
status_code0 when the request succeeded.

Notes

  • The videos are in data. The top-level aweme_list is null.
  • For the first page, leave cursor at 0. For the next page, send the response cursor and backtrace, and send data[].log_data.search_id as search_id.
  • sort_type, content_type, publish_time and filter_duration are strings and default to "0".
  • To search other Douyin result types or compare video results, try Douyin Video Search or Douyin General Search. To get keyword ideas first, call Douyin Search Suggestions.

Pricing

$0.015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Douyin$0.015 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON

Guías:Best Douyin API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Douyin Video Search (V1)?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/search/video-search-v1 con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Douyin Video Search (V1)?

$0.015 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Douyin Video Search (V1)?

No se requieren parámetros. Opcionales: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) y publish_time (string) y 2 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin Video Search (V1)?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Douyin?

No. Douyin Video Search (V1) funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.