# 微信公众号 评论回复 API (wechat_oa.comment_replies)

- Canonical page: [https://everyinfra.com/wechat-oa-api/comment_replies](https://everyinfra.com/wechat-oa-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "wechat_oa", "action": "comment_replies", "params": {...}}
- Price: $0.006764 per call ($6.76 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

评论回复按文章链接 `url` 和评论 ID `comment_id` 读取某条评论下的回复：回复的 `id`、正文 `text`、回复者昵称和头像、点赞数 `like_count`、发布时间 `posted_at`，以及所在的国家、省份和城市 `city`。在文章评论里挑出点赞高的评论后，往下追读大家怎么接话，就读这个接口。

`comment_id` 取自同一篇文章的评论结果，必须和 `url` 对应，不是文章 ID。`content_id` 是 `comment_id` 的兼容写法，两个都传时以 `comment_id` 为准。`city` 是用原平台语言写的城市名，没有做中英归一。这个接口没有置顶标记和回复数，这两项在文章评论里。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=wechat_oa&action=comment_replies

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | article_comments / comment_replies / article_metrics / article_detail 使用 mp.weixin.qq.com 的文章自身链接（打开文章后复制：/s/<id> 短链，或带 __biz、mid、idx、sn 的链接）；从搜索结果复制的临时链接（带 signature/timestamp）可能读不了，读不了时扣费前返回 422。账号类接口仅把它作为公众号解析的最低优先级输入。 |
| comment_id | not declared | yes | not declared | comment_replies 的目标评论 ID，从同一文章 article_comments 的评论结果获取；必须与 url 对应，不是文章 ID。 |
| content_id | not declared | no | not declared | comment_id 的兼容字段，低于 comment_id。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_name | 作者昵称（显示名）。 |
| author_avatar_url | 作者头像。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| province | 所在省份。 |
| city | 城市名，用原平台的语言书写，未做中英归一。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "wechat_oa",
  "action": "comment_replies",
  "params": {
    "url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0",
    "comment_id": "11658531443289621226"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "wechat_oa",
        "action": "comment_replies",
        "params": {
            "url": "https://mp.weixin.qq.com/s?__biz=MzA4MTg0MjA5OQ==&mid=2655362972&idx=1&sn=b56fabd8e4c53259498100f05f20dbb0",
            "comment_id": "11658531443289621226",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 4. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "wechat_oa",
  "action": "comment_replies",
  "results": [
    {
      "id": 2,
      "text": "我也有过，刚高中毕业的时候，什么也不懂，被同班男生问为什么不刮，同时他也收获了我的白眼🙄",
      "author_name": "咩•••凉",
      "author_avatar_url": "https://wx.qlogo.cn/•••",
      "like_count": 70,
      "posted_at": "2026-07-31T04:05:06+00:00",
      "country": "中国",
      "province": "山东",
      "platform": "wechat_oa"
    },
    {
      "id": 5,
      "text": "+1，被人提醒刮腋毛，真的很冒昧",
      "author_name": "小•••）",
      "author_avatar_url": "https://wx.qlogo.cn/•••",
      "like_count": 516,
      "posted_at": "2026-07-31T04:07:41+00:00",
      "country": "中国",
      "province": "广东",
      "platform": "wechat_oa"
    }
  ],
  "count": 4,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `comment_id` 从哪里拿？

从同一篇文章的文章评论结果里拿，取你想追读的那条评论的 ID。它必须和这次传的 `url` 属于同一篇文章，不能把文章 ID 或别篇文章的评论 ID 填进来。参数示例里的 `comment_id` 是 11658531443289621226 这样的一长串数字，按字符串传。

### `content_id` 要不要传？

不用。它只是 `comment_id` 的兼容字段，优先级低于 `comment_id`，两个同时出现时 `comment_id` 生效。已经传了 `comment_id`，就没必要再带它。

### 地域字段能直接拿去做统计吗？

先归一再统计。`country` 可能是全称，也可能是 ISO 代码，取决于平台，没有归一；`city` 用原平台的语言书写，未做中英归一；`province` 是所在省份。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=wechat_oa
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
