WeChat article comment replies
tikhub.x.wechat-mp-v2-fetch-comment-repliesWechat mp: fetch comment replies (v2)
- Preço
- $0.01/successPelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 5 chamadas
- Latência p50
- ——
- Última verificação
- 28 de jul. de 2026Verificado e funcionando
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-repliesBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Corpo (JSON) | ||||
raw | booleano | Opcional | True=raw response; False=simplified parsed structure | true |
url | string | Obrigatório | 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 | inteiro | 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 | string | Opcional | content_id (numeric) of the target first-level comment; defaults to the first comment that has replies | 12109128638545265979 |
- Corpo (JSON)
rawbooleanoOpcionalTrue=raw response; False=simplified parsed structure
Exemplo:
trueurlstringObrigatórioWeChat MP article URL (https://mp.weixin.qq.com/s/…)
Exemplo:
http://mp.weixin.qq.com/s?__biz=Mzk3NTA0MzM5NA==&mid=2247483745&idx=1&sn=3f34e768cf457a501038991ed30be1f4#rdoffsetinteiroOpcionalReply pagination offset, 0 for first page; pass next_offset from the previous response when has_more=true
Exemplo:
0all_pagesbooleanoOpcionalWhen true, ignore offset and fetch all replies at once
Exemplo:
falsecontent_idstringOpcionalcontent_id (numeric) of the target first-level comment; defaults to the first comment that has replies
Exemplo:
12109128638545265979
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.01/success, incluindo a taxa de serviço.