WeChat article comment replies
tikhub.x.wechat-mp-v2-fetch-comment-repliesWechat mp: fetch comment replies (v2)
- Price
- $0.01/success제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- Latency p50
- ——
- Last verified
- 2026. 7. 28.Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-mp-v2-fetch-comment-repliesPreviewTry online출시 예정Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 요청 본문(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를 콘솔에서 생성한 키로 바꾸세요.
Preview
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());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.01/success이며 서비스 수수료가 포함되어 있습니다.