# WeChat Official Account article stats API

The WeChat Official Account article stats API returns the current counts of a WeChat Official Account article by its long link: reads, likes, recommends, shares, saves, comments. One call costs 12 credits ($0.024 to $0.04 depending on the pack); failed calls are free. Call it over HTTP or from your AI client over MCP. Last tested 2026-10-17.

- Page: https://socialtoai.com/wechat-article-stats-api/
- Last updated: 2026-10-17
- Last tested: 2026-10-17

| Request | Price key | Credits |
| --- | --- | --- |
| `POST /v1/call/wechat.article_stats` | `wechat.article_stats` | 12 |

## Request

```bash
curl https://api.socialtoai.com/v1/call/wechat.article_stats \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc"
  }'
```

```python
import os
import requests

response = requests.post(
    "https://api.socialtoai.com/v1/call/wechat.article_stats",
    headers={"Authorization": f"Bearer {os.environ['SOCIALTOAI_KEY']}"},
    json={
        "url": "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc",
    },
)
print(response.json())
```

## Parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | string | Required | — | The article's long link, with __biz, mid, idx and sn |

## Response fields

| Field | Type | Meaning | Given |
| --- | --- | --- | --- |
| `items[].url` | string | A link that opens the item. | always null: WeChat Articles does not give it |
| `items[].format` | string | video, image, text or article. | always null: WeChat Articles does not give it |
| `items[].title` | string | The title. | always null: WeChat Articles does not give it |
| `items[].text` | string | The body text or caption. | always null: WeChat Articles does not give it |
| `items[].published_at` | string | When it was published, ISO 8601 in UTC. | always null: WeChat Articles does not give it |
| `items[].author.id` | string | The author's account ID. | always null: WeChat Articles does not give it |
| `items[].author.username` | string | The author's handle. | always null: WeChat Articles does not give it |
| `items[].author.name` | string | The author's display name. | always null: WeChat Articles does not give it |
| `items[].author.verified` | boolean | Whether the author is verified. | always null: WeChat Articles does not give it |
| `items[].author.followers` | integer | The author's follower count. | always null: WeChat Articles does not give it |
| `items[].metrics.likes` | integer | Likes. | yes |
| `items[].metrics.comments` | integer | Comments. | yes |
| `items[].metrics.shares` | integer | Shares. | yes |
| `items[].metrics.collects` | integer | Saves. | yes |
| `items[].metrics.views` | integer | Views or plays. | yes |
| `items[].metrics.reposts` | integer | Reposts. | always null: WeChat Articles does not give it |
| `items[].images` | string[] | Image addresses. | always null: WeChat Articles does not give it |
| `items[].hashtags` | string[] | Hashtags, without the #. | always null: WeChat Articles does not give it |
| `items[].is_pinned` | boolean | Whether the author pinned it. | always null: WeChat Articles does not give it |

Every item also has platform, id, ref, approx and type; the response around the items is the same on every call. [Response format](https://socialtoai.com/docs/api/response.md)

## Sample response

Sample data: names, links and text are replaced by placeholders; the numbers are as recorded.

```json
{
  "request_id": "req_00000000-0000-4000-8000-000000000001",
  "schema_version": "v1",
  "fetched_at": "2026-10-12T19:03:51.000Z",
  "action": "call",
  "op": "wechat.article_stats",
  "platform": "wechat",
  "status": "ok",
  "items": [
    {
      "platform": "wechat",
      "id": "…",
      "ref": "…",
      "approx": [
        {
          "field": "metrics.views",
          "kind": "lower_bound"
        }
      ],
      "type": "content",
      "url": null,
      "format": null,
      "title": null,
      "text": null,
      "published_at": null,
      "author": null,
      "metrics": {
        "likes": 2218,
        "comments": 6,
        "shares": 8970,
        "collects": 97,
        "views": 100001,
        "reposts": null
      },
      "images": null,
      "hashtags": null,
      "is_pinned": null
    }
  ],
  "unavailable": ["url", "format", "title", "text", "published_at", "author.id", "author.username", "author.name", "author.verified", "author.followers", "metrics.reposts", "images", "hashtags", "is_pinned"],
  "warnings": [],
  "applied_params": {
    "url": "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc"
  },
  "cost_credits": 12,
  "billing": {
    "cost_credits": 12,
    "balance_credits": 88,
    "today_spend_credits": 12,
    "daily_limit_credits": null,
    "daily_remaining_credits": null,
    "display": "This call: 12 credits. Balance: 88 credits."
  },
  "replayed": false
}
```

## Paging and failures

- One call returns one object, with no pages, for 12 credits.
- 1 call per second per key, 5 after a purchase; going over is not charged. [Rate limits](https://socialtoai.com/docs/credits-and-billing.md#rate-limits)
- A failed call costs 0 credits and is never retried on its own. [Error codes](https://socialtoai.com/docs/api/errors.md)

## Ask your AI

- Get the current counts of a WeChat Official Account article by its long link: https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc. → `call {"op":"wechat.article_stats","url":"https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc"}`, 12 credits

## Tools that use it

- [Bulk link data](https://socialtoai.com/tools/batch-stats.md): One row per link with its numbers as they are now. Links that no longer work are marked

## More on WeChat Articles

| Interface | What it does | Price key | Credits | Page |
| --- | --- | --- | --- | --- |
| `search` | Find articles by keyword: text, author, likes and publish time. | `wechat.search` | 12 | https://socialtoai.com/wechat-search-api.md |
| `detail` | One article by link: text, author and publish time. | `wechat.detail` | 12 | https://socialtoai.com/wechat-detail-api.md |
| `comments` | The comments under one article: text, likes, reply count and time. | `wechat.comments` | 12 | https://socialtoai.com/wechat-comments-api.md |
| `user_profile` | One account: name. | `wechat.user_profile` | 12 | https://socialtoai.com/wechat-user-profile-api.md |
| `user_posts` | The recent articles of one account. | `wechat.user_posts` | 12 | https://socialtoai.com/wechat-user-posts-api.md |

## FAQ

**Do I need a WeChat Articles account or WeChat Articles's own API access?**

No. You only need a SocialToAI key. The call returns content and account information publicly visible on WeChat Articles; you never sign in to WeChat Articles or apply for anything there.
