WeChat article comment replies
tikhub.x.wechat-mp-v2-fetch-comment-repliesWechat mp: fetch comment replies (v2)
- Price
- $0.01/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
- Latency p50
- ——
- Last verified
- 28 juil. 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-repliesPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Corps (JSON) | ||||
raw | booléen | Facultatif | True=raw response; False=simplified parsed structure | true |
url | chaîne | Obligatoire | 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 | entier | Facultatif | Reply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true | 0 |
all_pages | booléen | Facultatif | When true, ignore offset and fetch all replies at once | false |
content_id | chaîne | Facultatif | content_id (numeric) of the target first-level comment; defaults to the first comment that has replies | 12109128638545265979 |
- Corps (JSON)
rawbooléenFacultatifTrue=raw response; False=simplified parsed structure
Exemple :
trueurlchaîneObligatoireWeChat MP article URL (https://mp.weixin.qq.com/s/…)
Exemple :
http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rdoffsetentierFacultatifReply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true
Exemple :
0all_pagesbooléenFacultatifWhen true, ignore offset and fetch all replies at once
Exemple :
falsecontent_idchaîneFacultatifcontent_id (numeric) of the target first-level comment; defaults to the first comment that has replies
Exemple :
12109128638545265979
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.01/success, frais de service inclus.