comment_idstringจำเป็น
Comment id
https://api.sandbase.ai/v1/api/douyin/app-v3/video-comment-repliesReturns reply comments for a specific comment on a Douyin video based on the video ID and comment ID, with support for cursor-based pagination.
[
{
"data": {
"comments": null,
"cursor": 0,
"extra": {
"fatal_item_ids": null,
"now": 1787219150000,
"scenes": null
},
"has_more": 0,
"log_pb": {
"impr_id": "202608201745503DFA256C2818C925E1B7"
},
"merge_cursor": "",
"status_code": 0,
"total": 0
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the reply comments under one comment on a Douyin video. It needs the video ID (item_id) and the parent comment ID (comment_id), and it pages through replies with a cursor.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"comment_id": "7354669356632638218", "item_id": "7354666303006723354"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
comment_id | string | Yes | Comment id |
item_id | string | Yes | Video id |
count | integer | No | Number Please keep the default, otherwise there will be BUG. |
cursor | integer | No | Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comments": [
{
"aweme_id": "7354666303006723354",
"can_collect": false,
"can_share": true,
"cid": "7354723548119139098",
"comment_reply_total": 288,
"comment_token": "MS4wLjAA…",
"content_type": 1,
"create_time": 1712405022,
"decorated_emoji_info": null,
"digg_count": 15944,
"image_list": null,
"ip_label": "湖南"
}
],
"cursor": 20,
"extra": {
"fatal_item_ids": null,
"now": 1793691101000,
"scenes": null
},
"has_more": 1,
"log_pb": {
"impr_id": "202611031531417B52BA2153595311905D"
},
"merge_cursor": "",
"status_code": 0,
"total": 288
}
| Field | Meaning |
|---|---|
comments[].cid | ID of the reply comment. |
comments[].text | Text of the reply. Emoji appear as bracket codes such as [再见]. |
comments[].create_time | Time the reply was posted, as a Unix timestamp in seconds. |
comments[].digg_count | Number of likes on the reply. |
comments[].reply_id / comments[].root_comment_id | ID of the comment being replied to, and the ID of the top level comment of the thread. |
comments[].reply_to_username / comments[].reply_to_userid / comments[].reply_to_user_sec_id | Name and IDs of the user this reply is directed at. These appear when the reply targets another reply. |
comments[].ip_label | Location label shown next to the reply, such as a province name. |
comments[].label_text | Badge shown on the reply. The value 作者 marks a reply with the author label. It is empty when there is no badge. |
comments[].user.avatar_thumb.url_list | Image URLs for the small avatar of the user who wrote the reply. |
total / has_more / cursor | total is the number of replies to the comment. has_more is 1 when more pages exist. cursor is the value to send for the next page. |
item_id from the video and comment_id from a top level comment. Use Douyin Video Comments to list those comments first.cursor as 0. For the next page, send the cursor value from the previous response. Stop when has_more is not 1.count at its default value. The parameter description warns that other values cause bugs.comment_reply_total and aweme_id, which is the video ID.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"item_id": "example",
"comment_id": "example"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
comment_idstringจำเป็นComment id
item_idstringจำเป็นVideo id
countintegerNumber Please keep the default, otherwise there will be BUG.
cursorintegerCursor, used for paging, the first page is 0, the second page is the cursor value in the first response.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"comments": null,
"cursor": 0,
"extra": {
"fatal_item_ids": null,
"now": 1787219150000,
"scenes": null
},
"has_more": 0,
"log_pb": {
"impr_id": "202608201745503DFA256C2818C925E1B7"
},
"merge_cursor": "",
"status_code": 0,
"total": 0
}
}
]สำรวจเพิ่มเติม
| 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 |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/app-v3/video-comment-replies โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: comment_id (string) และ item_id (string). ตัวเลือก: count (integer) และ cursor (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Video Comment Replies (App V3) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก