awemeIdstringจำเป็น
The unique ID of the TikTok post (awemeId).
https://api.sandbase.ai/v1/api/tiktok/post-commentGet comments for a TikTok post with cursor pagination. Use it to review audience discussion, continue through comment pages, or support comment analysis for a known post.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns one page of comments for a TikTok post, including comment text, like counts, creation time, and a short preview of replies. It needs the post's awemeId. Use the cursor parameter to move through later pages.
has_more is 0.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/post-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"awemeId": "7701102965385383199"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
awemeId | string | Yes | The unique ID of the TikTok post (awemeId). |
cursor | string | No | Pagination cursor. Start with '0'. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"alias_comment_deleted": false,
"comments": [
{
"allow_download_photo": true,
"author_pin": false,
"aweme_id": "7701102965385383199",
"cid": "7701125977473532702",
"collect_stat": 0,
"comment_language": "en",
"comment_post_item_ids": null,
"content_type": 1,
"create_time": 1793058147,
"digg_count": 7077,
"fold_status": -1,
"image_list": null
}
],
"cursor": 20,
"extra": {
"api_debug_info": null,
"fatal_item_ids": null,
"now": 1793691847000
},
"has_filtered_comments": 0,
"has_more": 1,
"log_pb": {
"impr_id": "20261103074407D623CDF3639ECD01CFBD"
},
"reply_style": 2,
"status_code": 0,
"status_msg": "",
"top_gifts": null,
"total": 2755
}
| Field | Meaning |
|---|---|
comments[].cid | ID of the comment. |
comments[].text | Text of the comment. |
comments[].create_time | Time the comment was posted, as a Unix timestamp in seconds. |
comments[].digg_count | Number of likes on the comment. |
comments[].is_author_digged / comments[].label_list[].text | Show whether the post's creator liked the comment. The label reads Liked by creator when they did. |
comments[].comment_language | Language code of the comment, such as en. |
comments[].reply_comment_total | Total number of replies to the comment. |
comments[].reply_comment[] | A short preview of replies to the comment. It can be null when no preview is returned. |
comments[].user | Profile data for the commenter, such as avatar images in avatar_thumb.url_list. |
total | Total number of comments reported for the post. |
cursor / has_more | cursor is the value for the next page. has_more is 1 when more comments remain. |
awemeId from a video details response, for example from TikTok Video Details.cursor as 0 for the first page. For the next page, pass the cursor value from the previous response.has_more is 0.reply_comment_total, but reply_comment[] holds only a preview, so it may not list every reply.$0.014286 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/tiktok/post-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cursor": "0",
"awemeId": "7701102965385383199"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
awemeIdstringจำเป็นThe unique ID of the TikTok post (awemeId).
cursorstringPagination cursor. Start with '0'.
ค่าเริ่มต้น: "0"
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok Post CommentsAPI นี้ TikTok | $0.014286 ต่อการเรียก | JSON |
TikTok | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/post-comment โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: awemeId (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Post Comments ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก