end_datestringआवश्यक
End date (**must be a Sunday**), format YYYYMMDD
https://api.sandbase.ai/v1/api/douyin/index/relation-wordReturns search and content relation word graphs and rankings for a keyword. Query by target keyword, platform selection, and weekly date intervals.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
}
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
This API returns search and content relation word graphs and rankings on Douyin or Toutiao for a keyword. It needs a keyword, a start_date and an end_date. app_name is optional and selects the platform.
人工智能 in a given week.aweme) and Toutiao (toutiao).curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/relation-word" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "start_date": "1730044800"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date (must be a Sunday), format YYYYMMDD |
keyword | string | Yes | The keyword to analyze |
start_date | string | Yes | Start date (recommend Monday), format YYYYMMDD |
app_name | string | No | Platform, aweme=Douyin, toutiao=Toutiao |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "日期格式需满足%Y%m%d,且关联分析终止日期为周日"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status wrapper that the response returns. Check it first to see whether the call worked. |
BaseResp.StatusCode | Numeric result code. 500 means the request failed, as in the sample response. |
BaseResp.StatusMessage | Text reason for the result. The sample says the date must be in %Y%m%d format and the end date must be a Sunday. |
1735660799 for start_date and end_date, and the API rejected them. Send dates as YYYYMMDD, for example 20241229.end_date must be a Sunday. Use a Monday for start_date so the range covers whole weeks.$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/relation-word" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "example",
"end_date": "example",
"start_date": "example"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
end_datestringआवश्यकEnd date (**must be a Sunday**), format YYYYMMDD
keywordstringआवश्यकThe keyword to analyze
start_datestringआवश्यकStart date (recommend Monday), format YYYYMMDD
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
संभावित मान: aweme, toutiao
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
}
}
}
]और जानें
| 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/relation-word पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: end_date (string), keyword (string) और start_date (string)। वैकल्पिक: app_name (aweme, toutiao में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Relation Word Analysis SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।