WeChat article comment replies
tikhub.x.wechat-mp-v2-fetch-comment-repliesWechat mp: fetch comment replies (v2)
- 价格
- $0.01/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年7月28日实测可用
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-replies预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
raw | 布尔 | 可选 | True=raw response; False=simplified parsed structure | true |
url | 字符串 | 必填 | WeChat MP article URL (https://mp.weixin.qq.com/s/…) | http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rd |
offset | 整数 | 可选 | Reply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true | 0 |
all_pages | 布尔 | 可选 | When true, ignore offset and fetch all replies at once | false |
content_id | 字符串 | 可选 | content_id (numeric) of the target first-level comment; defaults to the first comment that has replies | 12109128638545265979 |
- 请求体(JSON)
raw布尔可选True=raw response; False=simplified parsed structure
示例:
trueurl字符串必填WeChat MP article URL (https://mp.weixin.qq.com/s/…)
示例:
http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rdoffset整数可选Reply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true
示例:
0all_pages布尔可选When true, ignore offset and fetch all replies at once
示例:
falsecontent_id字符串可选content_id (numeric) of the target first-level comment; defaults to the first comment that has replies
示例:
12109128638545265979
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-replies' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"raw":true,"url":"http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rd","offset":0,"all_pages":false,"content_id":"12109128638545265979"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-replies",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"raw\":true,\"url\":\"http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rd\",\"offset\":0,\"all_pages\":false,\"content_id\":\"12109128638545265979\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-replies", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"raw\":true,\"url\":\"http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rd\",\"offset\":0,\"all_pages\":false,\"content_id\":\"12109128638545265979\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.01/success 计费,已含服务费。