微信指数 API
按关键词取它最近 30 天的微信指数,一天一个数。微信指数是微信综合搜索、文章、朋友圈等算出的热度分,不是搜索次数,不能和抖音、小红书的指数比;日期是中国时间(UTC+8)的自然日。每次最多 1 条;$0.1 一次。出错和超时不收费;空结果收 $0.1。
composite_index9/29 – 10/5composite_index44,085,199composite_index52,354,075composite_index35,843,833看数据表
curl -G "https://api.dataxapi.com/v1/wechat/index/keywords/history" \ --data-urlencode "keyword=咖啡" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "678d6757-f6b6-4e9d-9159-8f112fd77386",
"data": {
"items": [
{
"keyword": "露营",
"points": [
{
"date": "2026-09-29T00:00:00.000Z",
"composite_index": 38626358
},
{
"date": "2026-09-30T00:00:00.000Z",
"composite_index": 35843833
},
{
"date": "2026-10-01T00:00:00.000Z",
"composite_index": 38536619
},
{
"date": "2026-10-02T00:00:00.000Z",
"composite_index": 43998859
},
{
"date": "2026-10-03T00:00:00.000Z",
"composite_index": 51530144
},
{
"date": "2026-10-04T00:00:00.000Z",
"composite_index": 47706506
},
{
"date": "2026-10-05T00:00:00.000Z",
"composite_index": 52354075
},
// … 另有 23 条
]
}
]
},
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 1
},
"warnings": [],
"meta": {
"capability": "wechat.index.keywords.history",
"result_status": "complete",
"fetched_at": "2026-10-29T09:49:49.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"points.search_index": "platform",
"points.notes": "platform",
"points.impressions": "platform",
"points.views": "platform",
"points.engagements": "platform"
},
"billing": {
"amount": "0.1",
"currency": "USD",
"balance_after": "9.9"
}
}
}取自 2026-10-29 09:49 UTC 录下的真实返回。名字、正文和编号是示例,链接也是,都不是录到的原文(页面不展示任何人的个人信息);数字是原样。长列表做了截断。请求号、游标和余额是示意。
返回大小:标准档 2.4 KB(精简 2.4 KB,完整 2.4 KB)。
{
"code": "ok",
"request_id": "75bac3e2-3fa9-447e-a0b8-96bd48ded2b4",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "wechat.index.keywords.history",
"result_status": "empty",
"fetched_at": "2026-10-29T09:49:49.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"points.search_index": "platform",
"points.notes": "platform",
"points.impressions": "platform",
"points.views": "platform",
"points.engagements": "platform"
},
"billing": {
"amount": "0.1",
"currency": "USD",
"balance_after": "9.9"
}
}
}取自 2026-10-29 09:49 UTC 的录制,为演示这种情况人工改过。请求号和余额是示意。
返回大小:标准档 560 B(精简 560 B,完整 560 B)。
curl -G "https://api.dataxapi.com/v1/wechat/index/keywords/history" \ --data-urlencode "keyword=咖啡" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.wechat.index.keywords.history(keyword="咖啡") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.wechat.index.keywords.history({ keyword: "咖啡" }); console.log(result.data.items);
dataxapi call wechat.index.keywords.history 'keyword=咖啡'{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}把这段加进你的 MCP 客户端,然后让你的 AI 调用 wechat.index.keywords.history。
参数
一个关键词。示例:咖啡。
返回档位。三档价格相同。取值:compact、standard(默认)、full。
只要这些字段。按路径写,例如 author.name。
已知限制
- 每页 1 条。每页条数由平台决定,不收
limit。 - 一次给全,不发游标。
- 这个对象有 5 个字段这个接口给不了
返回字段
data.items 是关键词指数历史对象的列表。预览:结构可能调整,改之前会公告。
关键词
逐日的数,一天一项,从早到晚
日期:中国时间(UTC+8)的一个自然日,写成这个日期的 UTC 零点(北京时间当天 8 点);原样传给 since、until 取的就是这一天
这一天的搜索指数:平台按搜索热度算出的指数,不是搜索次数
这一天的综合指数:平台把这个词相关内容的热度合起来算出的指数,不是次数
在这个平台上:这一天的微信指数
这一天和这个词有关的内容数
展开全部 12 个字段 →
这些内容这一天的曝光数
这些内容这一天的阅读数
这些内容这一天的互动数
这一条里哪些数是约数或下限;都是准确值时不出现
字段的路径,如 metrics.views
约数,还是下限approximatelower_bound
每条数据的典型体积:compact 1.9 KB、standard 1.9 KB、full 1.9 KB(按 2026-10-29 09:49 UTC 录下的那次返回量的)。
这个接口给不了的
points[].search_index平台没有points[].notes平台没有points[].impressions平台没有points[].views平台没有points[].engagements平台没有什么时候收费
X-Max-Price 可以设自己的上限,超过就不执行)价格读取于 2026-10-30 14:10 UTC,按价目版本 6,2026-10-29 13:23 UTC 起生效;在 Playground 里运行前会再读一次当前价格。
对象不存在时
微信指数没收录的词返回空结果,不报“不存在”。
常见报错
这个接口会返回的错误码;所有接口共有的见完整列表。
invalid_params参数不合法能否重试:改了再试未扣费insufficient_balance余额不足能否重试:改了再试未扣费upstream_failed数据来源出错能否重试:能未扣费timeout没有在时限内取到数据,可以用同一个幂等键重试能否重试:能未扣费常见问题
微信指数 API 多少钱?
$0.1 一次。单次最高扣费 $0.1。
什么情况下不收费?
出错和超时不收费;空结果收 $0.1。
一次返回多少条?怎么翻页?
每页 1 条。每页条数由平台决定,不收 limit。一次给全,不发游标。
对象不存在会怎样?
微信指数没收录的词返回空结果,不报“不存在”。
近 30 天可用率
已记录 13 天,满 14 天后在这里写出比例。
这不是成功率:单次调用成没成功不在里面;调用失败本来就不收费。
微信搜一搜的全部 5 个接口
在你的 AI 里用它
复制这段提示词
你的 API Key 已经写在里面,不用再配置什么。
还没有账户?注册只要一个邮箱,不用绑卡,失败的调用不收费。
贴给你的 agent
它会去读提示词指向的那一页,自己接好。
现在问点什么
用下面任意一句,或者用自己的话问。
想自己手动配置?
dataxapi setup给这台电脑上的 AI 代理(Claude Code、Codex、Cursor)装好 DataXAPI 的 MCP 服务和基础技能。Key 从环境变量 DATAXAPI_API_KEY 读,不写进任何文件。MCP 服务地址:https://api.dataxapi.com/mcp。你的客户端要填的配置在本页请求示例的“MCP”页签里;接好后让你的 AI 调用 wechat.index.keywords.history。其他客户端 →展开全文
使用 DataXAPI 的接口 wechat.index.keywords.history(微信指数)。按关键词取它最近 30 天的微信指数,一天一个数。微信指数是微信综合搜索、文章、朋友圈等算出的热度分,不是搜索次数,不能和抖音、小红书的指数比;日期是中国时间(UTC+8)的自然日。 用 GET 请求 https://api.dataxapi.com/v1/wechat/index/keywords/history,带请求头 "Authorization: Bearer $DATAXAPI_API_KEY"。Key 从环境变量 DATAXAPI_API_KEY 读,不要写进代码。 参数: - keyword (必填):一个关键词。示例:咖啡。 - view:返回档位。三档价格相同。取值:compact、standard(默认)、full。 - fields:只要这些字段。按路径写,例如 author.name。 价格:$0.1 一次。出错和超时不收费;空结果收 $0.1。 返回 JSON:data.items 是关键词指数历史;meta.billing.amount 是这次调用的扣费。 示例: curl -G "https://api.dataxapi.com/v1/wechat/index/keywords/history" \ --data-urlencode "keyword=咖啡" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" 完整说明(Markdown):https://dataxapi.com/zh/apis/wechat/index/keywords/history.md
名称和编号
- 英文名
- WeChat Index API
- 接口编号
wechat.index.keywords.history- 地址
GET /v1/wechat/index/keywords/history
一把 Key,开始用。
21 个平台 224 个接口,一次 $0.0003 起。出错和超时不收费。