微信公众号 API
覆盖文章详情、评论、账号资料和账号文章列表。
覆盖文章详情、评论、账号资料和账号文章列表。
| 能力 | REST 路径 | 方法 | 积分/次 | MCP 工具 |
|---|---|---|---|---|
| 文章详情 | /v1/wechat_mp/article_detail | POST | 10 | wechat_mp_article_detail |
| 文章评论 | /v1/wechat_mp/article_comments | POST | 13 | wechat_mp_article_comments |
| 账号信息 | /v1/wechat_mp/account_profile | POST | 13 | wechat_mp_account_profile |
| 账号文章 | /v1/wechat_mp/account_articles | POST | 13 | wechat_mp_account_articles |
公众号文章详情
获取公众号文章完整详情
- REST 路径:
/v1/wechat_mp/article_detail - 方法:
POST - MCP 工具:
wechat_mp_article_detail - 计费: 10 积分/次,仅成功返回数据时扣费
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url | string | 是 | 公众号文章链接(https://mp.weixin.qq.com/s/… 或带 __biz 的长链)/WeChat MP article URL (https: |
raw | boolean | 否 | True=原始响应;False=精简解析结构/True=raw response; False=simplified parsed structure |
请求示例
curl -X POST "https://api.example.com/v1/wechat_mp/article_detail" \
-H "X-API-Key: $FIREFLY_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Request-Id: demo-wechat_mp_article_detail-001" \
-d '{
"url": "https://example.com/article"
}'公众号文章评论
获取公众号文章评论
- REST 路径:
/v1/wechat_mp/article_comments - 方法:
POST - MCP 工具:
wechat_mp_article_comments - 计费: 13 积分/次,仅成功返回数据时扣费
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url | string | 是 | 公众号文章链接(https://mp.weixin.qq.com/s/…)/WeChat MP article URL (https://mp.weixin.q |
buffer | string | 否 | 翻页游标,首页留空;翻页传上一页响应的 buffer/Pagination cursor, leave empty for first page; pass b |
raw | boolean | 否 | True=原始响应;False=精简解析结构/True=raw response; False=simplified parsed structure |
请求示例
curl -X POST "https://api.example.com/v1/wechat_mp/article_comments" \
-H "X-API-Key: $FIREFLY_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Request-Id: demo-wechat_mp_article_comments-001" \
-d '{
"url": "https://example.com/article"
}'公众号账号信息
获取公众号资料页
- REST 路径:
/v1/wechat_mp/account_profile - 方法:
POST - MCP 工具:
wechat_mp_account_profile - 计费: 13 积分/次,仅成功返回数据时扣费
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
username | string | 是 | 公众号 gh_username(gh_…)/Official account gh_username (gh_…) |
raw | boolean | 否 | True=原始响应;False=精简解析结构/True=raw response; False=simplified parsed structure |
请求示例
curl -X POST "https://api.example.com/v1/wechat_mp/account_profile" \
-H "X-API-Key: $FIREFLY_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Request-Id: demo-wechat_mp_account_profile-001" \
-d '{
"username": "ACCOUNT_NAME"
}'公众号文章列表
获取公众号历史文章列表
- REST 路径:
/v1/wechat_mp/account_articles - 方法:
POST - MCP 工具:
wechat_mp_account_articles - 计费: 13 积分/次,仅成功返回数据时扣费
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
username | string | 是 | 公众号 gh_username(gh_…)/Official account gh_username (gh_…) |
page_size | integer | 否 | 每页文章数,范围 10-20,默认 20/Articles per page, range 10-20, default 20 |
offset | string | 否 | 翻页游标(base64),首页留空;翻页传上一页响应的 next_offset/Pagination cursor (base64), leave empty |
item_show_type | string | 否 | 内容栏目:留空/0=文章(默认)、5=视频、7=音频、8=贴图/Content tab: empty/0=articles (default), 5=video |
raw | boolean | 否 | True=原始响应;False=精简解析结构/True=raw response; False=simplified parsed structure |
请求示例
curl -X POST "https://api.example.com/v1/wechat_mp/account_articles" \
-H "X-API-Key: $FIREFLY_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Request-Id: demo-wechat_mp_account_articles-001" \
-d '{
"username": "ACCOUNT_NAME"
}'