backtracestring
Backtrace identifier (empty for first request, obtained from previous response for pagination)
डिफ़ॉल्ट: ""
https://api.sandbase.ai/v1/api/douyin/search/general-search-v2Returns search results from Douyin's general search tab. Supports filtering by keyword, sort method, post date, video duration, and content type.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of Douyin general search results for a keyword. Each result is a card that holds either a video or an image post, with its author and card layout info. The only input you need is keyword. Filters and pagination tokens are optional.
猫咪.curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/general-search-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
backtrace | string | No | Backtrace identifier (empty for first request, obtained from previous response for pagination) |
content_type | string | No | Content type filter |
cursor | integer | No | Pagination cursor (0 for the first page, use the last response cursor for subsequent pages) |
filter_duration | string | No | Video duration filter |
keyword | string | No | Search keyword, e.g., "cat" |
publish_time | string | No | Publish time filter |
search_id | string | No | Search ID (empty for first request, obtained from previous response for pagination) |
sort_type | string | No | Sorting method |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"business_config": {
"ad_info": {},
"backtrace": "MPzqs2LkeAcDN/znby3CZP+OFeA17Pm3NOmSq9pPwVpTEpdyu2wfEi0hq441EeOUv5iYMWtqqyekGmux…",
"card_count": 19,
"extra": {
"comment_config": {
"disable_comment_bar": true
},
"guide_search_words": [
{
"attached_text": null,
"id": "6527573731718468871",
"query_id": "6537523068217103624",
"type": "recom",
"word": "视频"
}
],
"hidden_filter": false,
"hide_guide_search_words": null,
"impression_server_log": {
"channel": "aweme_general",
"from_group_id": "",
"is_search_after_feed": false,
"poi": "圣克拉拉县圣克拉拉",
"query": "猫咪",
"request_time": 1793691137,
"session_id": "5742c9a4…",
"source": "homepage_recom_search"
},
"location_info": {
"server_location_timestamp": "1793691137"
}
},
"extra_fresh_struct": null,
"feedback": null,
"filter_bar": null,
"general_search_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_extra": {},
"has_more": 1,
"is_filter_search": 0,
"keyword": "猫咪"
},
"business_data": [
{
"card_id": "douyin.doctype_aweme_video",
"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_protocal_struct": {
"cachalot_card_id": 1,
"render_extra": {
"card_type_name": "general_video_double_col",
"type": 2534528
},
"render_type": 0,
"schema_id": 2534528,
"schema_name": "general_video_double_col",
"schema_url": ""
},
"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
}
}
},
"data_id": "0",
"log": {
"dcm": "search.natural.aweme_video.7697482617494657147.2026110315321636213EE99184C24CC1D…",
"search_id": "2026110315321636213EE99184C24CC1D7",
"search_result_id": "7697482617494657147"
},
"type": 1
}
],
"extra": {
"device_score": 0,
"fatal_item_ids": [],
"logid": "2026110315321636213EE99184C24CC1D7",
"now": 1793691138000,
"scenes": null,
"search_request_id": ""
},
"global_config": {
"guide_search_words": [
{
"attached_text": null,
"id": "6527573731718468871",
"query_id": "6537523068217103624",
"type": "recom",
"word": "视频"
}
],
"hidden_filter": false
},
"log": {
"impr_id": "2026110315321636213EE99184C24CC1D7",
"search_id": "2026110315321636213EE99184C24CC1D7",
"search_keyword": "猫咪"
},
"log_pb": {
"impr_id": "2026110315321636213EE99184C24CC1D7",
"search_source": "homepage_recom_search",
"stab_extra": {
"traffic_identification": "normal"
}
},
"maokai_extra": {},
"status_code": 0
}
| Field | Meaning |
|---|---|
business_data[] | One search result card. Cards are a mix of videos and image posts. |
business_data[].card_id | Card type. douyin.doctype_aweme_video marks a video and douyin.doctype_aweme_image marks an image post. |
business_data[].data.aweme_info | The post inside the card. It holds the post's author and related post details. |
business_data[].data.aweme_info.author | The account that published the post. It includes avatar images such as avatar_168x168 with url_list links. |
business_data[].data.aweme_info.author_user_id | Numeric ID of the post's author. |
business_data[].log.search_result_id | ID of the result post. It matches the ID in the dcm value of the same item. |
business_config.has_more | Shows 1 when more results are available for the next page. |
business_config.next_page.cursor | Cursor value for the next page. The sample shows 20 after the first page. |
business_config.next_page.search_id | Search ID to send with the next page request. |
business_config.backtrace | Backtrace token to send with the next page request. |
cursor at 0 and leave search_id and backtrace empty.business_config.next_page.cursor as cursor, business_config.next_page.search_id as search_id, and business_config.backtrace as backtrace. Keep the same keyword.search_result_id are long numeric strings. Keep them as strings to avoid rounding.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/general-search-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cursor": 0,
"keyword": "猫咪",
"backtrace": "",
"search_id": "",
"sort_type": "0",
"content_type": "0",
"publish_time": "0",
"filter_duration": "0"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
backtracestringBacktrace identifier (empty for first request, obtained from previous response for pagination)
डिफ़ॉल्ट: ""
content_typestringContent type filter
डिफ़ॉल्ट: "0"
cursorintegerPagination cursor (0 for the first page, use the last response cursor for subsequent pages)
डिफ़ॉल्ट: 0
filter_durationstringVideo duration filter
डिफ़ॉल्ट: "0"
keywordstringSearch keyword, e.g., "cat"
डिफ़ॉल्ट: "猫咪"
publish_timestringPublish time filter
डिफ़ॉल्ट: "0"
search_idstringSearch ID (empty for first request, obtained from previous response for pagination)
डिफ़ॉल्ट: ""
sort_typestringSorting method
डिफ़ॉल्ट: "0"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/search/general-search-v2 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) और publish_time (string) और 2 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin General Search (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।