WeChat Official Account past articles by id or URL
justoneapi.x.weixin-get-account-history-articles-v2Retrieves historical articles for a WeChat Official Account identified by ghid or article URL, with an offset cursor from the previous page.
- Price
- $0.05904/successAt list price
- Success rate
- —No success-rate data yetLast 30 days · 1 calls
- Latency p50
- ——
- Last verified
- Jul 28, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-history-articles-v2Beta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (form) | ||||
url | string | Optional | WeChat Official Account article URL used to identify the account and fetch historical articles. Use either ghid or url. | |
ghid | string | Optional | WeChat Official Account original identifier, using the gh_ prefix returned by WeChat. Use either ghid or url. | |
offset | string | Optional | PagingInfo.Offset cursor returned by the previous response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body. | |
- Request body (form)
urlstringOptionalWeChat Official Account article URL used to identify the account and fetch historical articles. Use either ghid or url.
ghidstringOptionalWeChat Official Account original identifier, using the gh_ prefix returned by WeChat. Use either ghid or url.
offsetstringOptionalPagingInfo.Offset cursor returned by the previous response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X POST 'https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-history-articles-v2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"url":"https://mp.weixin.qq.com/s/y9x8Zvza3KFBdnxCWS5t7A","ghid":"gh_363b924965e9","offset":"0"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-history-articles-v2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"url\":\"https://mp.weixin.qq.com/s/y9x8Zvza3KFBdnxCWS5t7A\",\"ghid\":\"gh_363b924965e9\",\"offset\":\"0\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.weixin-get-account-history-articles-v2", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"url\":\"https://mp.weixin.qq.com/s/y9x8Zvza3KFBdnxCWS5t7A\",\"ghid\":\"gh_363b924965e9\",\"offset\":\"0\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.05904/success, including the service fee.