评论回复
获取 TikTok 帖子上特定评论的回复,提供游标分页。使用该接口检查层级讨论,并继续浏览已知帖子评论的回复页面。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
aweme_id |
必填 | string | TikTok帖子的唯一ID。 | 7659488435199053088 |
— |
comment_id |
必填 | string | 要获取回复的评论的唯一ID。 | 7096475339173431297 |
— |
cursor |
可选 | string | 分页游标。从 '0' 开始。 | 0 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/tiktok/get_post_sub_comment_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'aweme_id=7659488435199053088' \
--data-urlencode 'comment_id=7096475339173431297' \
--data-urlencode 'cursor=0'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/tiktok/get_post_sub_comment_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"aweme_id": "7659488435199053088",
"comment_id": "7096475339173431297",
"cursor": "0",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/tiktok/get_post_sub_comment_v1");
url.search = new URLSearchParams({
aweme_id: "7659488435199053088",
comment_id: "7096475339173431297",
cursor: "0",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 824 ms · 请求参数 {"cursor": "0", "aweme_id": "7659488435199053088", "comment_id": "7096475339173431297"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "tiktok.get_post_sub_comment_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"extra": {
"now": 1794095988000,
"logid": "2026110723594822B3CB5D86ED5A7066C7",
"fatal_item_ids": []
},
"total": 0,
"cursor": 0,
"log_pb": {
"impr_id": "2026110723594822B3CB5D86ED5A7066C7"
},
"comments": [],
"has_more": 0,
"status_msg": "",
"status_code": 0
},
"message": null,
"requestId": "030c9b9dd8ea44e087ed588c28c8e6d2",
"recordTime": "2026-11-08T07:59:49.035649607",
"requestParams": {
"body": null,
"query": {
"cursor": "0",
"awemeId": "7659488435199053088",
"commentId": "7096475339173431297"
}
}
}
}