Douyin Video Search (V1)

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

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., "Artificial Intelligence"
Publish time filter
Search ID used for pagination(obtained from the last response)
Sorting method
OutputExample
Responseoutputs · 546.7 KB · 10,331 lines
[
  {
    "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": [
                    "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,
              "is_cf": 0,
              "is_discipline_member": false,
              "is_gov_media_vip": false,
              "is_mix_user": true,
              "is_not_show": false,
              "is_phone_binded": false,
              "is_star": false,
              "is_verified": true,
              "item_list": null,
              "ky_only_predict": 0,
              "language": "zh-Hans",
              "link_item_list": null,
              "live_agreement": 0,
              "live_agreement_time": 0,
              "live_commerce": false,
              "live_high_value": 0,
              "live_status": 0,
              "live_verify": 0,
              "location": "",
              "mate_add_permission": 0,
              "mate_count": 0,
              "mate_relation": {
                "mate_apply_forward": 0,
                "mate_apply_reverse": 0,
                "mate_status": 0
              },
              "max_follower_count": 0,
              "need_points": null,
              "need_recommend": 0,
              "neiguang_shield": 0,
              "new_story_cover": null,
              "nickname": "方正说万物",
              "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,
              "prevent_download": false,
              "private_relation_list": null,
              "profile_component_disabled": null,
              "profile_mob_params": null,
              "profile_signature_components": null,
              "react_setting": 0,
              "reflow_page_gid": 0,
              "reflow_page_uid": 0,
              "region": "CN",
              "relative_users": null,
              "risk_notice_text": "",
              "room_id": 0,
              "room_id_str": "0",
              "school_category": 1,
              "school_id": "6699443333888002061",
              "school_name": "",
              "school_poi_id": "",
              "school_type": 0,
              "search_impr": {
                "entity_id": "2740414975578590"
              },
              "sec_uid": "MS4wLjABAAAALhAH6FwiGbEnV6Y-NoXR_MYDHyRyFqS1VazH9fF6Pb0EsWuTkUzhXqL0yhkyudn-",
              "secret": 0,
              "share_info": {
                "share_desc": "",
                "share_desc_info": "",
                "share_qrcode_url": {
                  "height": 720,
                  "uri": "31925001ab0aa71e62b39",
                  "url_list": [
                    "https://p3-sign.douyinpic.com/obj/31925001ab0aa71e62b39?lk3s=138a59ce&x-expires=1787238000&x-signature=lcfF4Zv95i1rb9dk5bPmU7M3MG0%3D&from=327834062"
                  ],
                  "width": 720
                },
                "share_title": "",
                "share_title_myself": "",
                "share_title_other": "",
                "share_url": "",
                "share_weibo_desc": ""
              },
              "share_qrcode_uri": "31925001ab0aa71e62b39",
              "shield_comment_notice": 0,
              "shield_digg_notice": 0,
              "shield_follow_notice": 0,
              "short_id": "46693895505",
              "show_image_bubble": false,
              "show_nearby_active": false,
              "signature": "",
              "signature_display_lines": 5,
              "signature_extra": null,
              "social_real_relation_type": 0,
              "special_follow_status": 0,
              "special_lock": 1,
              "special_people_labels": null,
              "status": 1,
              "stitch_setting": 0,
              "story25_comment": 0,
              "story_count": 0,
              "story_interactive": 0,
              "story_open": false,
              "story_ttl": 0,
              "sync_to_toutiao": 0,
              "text_extra": [],
              "total_favorited": 0,
              "tw_expire_time": 0,
              "twitter_id": "",
              "twitter_name": "",
              "type_label": null,
              "uid": "2740414975578590",
              "unique_id": "O_O8839",
              "unique_id_modify_time": 1787219214,
              "user_age": 32,
              "user_canceled": false,
              "user_mode": 0,
              "user_not_see": 0,
              "user_not_show": 1,
              "user_period": 0,
              "user_permissions": null,
              "user_rate": 1,
              "user_tags": null,
              "verification_permission_ids": null,
              "verification_type": 1,
              "verify_info": "",
              "video_icon": {
                "height": 720,
                "uri": "",
                "url_list": [],
                "width": 720
              },
              "webcast_preview_labels": null,
              "weibo_name": "",

Examples

Select an example to load its inputs and result into the playground.

API README

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.01 per successful call. Failed calls 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 (V1) API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/search/video-search-v1 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 (V1) 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 (V1) 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 (V1) 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 (V1) 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.