WeChat-Media-Platform-V2-API
获取公众号文章互动数据/Get WeChat MP Article Stats
Changed on[中文]
用途:
- 传文章 URL,返回文章的互动指标(阅读量 / 点赞 / 在看 / 分享 / 收藏 / 评论数)。
- 价格:0.01$/次
- ⏱️ 由于微信服务器原因,本接口响应较慢,请将客户端请求超时(timeout)设置为 30 秒;timeout 设置过小会造成已扣费但收不到响应的情况。
参数:
- url: 公众号文章链接(https://mp.weixin.qq.com/s/…)。示例 https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw
- raw: 可选,默认 True。True=完整原始统计对象(含 show_* 显隐标志位);False=仅精简计数。
返回:
- 文章互动数据
响应结构与 JSON Path:
raw=false(精简计数):
- data 为 7 个计数字段:
- $.data.read_num: 阅读量
- $.data.like_count: 点赞数
- $.data.old_like_count: 在看数(旧「在看」)
- $.data.share_count: 分享数
- $.data.collect_count: 收藏数
- $.data.comment_count: 评论数
- $.data.star_num: 星标 / 喜欢数
raw=true(原始):
- data 为完整原始统计对象:含 raw=false 的全部计数(同名同义),外加显隐 / 状态标志位:
- 计数: $.data.read_num / $.data.like_count / $.data.old_like_count / $.data.share_count / $.data.collect_count / $.data.comment_count / $.data.star_num
- 显隐标志: $.data.show_like / $.data.show_old_like / $.data.show_share / $.data.show_collect / $.data.show_read / $.data.show_star(及对应 *_gray 置灰位)
- 状态: $.data.comment_enabled(评论开关)/ $.data.get_data_succ(取数成功)/ $.data.is_subscribed / $.data.verify_status / $.data.can_use_star
[English]
Purpose:
- Pass an article URL to get its interaction metrics (reads / likes / "wow" / shares / favorites / comments).
- Price: $0.01 per request
- ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.
Parameters:
- url: WeChat MP article URL (https://mp.weixin.qq.com/s/…). E.g. https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw
- raw: Optional, default True. True=full raw stats object (with show_* visibility flags); False=simplified counts only.
Return:
- Article interaction stats
Response structure & JSON Path:
raw=false (simplified counts):
- data contains 7 count fields:
- $.data.read_num: read count
- $.data.like_count: like count
- $.data.old_like_count: "wow" count (old "Looking")
- $.data.share_count: share count
- $.data.collect_count: favorite count
- $.data.comment_count: comment count
- $.data.star_num: star / like count
raw=true (raw):
- data is the full raw stats object: all counts of raw=false (same names and meanings), plus visibility / status flags:
- Counts: $.data.read_num / $.data.like_count / $.data.old_like_count / $.data.share_count / $.data.collect_count / $.data.comment_count / $.data.star_num
- Visibility flags: $.data.show_like / $.data.show_old_like / $.data.show_share / $.data.show_collect / $.data.show_read / $.data.show_star (and corresponding *_gray flags)
- Status: $.data.comment_enabled (comment switch) / $.data.get_data_succ (fetch success) / $.data.is_subscribed / $.data.verify_status / $.data.can_use_star
post/api/v1/wechat_mp/v2/fetch_article_stats
Request
- Base URLhttps://api.tikhub.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
Example request
{
"url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
}Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info