backtracestring
Backtrace for pagination, obtained from the last response
डिफ़ॉल्ट: ""
https://api.sandbase.ai/v1/api/douyin/search/multi-searchReturns multi-type search results across videos, users, music, and hashtags on Douyin. Supports filtering by keyword, sort order, content type, duration, and post date.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns Douyin search results for a keyword as a list of result cards, mostly videos, plus pagination state and suggested search words. The main input is keyword. Optional filters cover sort order, content type, video duration and publish time.
猫咪 to see what Douyin ranks first.cursor, search_id and backtrace to build a larger set of videos for one keyword.filter_duration and publish_time to study recent or short videos.curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/multi-search" \
-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 for pagination, obtained from the last response |
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., "Artificial Intelligence" |
publish_time | string | No | Publish time filter |
search_id | string | No | Search ID used 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.
[
13270
]
| Field | Meaning |
|---|---|
business_config.business_data[].card_id | Type of each result card. The sample value douyin.doctype_aweme_video marks a video card. |
business_config.business_data[].data.aweme_info | Video details for a video card. It includes the video author, an authentication_token and the other video metadata. |
business_config.business_data[].data.aweme_info.author | Profile data of the account that posted the video, including avatar images with url_list links. |
business_config.business_data[].log.search_result_id | ID of the search result, which matches the video ID used in pitaya_common_feature.doc_feature[].search_result_id. |
business_config.has_more | Shows whether more results exist. The sample value is 1. |
business_config.next_page.cursor | Cursor value to send as cursor when you request the next page. |
business_config.next_page.search_id | Search ID to send as search_id when you request the next page. |
business_config.backtrace | Pagination token to send as backtrace when you request the next page. |
business_config.extra.guide_search_words[].word | Suggested related search word, such as 视频, 图片 or 头像. |
business_config.extra.impression_server_log.query | The keyword the search ran for. |
cursor as 0 and leave search_id and backtrace empty.business_config.next_page.cursor, business_config.next_page.search_id and business_config.backtrace into cursor, search_id and backtrace.business_config.$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/multi-search" \
-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 for pagination, obtained from the last response
डिफ़ॉल्ट: ""
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., "Artificial Intelligence"
डिफ़ॉल्ट: "猫咪"
publish_timestringPublish time filter
डिफ़ॉल्ट: "0"
search_idstringSearch ID used for pagination
डिफ़ॉल्ट: ""
sort_typestringSorting method
डिफ़ॉल्ट: "0"
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin Multi Searchयह 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/multi-search पर 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 Multi Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।