querystringआवश्यक
Search keyword (required), e.g. "food"
https://api.sandbase.ai/v1/api/douyin/index/item-querySearch Douyin Index videos by keyword with filters for post date, duration, category, and label type. Returns video metadata and performance metrics.
[
{
"data": {
"data": []
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Searches Douyin Index videos by keyword and returns a list of matching videos with creator name, follower count, like count, duration, post time and a video link. It needs one input, query. Optional filters narrow results by post date, duration, category and quality tag.
美食 and open each one through its url.isLowFansButHot next to fans.index or likes to see which posts perform best.duration_type and compare the results.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (required), e.g. "food" |
category_id | string | No | Category ID (string), default "0"=all |
date_type | integer | No | Publish date filter, default 0=any |
duration_type | integer | No | Duration filter, default 0=any |
label_type | integer | No | Video type (quality tag), default 0=any |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"avatarUrl": "https://p3-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c000-ce_osD7MQgO…",
"createTime": "2026-10-30 23:34:15",
"duration": 72,
"fans": 13248,
"index": "657817",
"isHighFansRiseRate": 0,
"isHighLikeRate": 1,
"isHighPlayOverRate": 0,
"isLowFansButHot": 1,
"itemId": "7702484601909857590",
"likes": "226165",
"nickname": "明食记"
}
]
}
| Field | Meaning |
|---|---|
data[].itemId | ID of the video, as a string. It is the last part of the video url. |
data[].title | Video caption, including its hashtags. |
data[].url | Link to the video page on Douyin. |
data[].nickname / data[].avatarUrl | Display name and avatar image link of the creator. |
data[].fans | Follower count of the creator, as a number. |
data[].likes | Like count of the video. It comes back as a string. |
data[].index | Index score of the video for this search, as a string. Higher values appear for videos that do better. |
data[].duration | Length of the video. Values like 72 and 274 suggest seconds, but the response does not state the unit. |
data[].createTime | Post time of the video, in YYYY-MM-DD HH:MM:SS format. |
data[].isHighLikeRate / data[].isHighFansRiseRate / data[].isHighPlayOverRate / data[].isLowFansButHot | Flags set to 1 when the video carries that tag, and 0 when it does not. The names describe a high like rate, high follower growth, high play completion, and a hot video from a low-follower account. |
date_type, label_type and duration_type at 0 and category_id at "0" for an unfiltered search. Pass category_id as a string.$0.001 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/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "sandbase",
"date_type": 0,
"label_type": 0,
"category_id": "0",
"duration_type": 0
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
querystringआवश्यकSearch keyword (required), e.g. "food"
category_idstringCategory ID (string), default "0"=all
डिफ़ॉल्ट: "0"
date_typeintegerPublish date filter, default 0=any
डिफ़ॉल्ट: 0
duration_typeintegerDuration filter, default 0=any
डिफ़ॉल्ट: 0
label_typeintegerVideo type (quality tag), default 0=any
डिफ़ॉल्ट: 0
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"data": []
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/index/item-query पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
आवश्यक: query (string)। वैकल्पिक: category_id (string), date_type (integer), duration_type (integer) और label_type (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Index Video Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।