微信公众号 API

覆盖文章详情、评论、账号资料和账号文章列表。

覆盖文章详情、评论、账号资料和账号文章列表。

能力REST 路径方法积分/次MCP 工具
文章详情/v1/wechat_mp/article_detailPOST10wechat_mp_article_detail
文章评论/v1/wechat_mp/article_commentsPOST13wechat_mp_article_comments
账号信息/v1/wechat_mp/account_profilePOST13wechat_mp_account_profile
账号文章/v1/wechat_mp/account_articlesPOST13wechat_mp_account_articles

公众号文章详情

获取公众号文章完整详情

  • REST 路径: /v1/wechat_mp/article_detail
  • 方法: POST
  • MCP 工具: wechat_mp_article_detail
  • 计费: 10 积分/次,仅成功返回数据时扣费
参数类型必填说明
urlstring公众号文章链接(https://mp.weixin.qq.com/s/… 或带 __biz 的长链)/WeChat MP article URL (https:
rawbooleanTrue=原始响应;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 积分/次,仅成功返回数据时扣费
参数类型必填说明
urlstring公众号文章链接(https://mp.weixin.qq.com/s/…)/WeChat MP article URL (https://mp.weixin.q
bufferstring翻页游标,首页留空;翻页传上一页响应的 buffer/Pagination cursor, leave empty for first page; pass b
rawbooleanTrue=原始响应;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 积分/次,仅成功返回数据时扣费
参数类型必填说明
usernamestring公众号 gh_username(gh_…)/Official account gh_username (gh_…)
rawbooleanTrue=原始响应;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 积分/次,仅成功返回数据时扣费
参数类型必填说明
usernamestring公众号 gh_username(gh_…)/Official account gh_username (gh_…)
page_sizeinteger每页文章数,范围 10-20,默认 20/Articles per page, range 10-20, default 20
offsetstring翻页游标(base64),首页留空;翻页传上一页响应的 next_offset/Pagination cursor (base64), leave empty
item_show_typestring内容栏目:留空/0=文章(默认)、5=视频、7=音频、8=贴图/Content tab: empty/0=articles (default), 5=video
rawbooleanTrue=原始响应;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"
}'