# WeChat MP Article Stats (H5) API

> Get WeChat MP Article Stats (H5) on WeChat MP. Returns the platform data as structured JSON.

Source: https://www.sandbase.ai/apis/wechat-mp/v2/article-stats-h5
API reference: https://www.sandbase.ai/apis/wechat-mp/v2/article-stats-h5/docs

## Facts

- Provider: WeChat MP
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats-h5`
- Price: $0.01 per call
- Capabilities: api, wechat mp
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats-h5` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `url` | string | yes |  |
| `raw` | boolean | no |  |
| `comment_id` | string | no |  |

## FAQ

### How do I use the WeChat MP Article Stats (H5) API?

Send a POST request to https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats-h5 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the WeChat MP Article Stats (H5) API cost?

$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the WeChat MP Article Stats (H5) API accept?

Required: url (string). Optional: raw (boolean) and comment_id (string). The Parameters table and the Playground on this page list every field.

### What does the WeChat MP Article Stats (H5) API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a WeChat MP developer account or API key?

No. WeChat MP Article Stats (H5) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for WeChat MP API access separately.

## README

### WeChat MP Article Stats (H5) API

Get WeChat MP Article Stats (H5) on WeChat MP. Returns the platform data as structured JSON.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/wechat-mp/v2/article-stats-h5" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw", "raw": true}'
```

The result is returned in `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `url` | string | Yes | /mp.weixin.qq.com/s/WeChat MP article URL (https://mp.weixin.qq.com/s/… or long URL with __biz) |
| `comment_id` | string | No | 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 |
| `raw` | boolean | No | True=raw response; False=simplified parsed structure |

#### Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
