WeChat · User profiles
Official Account's custom menu
Send account IDs or custom WeChat IDs; get each Official Account's custom menu as a tree of entry names, links and mini programs.
POST/v1/wechat/accountMenu
$0.0184per record
- 1,000 records
- ≈ $18.40
- minimum per record fetched
- $0.012723
Paid balance onlyOne request, no cursor
Send it
POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.
curl -X POST "https://api.silklinedata.com/v1/wechat/accountMenu" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"accounts":["gh_05f192fce051"]}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/wechat/accountMenu",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"accounts": ["gh_05f192fce051"],
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/wechat/accountMenu", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"accounts": [
"gh_05f192fce051"
]
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);What comes back
Records from a real request on 2026-11-21. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.
{
"data": [
{
"type": "accountMenu",
"accountId": "gh_05f192fce051",
"menuUpdatedAt": "2026-10-20T07:11:56Z",
"entryCount": 12,
"menu": [
{
"name": "榜单",
"kind": "group",
"url": null,
"miniProgramId": null,
"miniProgramPath": null,
"children": [
{
"name": "中国年度新锐榜",
"kind": "link",
"url": "https://mp.weixin.qq.com/mp/appmsgalb…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "新锐人物",
"kind": "link",
"url": "https://mp.weixin.qq.com/mp/appmsgalb…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "中国视频榜",
"kind": "link",
"url": "https://mp.weixin.qq.com/mp/appmsgalb…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
}
]
},
{
"name": "新锐之选",
"kind": "group",
"url": null,
"miniProgramId": null,
"miniProgramPath": null,
"children": [
{
"name": "购买杂志",
"kind": "link",
"url": "https://weidian.com/?userid=320434472…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "下载APP",
"kind": "link",
"url": "https://neweekly.datasink.sensorsdata…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "新周刊文创",
"kind": "shop",
"url": null,
"miniProgramId": null,
"miniProgramPath": null,
"children": []
}
]
},
{
"name": "商务合作",
"kind": "group",
"url": null,
"miniProgramId": null,
"miniProgramPath": null,
"children": [
{
"name": "联系方式",
"kind": "message",
"url": null,
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "商业好玩",
"kind": "link",
"url": "http://mp.weixin.qq.com/mp/homepage?_…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
},
{
"name": "视频策划",
"kind": "link",
"url": "http://mp.weixin.qq.com/s?__biz=MjM5O…",
"miniProgramId": null,
"miniProgramPath": null,
"children": []
}
]
}
]
}
],
"cursor": null,
"meta": {
"request_id": "req_01JD8Q…",
"charged_usd": "0.018400",
"balance_usd": "9.875000",
"items": 1
}
}Fields 5
| Field | Type | Example value |
|---|---|---|
| type | string | accountMenu |
| accountId | string | gh_05f192fce051 |
| menuUpdatedAt | string | 2026-10-20T07:11:56Z |
| entryCount | number | 12 |
| menu | array | [{"name":"榜单","kind":"group","url":null,"miniProgramId":null… |
Parameters 2
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | How many records to return, 1 to 100. A request never returns more than this. | 5 |
| accounts | array | yes | Account IDs (gh_...), custom WeChat IDs, or the link of any article the account published. | ["gh_05f192fce051"] |
Paging
This endpoint answers in one request: raise limit (up to 100) for more records. cursor is always null.
What a request costs
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.
Here each record is fetched on its own; the minimum is $0.012723 for each.
- 1 record: up to $0.0184
- 20 records: up to $0.368
- 100 records: up to $1.84
The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.
Questions
What parameters does Official Account's custom menu take?
Required: accounts. Every request also takes limit (1 to 100).
How many records does one request return?
Up to 100 (limit 1 to 100). A page holds up to 1 records, so 100 records take 100 pages in one request.
Can I page through more results?
No. This endpoint answers in full in one request; the answer's cursor is null.
How much does it cost?
Per record: detail record $0.0184. The minimum is $0.012723 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $1.84.
What does a request cost when it fails or comes back empty?
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.