帖子评论
获取 TikTok 帖子的评论,提供游标分页。使用该接口审查受众讨论、继续浏览评论页面,或支持对已知帖子的评论分析。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
aweme_id |
必填 | string | TikTok 帖子的唯一 ID(awemeId)。 | 7659488435199053088 |
— |
cursor |
可选 | string | 分页游标。从 '0' 开始。 | 0 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/tiktok/get_post_comment_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'aweme_id=7659488435199053088' \
--data-urlencode 'cursor=0'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/tiktok/get_post_comment_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"aweme_id": "7659488435199053088",
"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_comment_v1");
url.search = new URLSearchParams({
aweme_id: "7659488435199053088",
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,耗时 1063 ms · 请求参数 {"cursor": "0", "aweme_id": "7659488435199053088"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "tiktok.get_post_comment_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"extra": {
"now": 1794095988000,
"api_debug_info": null,
"fatal_item_ids": null
},
"total": 1989,
"cursor": 20,
"log_pb": {
"impr_id": "20261107235948E28E029D4342207D6CA8"
},
"comments": [
{
"cid": "7660021961331114765",
"…": "+19",
"no_show": false,
"aweme_id": "7659488435199053088",
"reply_id": "0",
"author_pin": false,
"digg_count": 16144,
"image_list": null,
"label_list": [
{
"text": "Liked by creator",
"type": 20
}
],
"create_time": 1783487902,
"fold_status": -1,
"collect_stat": 0,
"content_type": 17,
"reply_comment": [
{
"cid": "7660044548236706593",
"…": "+18",
"no_show": false,
"aweme_id": "7659488435199053088",
"author_pin": false,
"digg_count": 1099,
"image_list": null,
"label_list": [
{
"text": "Creator",
"type": 1
}
],
"label_text": "Creator",
"label_type": 1,
"create_time": 1783493155,
"fold_status": 0,
"collect_stat": 0,
"content_type": 1,
"reply_comment": null,
"comment_language": "de",
"is_author_digged": false,
"allow_download_photo": true,
"comment_post_item_ids": null,
"is_comment_translatable": true,
"is_high_purchase_intent": true
}
],
"comment_language": "en",
"is_author_digged": true,
"reply_comment_total": 7,
"allow_download_photo": true,
"comment_post_item_ids": null,
"is_comment_translatable": true,
"is_high_purchase_intent": false
},
"… +19"
],
"has_more": 1,
"top_gifts": null,
"status_msg": "",
"reply_style": 2,
"status_code": 0,
"cache_status": -1,
"alias_comment_deleted": false,
"has_filtered_comments": 0
},
"message": null,
"requestId": "078ff2f0ac7c470495a52cadb286f16e",
"recordTime": "2026-11-08T07:59:49.086221779",
"requestParams": {
"body": null,
"query": {
"cursor": "0",
"awemeId": "7659488435199053088"
}
}
}
}