# Zhihu Content detail API (zhihu.content_detail)

- Canonical page: https://everyinfra.com/en/zhihu-api/content_detail
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "zhihu", "action": "content_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=zhihu&action=content_detail

## 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. |

## 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. |
| type | Record type; values depend on the capability (for example video / image / text). |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| 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. |
| comment_count | Comments. null means not disclosed, not 0. |
| collect_count | Saves or favorites. null means not disclosed, 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. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | Author avatar URL; on comment results, the commenter's avatar. |
| author_bio | Author bio as written on Zhihu. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_verified | Whether the author is verified. |
| author_verification_label | Verification description of the author, such as a profession or institution. |

## 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_detail",
  "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_detail",
        "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. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "zhihu",
  "action": "content_detail",
  "results": {
    "id": "2032860336215307118",
    "type": "article",
    "url": "https://zhuanlan.zhihu.com/p/2032860336215307118",
    "title": "GPT之父把AI扔回1930年：没见过一行代码，却「发明」了Python！",
    "text": "编辑：桃子\n【新智元导读】你敢信？一个活在95年前的AI，竟写出了Python代码。GPT之父下场，用2600亿Token炼出了一个「老古董」AI。\n一个从未见过电脑的AI，竟写出了现代编程语言！\n这可不是什么科幻的设定。\n就在今天，GPT之父Alec Radford带队发布了震撼全网的「talkie」——\n总参数130亿，一个只读过1931年之前旧文献的大模型。\ntalkie的「世界观」（全部训练数据），被冻结在了1930年12月31日。\n那个时代，没有互联网，没有维基百科，更没有任何现代代码。\n它读过的最「新」的东西，是近百年前的专利书、科学期刊、礼…",
    "like_count": 146,
    "comment_count": 64,
    "collect_count": 126,
    "posted_at": "2026-04-29T08:36:06+00:00",
    "platform": "zhihu",
    "author_id": "•••",
    "author_name": "•••",
    "author_url": "https://www.zhihu.com/•••",
    "author_avatar_url": "https://picx.zhimg.com/•••",
    "author_bio": "",
    "author_verified": true,
    "author_verification_label": "人工智能话题下的优秀答主"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
