WeChat Index Search
Queries WeChat Index for a keyword. Use it to examine trend interest within WeChat before planning content, campaigns, or further article research.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
keyword |
Required | string | Keyword used to query WeChat Index trend signals. | 咖啡 |
— |
Code samples
curl -G "https://api.mofa-ai.com/v1/weixin/search_wechat_index_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weixin/search_wechat_index_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/weixin/search_wechat_index_v1");
url.search = new URLSearchParams({
keyword: "咖啡",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
Example response
Captured 2026-11-07, took 1048 ms · Request parameters {"keyword": "咖啡"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin.search_wechat_index_v1",
"cost_usd": 0.16,
"data": {
"code": 0,
"data": {
"ret": 0,
"data": [
{
"type": 52,
"boxID": "0x40000-15048-",
"count": 1,
"items": [
{
"docID": "1-7123206500956315942",
"title": "",
"source": {
"title": "微信指数",
"iconUrl": "http://mmbiz.qpic.cn/mmbiz_png/uic3vZ5pI29sdd0tUo5t4pxmJMsMO9iaxM8EOxTX1VUAWjQibib0juc81kMkUgtB9IibIg58TZocULicPJ7lichq8E1VQ/640?wx_fmt=png&wxfrom=200"
},
"itemInfo": {
"data": [
{
"index": "94217706",
"timestamp": 1791388800
},
{
"index": "89524815",
"timestamp": 1791475200
},
"… +28"
],
"type": 1058,
"title": "咖啡 - 微信指数"
},
"jumpInfo": {
"jumpType": 2,
"reportId": "chart:chart:608831",
"userName": "gh_935b85261f35@app",
"weappUrl": "/page/detail/detail?calculate_word=咖啡"
}
}
],
"boxPos": 1,
"subType": 15048,
"real_type": 262144,
"boxPosMerge": 1,
"useNativeRender": false
}
],
"lang": "zh_CN",
"query": "咖啡",
"offset": 20,
"cookies": "{\"box_offset\":0,\"businessType\":8192,\"clm_box_offset\":1,\"clm_sub_box_offset\":1,\"cookies_buffer\":\"UoMBCGIQARiAQCIG5ZKW5ZWhUAGCAQUQAKIBALIBAhgAyAEA8gEUMTM0MzY1NjAyNjAwNTEzMDg3OTP6ATUIgNbXr6+X+vIYEKSeyYyI…",
"category": [
{
"type": 0,
"word": "全部"
},
{
"type": 7,
"word": "视频号"
},
"… +14"
],
"isDivide": 0,
"searchID": "1794095916265106176",
"direction": 2,
"timeStamp": 1794095913,
"experiment": [
{
"key": "mmsearch_shopping_cart_entry",
"value": "1"
},
{
"key": "s1s_all_prefetch_next_page",
"value": "2"
},
"… +3"
],
"isHomePage": 0,
"nomoreText": "没有更多的搜索结果",
"pageNumber": 1,
"resultType": 0,
"continueFlag": 0,
"isAutoPlayVideo": 1,
"enableQuestionClosely": false
},
"message": null,
"requestId": "27f38611189c497395a8394d2c8775f4",
"recordTime": "2026-11-08T07:58:33.343241211",
"requestParams": {
"body": null,
"query": {
"keyword": "咖啡"
}
}
}
}