Douyin Video Search

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 / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
0 required · 8 optional
Production route

Try the model

Playground

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

Model card

Specifications

Pricing

Base price
$0.01 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

backtrace
string · optional
content_type
string · optional
cursor
integer · optional
filter_duration
string · optional
keyword
string · optional
publish_time
string · optional
search_id
string · optional
sort_type
string · optional

Access

Provider
Douyin
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/douyin/search/video-search-v2
Authentication
Bearer API key

API README

Douyin Video Search API

Search Douyin's video tab for a keyword. Each result includes the video description, author and statistics.

Use cases

  • Find videos about a product or topic.
  • Discover creators for influencer campaigns.
  • Track video volume and engagement for a keyword.

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": "猫咪"}'

Parameters

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

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "business_data": [
    {
      "type": 1,
      "data": {
        "aweme_info": {
          "aweme_id": "7581331706625500153",
          "create_time": 1765166347,
          "duration": 289767,
          "desc": "科普分享一些猫的种类,你看你认识几种!#盘点#科普#分享#猫",
          "author": {
            "nickname": "<user>",
            "sec_uid": "<sec_uid>"
          },
          "statistics": {
            "play_count": 0,
            "digg_count": 55214,
            "comment_count": 3720,
            "share_count": 10943,
            "collect_count": 21141
          },
          "share_url": "https://www.iesdouyin.com/share/video/7581331706625500153/?…"
        }
      }
    }
  ],
  "business_config": {
    "has_more": 1,
    "next_page": {
      "cursor": 10,
      "search_id": "<search_id>"
    }
  }
}

Notes

  • For the next page, pass back cursor, search_id and backtrace from the previous response.

Related APIs

  • Douyin General Search: Search Douyin (Chinese TikTok) from the app's general search tab and get videos with descriptions, authors and play, like, comment and share counts.
  • Fetch hashtag search V1: Fetch hashtag/challenge search results from Douyin App.
  • Fetch hashtag search V2: Fetch hashtag/challenge search results from Douyin App using V2 API.

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/douyin/search/video-search-v2
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/douyin/search/video-search-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "cursor": 0,
  "keyword": "猫咪",
  "backtrace": "",
  "search_id": "",
  "sort_type": "0",
  "content_type": "0",
  "publish_time": "0",
  "filter_duration": "0"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026
Douyin$0.01 per callJSONJul 31, 2026

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.