awemeIdstringआवश्यक
The unique video identifier (aweme_id).
https://api.sandbase.ai/v1/api/douyin/video-commentGet top-level comments for a Douyin (TikTok China) video by aweme ID with page-based pagination. Use it to review audience feedback or analyze discussion around a known video.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns one page of top-level comments for a Douyin video. It needs the video's awemeId and accepts an optional page number.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/video-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"awemeId": "7372484719365098803"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
awemeId | string | Yes | The unique video identifier (aweme_id). |
page | integer | No | Page number (starting from 1). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comment_common_data": "MS4wLjAAAAAA03AR1UylNkrCf7SwwA_uox3YUqEopM_e4IoBI8NFKBa2iC7iyWiGQOg2QpHeTlsXSneK…",
"comment_config": {},
"comment_insert_bars": null,
"comments": [
{
"aweme_id": "7372484719365098803",
"can_collect": false,
"can_share": true,
"cid": "7381090289870521126",
"content_type": 1,
"create_time": 1718544006,
"decorated_emoji_info": null,
"digg_count": 6,
"ent_parachute_tip": 0,
"enter_from": "homepage_hot",
"image_list": null,
"is_author_digged": false
}
],
"cursor": 20,
"extra": {
"fatal_item_ids": null,
"now": 1793691143000,
"scenes": null
},
"fast_response_comment": {
"constant_response_words": [
"赞"
],
"timed_response_words": [
"早上好"
]
},
"folded_comment_count": 0,
"general_comment_config": {},
"has_more": 1,
"hotsoon_filtered_count": 0,
"log_pb": {
"impr_id": "2026110315322310E25D481EBDE823BE1B"
}
}
| Field | Meaning |
|---|---|
comments[] | List of top-level comments on the requested page. |
comments[].cid | ID of the comment. |
comments[].text | Text of the comment. Emoji appear as bracketed tags such as [惊喜]. |
comments[].create_time | Time the comment was posted, as a Unix timestamp in seconds. |
comments[].digg_count | Number of likes on the comment. |
comments[].reply_comment_total | Number of replies under the comment. |
comments[].is_hot | Whether the comment is flagged as a hot comment. |
comments[].text_extra[].user_id / comments[].text_extra[].sec_uid | IDs of users @-mentioned in the comment. start and end give the position of the mention in text. |
comments[].user | Profile data of the commenter, including avatar objects. Some avatar url_list values can be empty. |
total | Total number of comments on the video. |
has_more | 1 when more comments are available on a later page. |
cursor | Position value returned with this page. |
page set to 1. Increase page while has_more is 1.aweme_id and item_comment_total, which match the video and the total value.reply_comment_total.$0.014286 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/video-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"awemeId": "7372484719365098803"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
awemeIdstringआवश्यकThe unique video identifier (aweme_id).
pageintegerPage number (starting from 1).
डिफ़ॉल्ट: 1
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin Video Commentsयह API Douyin | $0.014286 प्रति कॉल | 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/video-comment पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: awemeId (string)। वैकल्पिक: page (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Video Comments SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।