历史发文列表(含阅读数)
请求地址 POST https://www.xmedi.cn/api/v1/wechat/accounts/posts/metrics。调用成功才扣费,参数错误、平台侧失败或超时不扣费。
请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
account_id |
string | 否 | 公众号原始 ID(gh_ 开头);不支持 __biz / 微信号 / 名称 |
cursor |
string | 否 | 翻页游标,取上一页 next_cursor |
gh_id |
string | 否 | 公众号原始 ID(gh_ 开头),与 account_id 等价 |
page |
integer | 否 | 页码,从 1 起;默认 1;最小 1 |
page_size |
integer | 否 | 每页条数;默认 20;范围 1~100 |
返回 data 字段
| 字段 | 类型 | 说明 |
|---|---|---|
has_more | boolean | |
items | array<object> | |
next_cursor | string | |
page | number | |
page_size | number | |
total | number |
调用示例
curl -X POST https://www.xmedi.cn/api/v1/wechat/accounts/posts/metrics \
-H "X-XMEDI-Key: xm_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"account_id":"gh_363b924965e9","page":1}'
需要接入这个接口?
免费注册
注册后创建 API Key,或留下联系方式获取方案