Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Douyin General Search

API दस्तावेज़
https://api.sandbase.ai/v1/api/douyin/search/general-search-v1

Search Douyin (Chinese TikTok) from the app's general search tab and get videos with descriptions, authors and play, like, comment and share counts. Filter by sort, publish time, duration and content type.

मूल्य
$0.01USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
0 आवश्यक · 8 वैकल्पिक

प्लेग्राउंड

इनपुट
Backtrace identifier (empty for first request, obtained from previous response for pagination)
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., "cat"
Publish time filter
Search ID (empty for first request, obtained from previous response for pagination)
Sorting method
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Douyin General Search API

Returns Douyin search results for a keyword from the app's general search tab. Each result is a video or image post with its caption, author and an ID. The only input needed is keyword.

Use cases

  • Collect the top Douyin posts for a keyword such as a pet breed or product name.
  • Find creators who post about a topic by reading publish_username and author_user_id.
  • Track new posts that mention a brand by filtering on publish time and reading the caption text.
  • Build a list of post IDs for a topic and fetch each one in full with another API.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/general-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 (empty for first request, obtained from previous response for pagination)
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., "cat"
publish_timestringNoPublish time filter
search_idstringNoSearch ID (empty for first request, obtained from previous response for pagination)
sort_typestringNoSorting method

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "ad_info": {},
  "backtrace": "QcYdxJw7yf6duzkWgjcv9m6lNSZ4EWGHlekiwBFcWNm/eLx9nrk3/Ud/xt7uVeZWofx64xqtZ7DyvuOe…",
  "cursor": 20,
  "data": [
    {
      "aweme_info": {
        "activity_video_type": -1,
        "ai_follow_images": null,
        "ai_search_struct": {
          "show_ai_entrance": true
        },
        "anchors": null,
        "authentication_token": "MS4wLjAA…",
        "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_oEKA8FFsbIDrpkAAXWAwfoEqqkQM9fwEeA9hKE",
            "url_list": [
              "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_oEKA8FFsbIDrpkAAX…"
            ],
            "width": 720
          }
        },
        "author_mask_tag": 0,
        "author_user_id": 99421008169
      },
      "aweme_list": null,
      "card_id": "douyin.doctype_aweme_video",
      "card_info": {
        "search_autoplay_business": "153_dy"
      },
      "card_style_type": 1,
      "card_type": 1,
      "card_type_id": {
        "card_name": "153|1|double",
        "doc_type": 153,
        "performance_infos": {
          "153": 1,
          "double_column": 1,
          "is_native": 1,
          "search_card_count": 1,
          "video_has_lynx_anchor": 0
        }
      },
      "card_type_name": "",
      "comment_list": [
        {
          "aweme_id": "7697482617494657147",
          "cid": "7697483159202726665",
          "create_time": 1792209959,
          "decorated_emoji_info": null,
          "digg_count": 6,
          "enter_from": "others_homepage",
          "group_id": 7697482617494657147,
          "image_list": null
        }
      ],
      "data": {
        "card_tags": null,
        "common_tab_config": null,
        "hotspot_tab_config": null,
        "recom_extra_info": {
          "suggest_words_config": 3,
          "suggest_words_params": {
            "doc_type": "153",
            "item_id": "7697482617494657147",
            "product_id": ""
          }
        }
      },
      "debug_data": {
        "filter_debug_info_list": null
      },
      "debug_diff_info": {}
    }
  ],
  "extra": {
    "fatal_item_ids": [],
    "logid": "202611031532171EB06BE851C10A585E5E",
    "now": 1793691138684,
    "scenes": null,
    "search_request_id": "",
    "start_ms": 1793691137274
  },
  "global_doodle_config": {
    "activity_tag": null,
    "comment_config": {
      "disable_comment_bar": true
    },
    "display_music_anchor": 2,
    "double_column_button_style": 2,
    "double_column_layout_type": 3,
    "ecom_intent": "intent_not_ecom",
    "extra_server_client_params": "{\"last_strong_style_card_idx\":0}",
    "is_double_column_left": 0,
    "keyword": "猫咪",
    "search_pop_info": [],
    "srp_algo_for_wind_vane": "{\"bp_personal_strategy_level\":0,\"cate_lv1\":[20063,20041],\"ecom_bp_buy_intent\":0,…",
    "user_guide": {
      "inflow_second": 0,
      "inflow_stop": 7,
      "resp_second": 5,
      "show_inflow_guide": true,
      "show_resp_guide": true
    }
  },
  "guide_search_words": [
    {
      "attached_text": null,
      "id": "6594507188880807176",
      "query_id": "6537523068217103624",
      "type": "recom",
      "word": "图片"
    }
  ],
  "guide_search_words_extra": {},
  "has_more": 1,
  "log_pb": {
    "impr_id": "202611031532171EB06BE851C10A585E5E",
    "search_source": "homepage_recom_search",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "maokai_extra": {},
  "new_framework_single_column_card_count": 0
}

Response fields

FieldMeaning
data[].impression_server_log.doc_titleCaption text of the result. Long captions can include line breaks and hashtags.
data[].impression_server_log.gid / data[].provider_doc_id_str / data[].log_data.search_result_idID of the result as a string. All three hold the same value for a given item.
data[].impression_server_log.publish_usernameDisplay name of the author who posted the result.
data[].impression_server_log.publish_timePublish time of the result as a Unix timestamp in seconds.
data[].aweme_info.author_user_idNumeric ID of the author.
data[].aweme_info.author.avatar_168x168.url_list[]Image URLs for the author's 168x168 avatar, in WebP and JPEG formats.
data[].card_id / data[].doc_typeType of the result. douyin.doctype_aweme_video with doc_type 153 is a video, and douyin.doctype_aweme_image with doc_type 303 is an image post.
data[].comment_list[].digg_countLike count of a comment shown with the result. The comment_list can be missing on some items.
data[].comment_list[].cid / data[].comment_list[].create_timeID of that comment and its creation time as a Unix timestamp in seconds.
data[].log_data.search_idID of this search. Send it back as search_id to get the next page.

Notes

  • For the first page, send only keyword. For the next page, send the top-level cursor and backtrace from the previous response, plus search_id.
  • sort_type, content_type, publish_time and filter_duration are strings. The default "0" applies no filter.
  • Results mix videos and image posts. Check card_id or doc_type to tell them apart.
  • Pass a result ID to Douyin Video Detail to load one item. For another search layout, try Douyin General Search (V2).

Pricing

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

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Douyin$0.01 प्रति कॉल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

प्रश्न

FAQ

Douyin General Search API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/douyin/search/general-search-v1 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Douyin General Search API की लागत कितनी है?

$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Douyin General Search API कौन-से parameters स्वीकार करती है?

कोई parameters आवश्यक नहीं हैं। वैकल्पिक: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) और publish_time (string) और 2 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Douyin General Search API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Douyin developer account या API key चाहिए?

नहीं। Douyin General Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।