# WeChat Official Accounts MP article stats

Fetch comment counts for a WeChat MP article via the H5 channel. Needs url. Served by TikHub.

Purpose:
- Fetch comment counts for a WeChat MP article via the H5 channel.
- Read count / likes / shares / favorites are **not available** here: they are returned as
  `null` and listed in `$.data.unavailable[]` (never faked as `0`). Use
  `/fetch_article_stats` when you need them.
Parameters:
- url: WeChat MP article URL.
- raw: Optional, default True. True = include raw counter fields; False = counts only.
Returns:
- comment_count / elected_comment_count; other metrics are null and listed in unavailable[]

- Tool ID: `tikhub/wechat-mp-v2-fetch-article-stats-h5`
- Variant: H5 page
- Name in the catalog: Wechat_mp, Get WeChat MP Article Stats (H5)
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [WeChat posts](/tools/wechat/posts.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": {
    "url": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^https?://mp\\.weixin\\.qq\\.com/s([/?].+)?$",
      "title": "Url",
      "description": "公众号文章链接（https://mp.weixin.qq.com/s/… 或带 __biz 的长链）/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz)"
    },
    "raw": {
      "type": "boolean",
      "title": "Raw",
      "description": "True=原始响应；False=精简解析结构/True=raw response; False=simplified parsed structure",
      "default": true
    },
    "comment_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32,
          "pattern": "^[0-9]*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Comment Id",
      "description": "文章的评论 id（可选，**性能捷径**）：不传时上游要先抓并解析整篇文章 HTML 才能拿到它，约占本接口耗时的一半；已有该值时传进来可显著加快。取自 /fetch_article_detail 或 /fetch_article_detail_h5 响应的 `$.data.content.comment_id`/Article comment id (optional, performance shortcut): when omitted, upstream must fetch and parse the whole article HTML to obtain it, which accounts for about half of this endpoint's latency"
    }
  },
  "required": [
    "url"
  ],
  "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-article-stats-h5",
  "input": {
    "url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
    "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_article_stats_h5_api_v1_wechat_mp_v2_fetch_article_stats_h5_post)

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

---

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