# 知乎 用户文章 API (zhihu.user_articles)

- Canonical page: https://everyinfra.com/zhihu-api/user_articles
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "zhihu", "action": "user_articles", "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

知乎用户文章按作者主页 `url` 列出这位作者发表的内容，每行带内容类型、标题、正文全文、赞同数、评论数、收藏数、发布时间与封面图，并附作者的昵称、简介、粉丝数和认证说明。它回答「这个人写过什么、哪些被读者认可」，适合在引用观点或邀约合作前通读一位专家的作品、跟踪竞品发言人的公开表达，或者按作者积累某个领域的长文语料。

`text` 去掉了 HTML 且不截断，列表本身就是可分析的正文，不必逐篇再读详情。作者字段是调用当时的状态，连同日期存下来，就能看出粉丝数和认证的变化。按 `posted_at` 排序得到写作时间线，按 `like_count`、`collect_count` 排序，则能看出读者赞同和收藏最多的是哪几篇。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 内容或主页链接。content_detail/content_comments 接受回答、文章、视频链接（不支持问题页）；profile/user_articles 接受 zhihu.com/people/ 主页链接；question_answers 接受问题链接。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## 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 表示平台未公开。 |
| cover_image_url | 封面图。 |
| 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": "user_articles",
  "params": {
    "url": "https://www.zhihu.com/people/zhihuadmin"
  }
}'
```

```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": "user_articles",
        "params": {
            "url": "https://www.zhihu.com/people/zhihuadmin",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `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": "user_articles",
  "results": [
    {
      "id": "•••",
      "url": "https://zhuanlan.zhihu.com/p/2096920883935851275",
      "title": "知乎关于持续强化“自媒体”创作者信息来源标注的公告",
      "text": "为切实维护平台健康有序、真实可靠的内容生态秩序，充分保障广大网民依法获取真实、准确、有效信息的合法权益，知乎严格落实中央网信办关于规范信息来源标注、加强内容标识提示、强化信息真实性管理相关工作部署要求，切实履行平台主体责任，持续加强站内“…",
      "like_count": 36,
      "comment_count": 5,
      "collect_count": 6,
      "posted_at": "2026-10-23T03:08:59+00:00",
      "platform": "zhihu",
      "author_id": "•••",
      "author_name": "•••",
      "author_url": "https://www.zhihu.com/people/zhihuadmin",
      "author_avatar_url": "https://picx.zhimg.com/•••",
      "author_bio": "•••",
      "author_verified": true,
      "author_verification_label": "知乎 官方账号"
    },
    {
      "id": "•••",
      "url": "https://zhuanlan.zhihu.com/p/2096918782090523453",
      "title": "关于开展「清朗·整治AI技术滥用」专项行动的社区公告",
      "text": "维护和谐、健康的网络生态，营造认真、专业、友善的社区氛围，保障用户的内容创作和讨论环境，知乎积极响应「清朗·整治AI技术滥用」专项行动要求，切实开展对各类AI技术滥用的违规行为的全面整治工作。重点整治如下： 从严打击利用AI 制作发布社会谣言、不…",
      "like_count": 4,
      "comment_count": 0,
      "collect_count": 1,
      "posted_at": "2026-10-23T03:01:54+00:00",
      "platform": "zhihu",
      "author_id": "•••",
      "author_name": "•••",
      "author_url": "https://www.zhihu.com/people/zhihuadmin",
      "author_avatar_url": "https://picx.zhimg.com/•••",
      "author_bio": "•••",
      "author_verified": true,
      "author_verification_label": "知乎 官方账号"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `url` 要填作者主页还是文章链接？

填作者主页链接，即 https://www.zhihu.com/people/ 加上地址栏里的个性域名，例如本页示例中的 zhihuadmin。单篇回答或文章的链接指向内容而不是人，应交给知乎的内容详情或内容评论；问题页链接这几个能力都不接受。

### 想看其中某篇文章的评论怎么办？

把这一行的 `url` 交给知乎内容评论，它接受文章、回答和视频链接；评论下的回复再用知乎评论回复读取，需要同一个链接加上评论 ID。先看各行的 `comment_count`，挑出讨论多的内容再去读评论。

### 还需要单独查作者资料吗？

多数时候不用：每一行都重复带着作者的昵称、简介、粉丝数、是否认证和认证说明，取值是调用那一刻的。如果还要回答数、文章数和获得的赞同总数，用同一个主页链接调知乎的主页详情。

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