评论回复
通过分页方式获取抖音视频顶级评论的回复。用于检查线索讨论并查看已知评论下的反馈。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
comment_id |
必填 | string | 顶级评论的唯一标识符。 | 00 |
— |
page |
可选 | integer | 页码(从1开始)。 | 1 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/douyin/get_video_sub_comment_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'comment_id=00' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/douyin/get_video_sub_comment_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"comment_id": "00",
"page": "1",
},
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/douyin/get_video_sub_comment_v1");
url.search = new URLSearchParams({
comment_id: "00",
page: "1",
});
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,耗时 2045 ms · 请求参数 {"page": "1", "comment_id": "00"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "douyin.get_video_sub_comment_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"extra": {
"now": 1794095875000,
"scenes": null,
"fatal_item_ids": null
},
"total": 0,
"cursor": 0,
"log_pb": {
"impr_id": "2026110807575561E0E76C37FB46D236ED"
},
"comments": null,
"has_more": 0,
"status_code": 0,
"merge_cursor": ""
},
"message": null,
"requestId": "41ed2a32df634215bccea7ee34b1412c",
"recordTime": "2026-11-08T07:57:56.351899937",
"requestParams": {
"body": null,
"query": {
"page": "1",
"commentId": "00"
}
}
}
}