# WeChat Official Accounts services and custom menu

Pass a gh_username to get the custom menu / service entries at the bottom of the official account. Needs username. Served by TikHub.

Purpose:
- Pass a `gh_username` to get the custom menu / service entries at the bottom of the official account. Accounts without a custom menu return an empty menu.
- ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.
Parameters:
- username: Official account `gh_username` (`gh_…`). E.g. `gh_363b924965e9`
- raw: Optional, default True. True=raw; False=simplified parsing.
Return:
- Custom menu / service entries of the official account

Response structure & JSON Path:
`raw=false` (simplified, snake_case):
- Account username: `$.data.biz_username`
- Menu item list (`[]` when no menu): `$.data.menu[]` — each item is a menu button (name / type / sub-menu / jump); the array is empty for accounts without a custom menu.
`raw=true` (raw, default for this endpoint):
- `data` is the full raw menu structure. Accounts without a configured menu return an empty object `{}`.
- The simplified `menu[]` is extracted from this raw structure.

- Tool ID: `tikhub/wechat-mp-v2-fetch-account-services`
- Name in the catalog: Wechat_mp, Get WeChat MP Account Services & Custom Menu
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [WeChat profiles](/tools/wechat/profiles.md)
- Price: $0.01 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.01
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.01; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "maxLength": 80,
      "pattern": "^[0-9A-Za-z][-_0-9A-Za-z]{1,63}(@[0-9A-Za-z]{1,16})?$",
      "title": "Username",
      "description": "公众号 username。三种形态都支持：`gh_…`、`gh_…@app`（关联小程序的账号）、以及自定义微信号（如 `nikejdi`）。取自文章详情接口响应的 `$.data.content.user_name`/Official account username. Three forms are supported: `gh_…`, `gh_…@app` (mini-program-linked accounts) and custom WeChat IDs (e.g. `nikejdi`). Taken from `$.data.content.user_name` of the article detail endpoints"
    },
    "raw": {
      "type": "boolean",
      "title": "Raw",
      "description": "True=原始响应；False=精简解析结构/True=raw response; False=simplified parsed structure",
      "default": true
    }
  },
  "required": [
    "username"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/wechat-mp-v2-fetch-account-services",
  "input": {
    "username": "gh_363b924965e9",
    "raw": true
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/WeChat-Media-Platform-V2-API/fetch_account_services_api_v1_wechat_mp_v2_fetch_account_services_post)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/wechat-mp-v2-fetch-account-services) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/wechat-mp-v2-fetch-account-services) · [Agent index](/llms.txt)
