微信指数 API
一个关键词最近 30 天每天的微信指数(微信对这个词在搜索、文章、朋友圈等处热度的综合评分)。
| 项目 | 值 |
|---|---|
| 地址 | GET https://api.feedmcp.com/v1/wechat/index/history |
| ID | wechat.index.history |
| 价格 | $0.10 / 次 |
| 返回 | 一页 数据指标对象列表 |
| 认证 | Authorization: Bearer $FEEDMCP_API_KEY |
微信指数是微信对一个词在搜索、文章、朋友圈等处热度的综合评分,不是搜索次数,不能和抖音、小红书的指数直接比较。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
keyword |
string | 是 | 搜索关键词 |
所有接口还支持 view=full:在返回里附上平台的原始数据(raw),价格不变。
返回字段
data.items 是一组「数据指标」对象,所有平台字段相同:
| 字段 | 类型 | 说明 |
|---|---|---|
platform |
string | 平台 |
subject_id |
string | 这组数据属于谁:达人 ID 或关键词 |
period |
string | null | 统计周期;按天列出的数据是那一天(YYYY-MM-DD) |
metrics |
object | 指标,名字见每个接口页;比例都是 0–1,金额都是人民币元 |
什么时候扣费
成功调用一次 $0.10,空结果也算一次(搜索的空结果也是答案)。参数错误、平台出错、超时都不收费。
每次返回的 meta.billing 里写着这次扣了多少、还剩多少余额。
调用示例
cURL
curl "https://api.feedmcp.com/v1/wechat/index/history?keyword=%E9%9C%B2%E8%90%A5" \
-H "Authorization: Bearer $FEEDMCP_API_KEY"
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
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
在装好 FeedMCP 的 AI 里,调用 call 工具:
{
"endpoint": "wechat.index.history",
"params": {
"keyword": "露营"
},
"max_price": "0.10"
}
返回示例
示例数据是虚构的,格式和真实返回一致。
{
"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"
}
}
}
出错时的格式见 错误码:每个错误都写明扣没扣钱(charged)和能不能重试(retry)。
微信搜一搜的其他接口
常见问题
微信指数接口多少钱?
成功调用一次 $0.10,空结果也算一次(搜索的空结果也是答案)。参数错误、平台出错、超时都不收费。
需要平台账号吗?
不需要,只取公开数据。
ID 或链接怎么找?
传关键词即可。搜到的公众号用 gh_ 开头的原始 ID,视频号用 v2_…@finder,小程序用 gh_ 开头的原始 ID。
怎么取更多条?
返回里有 page.next_cursor 时,把它作为 cursor 参数传回来取下一页。每一页单独计费。
怎么在 AI 里用?
装好 MCP 后直接说你要什么,AI 会调用 wechat.index.history。