# WeChat Channels Comments API (wechat_channels.comments)

- Canonical page: https://everyinfra.com/en/wechat-channels-api/comments
- Endpoint: POST /api/v1/social with {"platform": "wechat_channels", "action": "comments", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed and empty results are not charged
- Returns: list, one page of up to 25 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| object_id | not declared | yes | not declared | The numeric ID of the WeChat Channels video whose comments you want, such as `15039881603147501275`, taken from the `id` of a `user_posts` or `video` row, or the video's share link (`https://weixin.qq.com/sph/...`). |
| page_token | not declared | no | not declared | Page token for `comments`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, for the same video. Each page is one call; the last page has no `next_page_token`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | Video ID (a digit string) on user_posts and video rows; pass it as `object_id` to video or comments. On comments, the comment ID. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| like_count | Likes: the video's on search, user_posts and video rows, the comment's on comments rows. On user_posts and video, likes above 10,000 are precise only to the hundreds, always ending in 02 (20002 is about 20,000); from 100,000 up it is always 100002 (the app only shows 100k+). |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| author_username | The author's WeChat Channels account ID, v2_...@finder (user_posts / video); pass it as `username` to user_posts. |
| author_name | Author's display name. |
| author_avatar_url | The commenter's avatar link (comments). |
| ip_location | The commenter's IP region as Channels displays it, in Chinese characters or in English, such as Beijing (comments). |
| next_page_token | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example 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_channels",
  "action": "comments",
  "params": {
    "object_id": "15039881603147501275"
  }
}'
```

```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_channels",
        "action": "comments",
        "params": {
            "object_id": "15039881603147501275",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "wechat_channels",
  "action": "comments",
  "results": [
    {
      "id": …,
      "text": …,
      "like_count": …,
      "posted_at": …,
      "author_username": …,
      "author_name": …,
      "author_avatar_url": …,
      "ip_location": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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