视频子评论
使用视频和根评论ID检索微信视频号视频一级评论下的回复。用于通过缓冲分页继续线程化的评论讨论。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
object_id |
必填 | string | 用于获取二级评论回复的微信视频号视频对象ID。 | 15002167188052908630 |
— |
root_comment_id |
必填 | string | 微信视频号视频评论接口返回的根一级评论ID。 | 15002167188052908630 |
— |
last_buffer |
可选 | string | 微信视频号二级评论回复的分页缓冲区。当存在时,使用一级评论的 last_buffer 作为第一页回复。对于此 POST 接口,请以 application/x-www-form-urlencoded 格式在请求体中发送。 | — | — |
代码示例
curl -G "https://api.mofa-ai.com/v1/weixin_channels/get_video_sub_comment_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'object_id=15002167188052908630' \
--data-urlencode 'root_comment_id=15002167188052908630'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weixin_channels/get_video_sub_comment_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"object_id": "15002167188052908630",
"root_comment_id": "15002167188052908630",
},
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/weixin_channels/get_video_sub_comment_v1");
url.search = new URLSearchParams({
object_id: "15002167188052908630",
root_comment_id: "15002167188052908630",
});
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,耗时 872 ms · 请求参数 {"object_id": "15002167188052908630", "root_comment_id": "15002167188052908630"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin_channels.get_video_sub_comment_v1",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"req_p": "192.168.1.129:2020",
"last_buffer": "",
"comment_info": [],
"down_continue_flag": 0
},
"message": null,
"requestId": "f403ea7fbe4149fcae58ea77473ee62e",
"recordTime": "2026-11-08T07:58:41.294868845",
"requestParams": {
"body": {
"objectId": "15002167188052908630",
"rootCommentId": "15002167188052908630"
},
"query": {}
}
}
}