文章一级评论
请求地址 POST https://www.xmedi.cn/api/v1/wechat/articles/comments。调用成功才扣费,参数错误、平台侧失败或超时不扣费。
请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
article_id |
string | 否 | 文章 sn(链接 /s/ 后那段),平台会补成完整链接 |
article_url |
string | 否 | 文章链接,与 url 等价 |
cursor |
string | 否 | 翻页游标,取上一页 next_cursor;首页留空 |
page |
integer | 否 | 页码,从 1 起;默认 1;最小 1 |
page_size |
integer | 否 | 每页条数;默认 20;范围 1~100 |
url |
string | 否 | 文章链接(https://mp.weixin.qq.com/s/… 或带 __biz 的长链) |
返回 data 字段
| 字段 | 类型 | 说明 |
|---|---|---|
has_more | boolean | |
items | array<object> | |
page | number | |
page_size | number | |
total | number |
调用示例
curl -X POST https://www.xmedi.cn/api/v1/wechat/articles/comments \
-H "X-XMEDI-Key: xm_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"page":1,"url":"http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==\u0026mid=2667026902\u0026idx=1\u0026sn=625cd9b1604b0968a3dcb98380a931ff"}'
需要接入这个接口?
免费注册
注册后创建 API Key,或留下联系方式获取方案