# Zhihu Content comments API (zhihu.content_comments)

- Canonical page: https://everyinfra.com/en/zhihu-api/content_comments
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "zhihu", "action": "content_comments", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

Zhihu Content comments reads the discussion under one answer, article or video, given the link to it in `url`. Every row holds a comment's full text, likes, reply count, publish time and the commenter's name and ID. It shows how readers respond to a piece of content, whether they agree, push back or add corrections, which matters to brand teams watching answers about their products and to researchers studying debate on Zhihu.

Pass the link of the specific piece, such as a zhuanlan.zhihu.com/p/ article link or the address of one answer. A row with a `reply_count` above zero has replies under it, which the Zhihu Comment replies capability lists. `author_id` lets you count how often the same people comment across pieces, and a null `like_count` means Zhihu did not disclose the number, not that nobody liked the comment.

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | The content URL or profile URL required by content-oriented actions. content_detail and content_comments accept answer, article, or video links (question pages are not supported); profile and user_articles accept zhihu.com/people/ profile links. |
| limit | integer (1–100) | no | 20 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| 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. null means the platform or this capability does not disclose it; it is not 0. |
| 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. |
| reply_count | Replies, usually replies to a comment. null means not disclosed. |
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_avatar_url | Author avatar URL; on comment results, the commenter's avatar. |
| 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": "zhihu",
  "action": "content_comments",
  "params": {
    "url": "https://zhuanlan.zhihu.com/p/2032860336215307118"
  }
}'
```

```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": "zhihu",
        "action": "content_comments",
        "params": {
            "url": "https://zhuanlan.zhihu.com/p/2032860336215307118",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "zhihu",
  "action": "content_comments",
  "results": [
    {
      "id": "•••",
      "text": "看错了，以为他又发明了一遍python，惊恐地进来一看原来是这样[尴尬]",
      "like_count": 22,
      "reply_count": 3,
      "author_id": "•••",
      "author_name": "•••",
      "author_avatar_url": "https://picx.zhimg.com/•••",
      "platform": "zhihu"
    },
    {
      "id": "•••",
      "text": "很有意思，所以有没有人试试训练数据截断至1900年训练llm，看看能不能独立推出广义相对论[思考]这就是Demis Hassabis的AGI标准",
      "like_count": 10,
      "reply_count": 3,
      "author_id": "•••",
      "author_name": "•••",
      "author_avatar_url": "https://pic1.zhimg.com/•••",
      "platform": "zhihu"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Can I pass a Zhihu question link?

No. Question pages are not supported. A question gathers many answers, each with its own comment section, so pass the link of each answer you care about, one per call. Zhihu Search, filtered to answers, is one way to collect those answer links for a topic.

### How do I read the replies under a comment?

Pick rows where `reply_count` is greater than zero. Pass the same content link and the row's `id` to the Zhihu Comment replies capability, which lists the replies to that comment. Threads with many replies are often where an argument or a correction took place, so they are worth expanding first.

### In what order do the comments arrive?

Zhihu decides the order, since there is no sorting option here. To rank comments by popularity or time, sort them after the call on `like_count` or `posted_at`; the latter is an ISO 8601 timestamp in UTC, so convert it before reading dates in China time.

## Also

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