<p class="crumbs"><a href="/apis/">Data APIs</a> / <a href="/apis/wechat/">WeChat Search</a></p>

# WeChat Index API

A keyword’s WeChat Index for each of the last 30 days (WeChat’s score of attention across search, articles, Moments and more).

| Item | Value |
| --- | --- |
| Endpoint | `GET https://api.feedmcp.com/v1/wechat/index/history` |
| ID | `wechat.index.history` |
| Price | **$0.10** / call |
| Returns | A page of Stats objects |
| Auth | `Authorization: Bearer $FEEDMCP_API_KEY` |

> The WeChat Index scores attention across search, articles, Moments and more; it is not a search count and does not compare with Douyin or Xiaohongshu indexes.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `keyword` | string | yes | Search keyword |

Every endpoint also takes `view=full` to include the platform's raw data as `raw`, at the same price.

## Returned fields

`data.items` is a list of Stats objects, with the same fields on every platform:

| Field | Type | Description |
| --- | --- | --- |
| `platform` | string | Platform |
| `subject_id` | string | Whose figures these are: creator ID or keyword |
| `period` | string \| null | Period covered; for day-by-day lists, the day (YYYY-MM-DD) |
| `metrics` | object | The figures, named on each endpoint page; rates are 0–1 and money is CNY |

## When you are charged

$0.10 per successful call, including an empty result (an empty search is still an answer). Bad parameters, platform errors and timeouts are free.

Each answer carries `meta.billing`: what this call cost and the balance left.

## Request

### cURL

```bash
curl "https://api.feedmcp.com/v1/wechat/index/history?keyword=%E9%9C%B2%E8%90%A5" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"
```

### Python

```python
import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/wechat/index/history",
    params={"keyword": "露营"},
    headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
    timeout=30,
)
print(r.json())
```

### JavaScript

```js
const res = await fetch("https://api.feedmcp.com/v1/wechat/index/history?keyword=%E9%9C%B2%E8%90%A5", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());
```

### MCP

From an AI with FeedMCP installed, the `call` tool:

```json
{
  "endpoint": "wechat.index.history",
  "params": {
    "keyword": "露营"
  },
  "max_price": "0.10"
}
```

## Response

The data below is made up; the shape is the real one.

```json
{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "items": [
      {
        "platform": "wechat",
        "subject_id": "露营",
        "period": "2026-10-21",
        "metrics": {
          "wechat_index": 40151387
        }
      },
      {
        "platform": "wechat",
        "subject_id": "露营",
        "period": "2026-10-22",
        "metrics": {
          "wechat_index": 37891247
        }
      }
    ]
  },
  "page": {
    "next_cursor": null,
    "has_more": false
  },
  "warnings": [],
  "meta": {
    "endpoint": "wechat.index.history",
    "platform": "wechat",
    "fetched_at": "2026-11-19T08:00:00.000Z",
    "source": "FeedMCP",
    "catalog_revision": "d09a736bd39e8b3f",
    "billing": {
      "charged": true,
      "amount": "0.10",
      "currency": "USD",
      "balance": "9.98"
    }
  }
}
```

Errors are described in [Errors](/docs/errors/): each says whether you were charged (`charged`) and whether to retry (`retry`).

## Other WeChat Search endpoints

- [WeChat account search](/apis/wechat/accounts/search/)：$0.02
- [WeChat Search suggestions](/apis/wechat/keywords/related/)：$0.10

## Questions

### How much does the WeChat Index endpoint cost?

$0.10 per successful call, including an empty result (an empty search is still an answer). Bad parameters, platform errors and timeouts are free.

### Do I need a platform account?

No. Only public data is read.

### Where do I find the ID or link?

Just pass a keyword. Official accounts come back with their gh_… ID, Channels accounts with v2_…@finder, mini programs with their gh_… ID.

### How do I get more items?

When the answer has `page.next_cursor`, pass it back as `cursor` for the next page. Each page is billed on its own.

### How do I use it from an AI?

Install the [MCP server](/mcp/) and ask; your AI calls `wechat.index.history`.

---

HTML version: https://feedmcp.com/apis/wechat/index/history/
