# WeChat Official Accounts WeChat Index API (wechat_oa.wechat_index)

- Canonical page: [https://everyinfra.com/en/wechat-oa-api/wechat_index](https://everyinfra.com/en/wechat-oa-api/wechat_index?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "wechat_index", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

WeChat Index looks up WeChat's index for one `keyword` and returns the latest value in `latest_index` with its date in `latest_date`, plus the series behind it in `trend`, where `data_points` counts the points. It answers how much attention a word, brand or topic gets inside WeChat and which way that attention is moving, for marketers sizing interest in a brand, content teams timing topics and analysts comparing attention before and after a campaign.

The value is an index, so compare a keyword with its own history first: a rise in `trend` after a launch or a news event says more than any single reading. `keyword` here only feeds the index; to read the articles behind a spike, run the same word through the WeChat Article search capability.

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=wechat_oa&action=wechat_index

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | platform-native meaning |
| latest_index | platform-native meaning |
| latest_date | platform-native meaning |
| data_points | platform-native meaning |
| trend | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "wechat_oa",
  "action": "wechat_index",
  "params": {
    "keyword": "科技"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "wechat_oa",
        "action": "wechat_index",
        "params": {
            "keyword": "科技",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "wechat_index",
  "results": {
    "keyword": …,
    "latest_index": …,
    "latest_date": …,
    "data_points": …,
    "trend": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Is the WeChat Index a search volume?

No. It is an index WeChat computes for the keyword, so read it as a relative measure of attention, not as a count of searches, readers or articles. Use it to compare periods and spot turning points, and avoid converting it into an audience size.

### How do I read `trend`?

`trend` is the series of index values over time, and `data_points` tells you how many values it holds. `latest_index` and `latest_date` give the most recent point on its own, handy for a dashboard figure; chart the full series when you look for peaks and turning points.

### How do I compare several keywords?

Call once per keyword, since each call takes a single `keyword`. Align the series by date before comparing, and check `data_points` so that series of different lengths are not compared point for point. The WeChat Search suggestions capability shows related phrasings that may deserve a series of their own.

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=wechat_oa
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
