WeChat article comment replies
tikhub.x.wechat-mp-v2-fetch-comment-repliesWechat mp: fetch comment replies (v2)
- Precio
- $0.01/successA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 5 llamadas
- Latencia p50
- ——
- Última verificación
- 28 jul 2026Verificado y operativo
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-repliesBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Cuerpo (JSON) | ||||
raw | booleano | Opcional | True=raw response; False=simplified parsed structure | true |
url | cadena | Obligatorio | 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 | entero | Opcional | Reply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true | 0 |
all_pages | booleano | Opcional | When true, ignore offset and fetch all replies at once | false |
content_id | cadena | Opcional | content_id (numeric) of the target first-level comment; defaults to the first comment that has replies | 12109128638545265979 |
- Cuerpo (JSON)
rawbooleanoOpcionalTrue=raw response; False=simplified parsed structure
Ejemplo:
trueurlcadenaObligatorioWeChat MP article URL (https://mp.weixin.qq.com/s/…)
Ejemplo:
http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rdoffsetenteroOpcionalReply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true
Ejemplo:
0all_pagesbooleanoOpcionalWhen true, ignore offset and fetch all replies at once
Ejemplo:
falsecontent_idcadenaOpcionalcontent_id (numeric) of the target first-level comment; defaults to the first comment that has replies
Ejemplo:
12109128638545265979
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.01/success, incluida la tarifa de servicio.