EveryInfra.com

社交内容 · 数据 API

微信公众号

微信公众号 API

公众号文章搜索与正文抓取,账号信息可查。 统一入口 POST /api/v1/social,干净结构化 JSON,¥0.04/次、失败不计费。

12

个能力

¥0.04

每次调用

秒级

响应

1 个

API Key 通 87 平台

微信公众号 能力清单

action必填参数可选参数单次条数模式单价 / 次返回字段
article_searchkeywordcategory, sub_type默认 — · 最多 20同步¥0.04id · title · summary · url · cover_image_url · account_name · posted_at · relative_time · kind · platform
account_searchkeyword默认 — · 最多 20同步¥0.04account_id · ghid · name · description · alias · avatar_url · verify_flag · biz · platform
mini_program_searchkeyword默认 — · 最多 20同步¥0.04id · name · description · icon_url · username · is_minigame · platform
search_suggestionskeyword同步¥0.04suggestions · count · platform
account_profileaccount同步¥0.04account_id · name · account_type · description · avatar_url · biz · platform
account_principalaccount同步¥0.04account_id · ghid · name · description · company_name · owner_name · customer_type · verify_status · verify_type · verified_at · registered_country · registered_at · is_overseas · last_login_province · authorized_agents · platform
account_articlesaccount默认 — · 最多 20同步¥0.04id · title · url · cover_image_url · posted_at · position · is_original · is_deleted · account_name · account_id · account_ghid · platform
account_today_articlesaccount同步¥0.04id · title · url · cover_image_url · posted_at · position · is_original · is_deleted · account_name · account_id · account_ghid · platform
article_commentsurl默认 — · 最多 20同步¥0.04id · text · author_name · author_avatar_url · like_count · posted_at · is_top · reply_count · country · province · platform
comment_repliesurl, comment_idcontent_id同步¥0.04id · text · author_name · author_avatar_url · like_count · posted_at · country · province · city · platform
article_metricsurl同步¥0.04read_count · like_count · watching_count · share_count · collect_count · comment_count · platform
wechat_indexkeyword同步¥0.04keyword · latest_index · latest_date · data_points · trend · platform · index · date

返回字段含义

字段名跨 87 个平台统一,同一个键在哪个平台都是同一个意思—— 这也是换平台只需改 platform 一个字段的原因。 机器可读版:/api/v1/social/fields

id
该记录在原平台上的唯一标识。仅在同一平台内唯一,跨平台可能重复。
title
标题。平台无标题概念时(如纯文本帖)为 null。
url
该记录在原平台上的可访问链接。
posted_at
发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。上游只给非标准字符串时原样透传,解析前建议做容错。null 表示平台未公开。
platform
数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
name
名称。用于账号/商品/商家类能力,指该对象本身的名字。
description
简介或描述,通常比 text 短。
avatar_url
头像图片链接。部分平台给的是带尺寸参数的 CDN 链接,可能有时效。
username
用户名(@handle)。
text
正文内容,已去除 HTML 标签。长文可能被上游截断。
author_name
作者昵称(显示名)。
like_count
点赞数。null 表示该平台或该接口不公开此数据,不等于 0。
reply_count
回复数,通常用于评论的子回复。null 表示不公开。
country
国家或地区。可能是全称也可能是 ISO 代码,取决于平台,未归一。
city
城市名,用原平台的语言书写,未做中英归一。
share_count
分享/转发数。null 表示不公开,不等于 0。
collect_count
收藏数。null 表示不公开,不等于 0。
comment_count
评论数。null 表示不公开,不等于 0。

另有 微信公众号 特有字段 summary · cover_image_url · account_name · relative_time · kind · account_id · ghid · alias · verify_flag · biz · icon_url · is_minigame · suggestions · count · account_type · company_name · owner_name · customer_type · verify_status · verify_type · verified_at · registered_country · registered_at · is_overseas · last_login_province · authorized_agents · position · is_original · is_deleted · account_ghid · author_avatar_url · is_top · province · read_count · watching_count · keyword · latest_index · latest_date · data_points · trend · index · date,保留该平台自身的语义。

30 秒调用示例

wechat_oa_article_search.sh
curl -X POST https://api.everyinfra.com/api/v1/social \  -H "Authorization: Bearer omg_live_你的KEY" \  -H "Content-Type: application/json" \  -d '{"platform":"wechat_oa","action":"article_search","params":{"keyword":"咖啡"}}'

返回长这样

response.json
{  "id": "wechat_oa_…",  "article_search": [    {      "id": "…",      "title": "…",      "summary": "…",      "url": "https://…",      "cover_image_url": "https://…",      "account_name": "…",      "posted_at": "2026-08-01T09:30:00Z",      "relative_time": "…",      "kind": "…",      "platform": "wechat_oa"    }  ],  "count": 1,  "billing": { "charged": true, "credits": 400, "cny": 0.04 }}

常见用例

舆情监控

品牌词与竞品词轮询,情绪聚类,异常波动告警。

微信公众号 API 常见问题

微信公众号 API 怎么调用?

统一入口 POST /api/v1/social,请求体传 platform="wechat_oa"、action(见上方能力清单)和 params。鉴权用请求头 Authorization: Bearer <API Key>,同一把 Key 可以调用全部 87 个平台,不需要为每个平台单独申请。

微信公众号 API 怎么收费?

按次计费,¥0.04/次,从统一的 ¥ 钱包扣。一次调用一次计费,不按返回条数或页数加价;参数错误、鉴权失败和空结果都不计费。每次调用的响应里带 billing 字段,写明本次实扣多少。

微信公众号 API 一次能返回多少条数据?

按能力不同,单次最多 20 条(逐能力上限见上方清单的「单次条数」列)。传 limit 参数控制,不传则用默认值。一次调用就返回这么多条,不需要翻页、也不会因为条数多而多收钱。

微信公众号 API 返回哪些字段?

每个能力的返回字段都列在上方能力清单的「返回字段」列里,例如 article_search 返回 id、title、summary、url、cover_image_url、account_name 等。字段名跨平台统一,换平台不用改解析代码。

可以先免费试用 微信公众号 API 吗?

可以。注册免费,加微信领邀请码可得 ¥5 免费额度(≈500 次数据调用或 400 次 AI 调用),足够把 微信公众号 的 12 个能力都试一遍。无需信用卡。

开始调用 微信公众号 API

加微信领 ¥5 免费额度 —— ≈500 次数据调用或 400 次 AI 调用,足够把 微信公众号 的能力全试一遍。

免费注册 →