# 知乎 内容详情 API (zhihu.content_detail)

- Canonical page: https://everyinfra.com/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 | 内容或主页链接。content_detail/content_comments 接受回答、文章、视频链接（不支持问题页）；profile/user_articles 接受 zhihu.com/people/ 主页链接；question_answers 接受问题链接。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| type | 内容类型（answer 回答 / article 文章 / video 视频；hot_list 上是 question 问题；user_pins 是 pin 想法；column_search 是 column 专栏；salt_search 是盐选商品类型，如 paid_column_chapter 付费专栏的一篇；scholar_search 是 paper 论文）。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| collect_count | 收藏数。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_name | 作者昵称（显示名）。 |
| author_url | 作者主页链接。 |
| author_avatar_url | 作者头像链接；评论类结果里是评论者的头像。 |
| author_bio | 作者简介。 |
| author_follower_count | 作者粉丝数。 |
| author_verified | 作者是否认证。 |
| author_verification_label | 认证说明。 |

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