---
title: "知乎 API 数据接口 · SocialToAI"
canonical: https://socialtoai.app/zh/platforms/zhihu/
updated: 2026-10-17
---

# 知乎 API 数据接口

知乎 API（数据接口）可以搜回答，读回答详情、评论、账号资料、账号发布的回答和热榜，不用登录知乎账号，也不用提供 Cookie。每次调用 2 积分（约 $0.004–$0.0067），失败不扣。可以直接发 HTTP 请求，也可以通过 MCP 接到 AI 客户端里用。最近实测：2026-11-19。

- 页面：https://socialtoai.app/zh/platforms/zhihu/
- 最近更新：2026-10-17
- 最近实测：2026-11-19

## 可用的动作

| 动作 | 返回什么 | 由什么参数选中 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- | --- |
| `search` | 按关键词找回答：正文、作者、点赞数、评论数和发布时间。 | — | `zhihu.search` | 2 | [知乎搜索接口](https://socialtoai.app/zh/zhihu-search-api.md) |
| `search` | 搜账号 | `type=user` | `zhihu.search:user` | 2 | [知乎搜索接口](https://socialtoai.app/zh/zhihu-search-api.md) |
| `trending` | 现在的热榜：标题、名次和热度。 | — | `zhihu.trending` | 2 | [知乎热榜接口](https://socialtoai.app/zh/zhihu-trending-api.md) |
| `detail` | 用编号或链接取一条回答：正文、作者和发布时间。 | — | `zhihu.detail` | 2 | [知乎详情接口](https://socialtoai.app/zh/zhihu-detail-api.md) |
| `detail` | 问题 | `type=question` | `zhihu.detail:question` | 2 | [知乎详情接口](https://socialtoai.app/zh/zhihu-detail-api.md) |
| `detail` | 文章 | `type=article` | `zhihu.detail:article` | 2 | [知乎详情接口](https://socialtoai.app/zh/zhihu-detail-api.md) |
| `detail` | 想法 | `type=pin` | `zhihu.detail:pin` | 2 | [知乎详情接口](https://socialtoai.app/zh/zhihu-detail-api.md) |
| `comments` | 一条回答下的评论：正文、点赞数、回复数和时间。 | — | `zhihu.comments` | 2 | [知乎评论接口](https://socialtoai.app/zh/zhihu-comments-api.md) |
| `comments` | 某条评论下的回复 | `reply_of` | `zhihu.comments:replies` | 2 | [知乎评论接口](https://socialtoai.app/zh/zhihu-comments-api.md) |
| `user_profile` | 一个账号：名称、简介和粉丝数。 | — | `zhihu.user_profile` | 2 | [知乎账号资料接口](https://socialtoai.app/zh/zhihu-user-profile-api.md) |
| `user_posts` | 一个账号最近发布的回答。 | — | `zhihu.user_posts` | 2 | [知乎账号作品接口](https://socialtoai.app/zh/zhihu-user-posts-api.md) |
| `user_posts` | 回答 | `type=answer` | `zhihu.user_posts:answers` | 2 | [知乎账号作品接口](https://socialtoai.app/zh/zhihu-user-posts-api.md) |
| `user_posts` | 想法 | `type=pin` | `zhihu.user_posts:pins` | 2 | [知乎账号作品接口](https://socialtoai.app/zh/zhihu-user-posts-api.md) |

和公众号比，知乎的回答多给作者粉丝数、评论数、转发、播放或浏览、图片和话题标签；账号资料多给粉丝数。

给 AI 读更省：16 个接口实测，同样的录制数据，平台原始 JSON 合计约 711,609 token，SocialToAI 返回约 189,099 token，少 73%（2026-11-06，方法见“测量方法”页）。

## 调用示例

```bash
curl https://socialtoai.app/v1/search \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "zhihu",
    "query": "咖啡机推荐"
  }'
```

## 知乎独有的接口

每个接口用自己的 op，通过 `POST /v1/call/{op}` 调用；完整的参数和返回字段在它自己的页面。

### 内容与账号

| 接口 | 做什么 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- |
| 问题回答 | 按问题编号或链接取该知乎问题下排在最前的 20 条回答。 | `zhihu.question_answers` | 2 | [知乎问题回答接口](https://socialtoai.app/zh/zhihu-question-answers-api.md) |
| 专栏文章列表 | 按专栏编号取一页知乎专栏里的文章。 | `zhihu.column_articles` | 2 | [知乎专栏文章列表接口](https://socialtoai.app/zh/zhihu-column-articles-api.md) |
| 用户粉丝列表 | 按主页地址里的用户名取一页关注该知乎用户的账号，每页 20 个。 | `zhihu.followers` | 2 | [知乎用户粉丝列表接口](https://socialtoai.app/zh/zhihu-followers-api.md) |

## 知乎给不了的字段

这些字段在对应的调用里始终是 null，并列在返回的 `unavailable` 里。

| 字段 | 哪些动作 |
| --- | --- |
| `author.verified` | search, detail, user_posts |
| `metrics.shares` | search, detail, user_posts |
| `metrics.views` | search, detail, user_posts |
| `metrics.reposts` | search, detail, user_posts |
| `images` | search, detail, user_posts |
| `hashtags` | search, detail, user_posts |
| `is_pinned` | search, detail, user_posts |
| `url` | trending, comments |
| `author.followers` | detail, user_posts |
| `metrics.likes` | detail |
| `metrics.comments` | detail |
| `metrics.collects` | detail, user_posts |
| `content_id` | comments |
| `following` | user_profile |
| `posts_count` | user_profile |

## 办成一件事多少钱

| 要做的事 | 怎么算 | 积分 | 约合 |
| --- | --- | --- | --- |
| 搜 1,000 条知乎结果 | 每页通常 18 条，56 页 | 112 积分 | 约 ¥2.7（$0.37） |
| 读 1,000 条知乎评论 | 每页通常 10 条，100 页 | 200 积分 | 约 ¥4.8（$0.67） |
| 回填一个知乎账号：200 条回答列表加 20 条全文 | 10 页列表 + 20 次全文 | 60 积分 | 约 ¥1.4（$0.20） |
| 每天盯 1 个知乎账号，一个月最多 | 每次 10 积分 × 31 天 | 310 积分 | 约 ¥7.4（$1.03） |

按 $10 档算，买得越多单价越低。监控只在你开启时运行，随时可以暂停，没有订阅。

## 在 AI 里直接问

- 这周知乎上，家用咖啡和抹茶哪个更火？ → search, search: 4 积分

- 读一下这条知乎回答的评论，告诉我大家在抱怨什么。 → detail, comments × 3: 8 积分

- 在知乎上找 5 个发露营咖啡内容的账号，看看他们最近发了什么。 → search, user_posts × 5: 12 积分

[知乎 MCP 服务器](https://socialtoai.app/zh/mcp/zhihu.md)

## 能读知乎的现成工具

- [品牌口碑](https://socialtoai.app/zh/tools/brand-buzz.md)：各平台上的态度占比、提到最多的事，以及背后的帖子
- [评论分析](https://socialtoai.app/zh/tools/comment-insights.md)：评论里的话题和各自占比，还有提问、想买和投诉
- [账号动态](https://socialtoai.app/zh/tools/account-watch.md)：每个账号最近发了什么，哪条明显好于平时
- [达人档案](https://socialtoai.app/zh/tools/creator-card.md)：这个人在其他平台的账号、各自的数据，以及是同一人的把握
- [批量链接数据](https://socialtoai.app/zh/tools/batch-stats.md)：每条链接一行，给出现在的数字；失效的链接会标出来

## 官方 API

知乎有官方的数据开放平台，提供知乎站内搜索、热榜、问题下的回答等接口。知乎用户登录后即可生成访问密钥，每天有免费额度，超出后按调用次数付费。

来源：[知乎官方开发者文档](https://developer.zhihu.com/docs)，核对于 2026-10-17。

在这里读 1,000 条回答：约 56 次 `zhihu.search` 调用（每页通常 18 条），共 112 积分，按第一档约 $0.37。 [算一下要多少钱](https://socialtoai.app/zh/free-tools/api-cost-estimator.md)

[知乎官方 API 的申请条件和价格](https://socialtoai.app/zh/does-zhihu-have-an-api.md)

- [各平台评论接口对比](https://socialtoai.app/zh/comments-api.md)：哪些平台能取评论、每页多少条、多少积分。
- [知乎 MCP 服务器](https://socialtoai.app/zh/mcp/zhihu.md)：让你的 AI 直接读知乎。
