获取公众号关联文章/Get WeChat MP Related Articles
WeChat MPapi
About
获取公众号关联文章/Get WeChat MP Related Articles
Documentation
获取公众号关联文章/Get WeChat MP Related Articles
[中文]
用途:
- 传文章 URL,返回文章底部「关联 / 相关文章」。未开启该功能的文章返回空列表。
- 价格:0.01$/次
- ⏱️ 由于微信服务器原因,本接口响应较慢,请将客户端请求超时(timeout)设置为 30 秒;timeout 设置过小会造成已扣费但收不到响应的情况。
参数:
- url: 公众号文章链接(长 / 短链均可)。示例
https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw(该文未开启关联文章,返回空) - raw: 可选,默认 True。True=完整原始响应;False=精简投影。
返回:
- 关联文章列表
响应结构与 JSON Path:
raw=false(精简投影):
data为拍平后的三字段:$.data.ret: 返回码(0 正常)$.data.count: 关联文章条数$.data.articles[]: 关联文章列表(命中任一来源列表的合并;空文章为[])
raw=true(原始):
data为完整原始响应:$.data.article_size: 关联文章数量(对应精简模式count)$.data.list[]: 关联文章原始列表(对应精简模式articles)$.data.base_resp.ret: 返回码(对应精简模式ret);base_resp.exportkey_token: 导出 token$.data.empty_scene: 空结果场景码;$.data.show_rec_reason: 是否展示推荐理由;$.data.report_info: 上报信息(JSON 串)
[English]
Purpose:
- Pass an article URL to get the "related articles" at the bottom of the article. Articles without this feature return an empty list.
- 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 (long or short form). E.g.
https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw(this article has related articles disabled, returns empty) - raw: Optional, default True. True=full raw response; False=simplified projection.
Return:
- Related article list
Response structure & JSON Path:
raw=false (simplified projection):
datais flattened into three fields:$.data.ret: return code (0 = OK)$.data.count: number of related articles$.data.articles[]: related article list (merged from whichever source list hits;[]when empty)
raw=true (raw):
datais the full raw response:$.data.article_size: number of related articles (corresponds tocountin simplified mode)$.data.list[]: raw related article list (corresponds toarticlesin simplified mode)$.data.base_resp.ret: return code (corresponds toretin simplified mode);base_resp.exportkey_token: export token$.data.empty_scene: empty-result scene code;$.data.show_rec_reason: whether to show recommendation reason;$.data.report_info: report info (JSON string)
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取公众号关联文章/Get WeChat MP Related Articles
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取公众号文章列表/Get WeChat MP Account ArticlesWeChat MPapi获取公众号资料页/Get WeChat MP Account ProfileWeChat MPapi获取公众号服务/自定义菜单/Get WeChat MP Account Services & Custom MenuWeChat MPapi获取公众号文章广告/Get WeChat MP Article AdsWeChat MPapi获取公众号文章评论/Get WeChat MP Article CommentsWeChat MPapi获取公众号文章详情/Get WeChat MP Article DetailWeChat MPapi获取公众号文章互动数据/Get WeChat MP Article StatsWeChat MPapi获取公众号评论的二级回复/Get WeChat MP Comment RepliesWeChat MPapi