Douyin Video Search

API docs
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.

Price
$0.01USD / call
Method
POST
Response
JSON
Parameters
0 required · 8 optional
100 free calls / dayFirst 100 calls per day free (shared per organization) · Resets at 00:00 UTC. Pay per call after that.

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
OutputExample
Responseoutputs · 669.2 KB · 11,382 lines
[
  {
    "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": "图片"
            },
            {
              "attached_text": null,
              "id": "6595534175627908360",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "特效"
            },
            {
              "attached_text": null,
              "id": "6541606451121493256",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "可爱"
            },
            {
              "attached_text": null,
              "id": "6539032838996497671",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "领养"
            },
            {
              "attached_text": null,
              "id": "6537251533505959176",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "头像"
            },
            {
              "attached_text": null,
              "id": "6537274553662444808",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "搞笑视频"
            },
            {
              "attached_text": null,
              "id": "6595536963988641032",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "照片"
            },
            {
              "attached_text": null,
              "id": "6537266177071142151",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "宠物"
            },
            {
              "attached_text": null,
              "id": "6537233605339387140",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "动画片"
            },
            {
              "attached_text": null,
              "id": "6596012532152931592",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "用品"
            },
            {
              "attached_text": null,
              "id": "6574004809819821315",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "品种"
            },
            {
              "attached_text": null,
              "id": "6595890033952036110",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "可爱视频"
            },
            {
              "attached_text": null,
              "id": "6538714065689138436",
              "query_id": "6537523068217103624",
              "type": "recom",
              "word": "文案"
            }
          ],
          "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": [
                    "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": [
                      "https://p3-sign.douyinpic.com/obj/c8510002be9a3a61aad2?lk3s=138a59ce&x-expires=1788426000&x-signature=JvJ3QRyF5z8K0MAjsm3BIcA4sFg%3D&from=327834062"
                    ],
                    "width": 720
                  }
                ],
                "create_time": 0,
                "creator_tag_list": null,
                "custom_verify": "",
                "cv_level": "",
                "data_label_list": null,
                "disable_image_comment_saved": 0,
                "display_info": null,
                "download_prompt_ts": 0,
                "download_setting": -1,
                "duet_setting": 0,
                "enable_nearby_visible": true,
                "endorsement_info_list": null,
                "enterprise_verify_reason": "",
                "familiar_confidence": 0,
                "familiar_visitor_user": null,
                "favoriting_count": 0,
                "fb_expire_time": 0,
                "follow_status": 0,
                "follower_count": 98759,
                "follower_list_secondary_information_struct": null,
                "follower_request_status": 0,
                "follower_status": 0,
                "followers_detail": null,
                "following_count": 0,
                "gender": 0,
                "geofencing": [],
                "google_account": "",
                "has_email": false,
                "has_facebook_token": false,
                "has_insights": false,
                "has_orders": false,
                "has_twitter_token": false,
                "has_unread_story": false,
                "has_youtube_token": false,
                "hide_location": false,
                "hide_search": true,
                "homepage_bottom_toast": null,
                "house_talent_info": 0,
                "identity_labels": null,
                "im_role_ids": null,
                "ins_id": "",
                "interest_tags": null,
                "is_ad_fake": false,
                "is_ban": false,
                "is_binded_weibo": false,
                "is_block": false,
                "is_blocked_v2": false,
                "is_blocking_v2": false,

Examples

Select an example to load its inputs and result into the 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.01 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.

Explore more

Related APIs

All APIs
APIPriceResponse
Douyin$0.01 per callJSON
Douyin$0.01 per callJSON
Douyin$0.01 per callJSON
Douyin$0.01 per callJSON
Douyin$0.01 per callJSON
Douyin$0.01 per callJSON

Questions

FAQ

How do I use the Douyin Video Search API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/search/video-search-v2 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Douyin Video Search API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Douyin Video Search API accept?

No parameters are required. Optional: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) and publish_time (string) and 2 more. The Parameters table and the Playground on this page list every field.

What does the Douyin Video Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Douyin developer account or API key?

No. Douyin Video Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.