知乎 API 数据接口
回答、评论、账号、热榜。
知乎 API(数据接口)可以搜回答,读回答详情、评论、账号资料、账号发布的回答和热榜,不用登录知乎账号,也不用提供 Cookie。每次调用 2 积分(约 $0.004–$0.0067),失败不扣。可以直接发 HTTP 请求,也可以通过 MCP 接到 AI 客户端里用。最近实测:2026-11-05。
最近实测:最近更新:
/v1/search200 OK2 积分platform: "zhihu" · query: "咖啡机推荐"nullcollects 0views nullauthor.verifiedmetrics.sharesmetrics.viewsmetrics.reposts+36 个动作。
外加 3 个知乎独有的接口。
点开任意一行,看请求怎么写;完整的参数和返回字段在它自己的页面。
搜索按关键词找回答:正文、作者、点赞数、评论数和发布时间。/v1/search2 积分≈ $0.0067 · ¥0.05
platformquery另有 2 个选填参数type=user搜账号2 积分curl https://api.socialtoai.com/v1/search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu", "query": "咖啡机推荐" }'POST /v1/searchKey 放在 Authorization 请求头里热榜现在的热榜:标题、名次和热度。/v1/trending2 积分≈ $0.0067 · ¥0.05
curl https://api.socialtoai.com/v1/trending \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu" }'POST /v1/trendingKey 放在 Authorization 请求头里详情用编号或链接取一条回答:正文、作者和发布时间。/v1/detail2 积分≈ $0.0067 · ¥0.05
platformid 或 urltype=question问题2 积分type=article文章2 积分type=pin想法2 积分curl https://api.socialtoai.com/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu", "id": "2430879961" }'POST /v1/detailKey 放在 Authorization 请求头里评论一条回答下的评论:正文、点赞数、回复数和时间。/v1/comments2 积分≈ $0.0067 · ¥0.05
platformidreply_of某条评论下的回复2 积分curl https://api.socialtoai.com/v1/comments \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu", "id": "2509154330" }'POST /v1/commentsKey 放在 Authorization 请求头里账号资料一个账号:名称、简介和粉丝数。/v1/user_profile2 积分≈ $0.0067 · ¥0.05
curl https://api.socialtoai.com/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu", "username": "zhihuadmin" }'POST /v1/user_profileKey 放在 Authorization 请求头里账号作品一个账号最近发布的回答。/v1/user_posts2 积分≈ $0.0067 · ¥0.05
platformusernametype=answer回答2 积分type=pin想法2 积分curl https://api.socialtoai.com/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "zhihu", "username": "zhihuadmin" }'POST /v1/user_postsKey 放在 Authorization 请求头里和公众号比,知乎的回答多给作者粉丝数、评论数、转发、播放或浏览和图片;账号资料多给简介和粉丝数。
问题回答按问题编号或链接取该知乎问题下排在最前的 20 条回答。zhihu.question_answers2 积分≈ $0.0067 · ¥0.05
按问题编号或链接取该知乎问题下排在最前的 20 条回答:正文、作者、赞同数、评论数、收藏数;不翻页。
id 或 urlcurl https://api.socialtoai.com/v1/call/zhihu.question_answers \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "55043447" }'POST /v1/call/zhihu.question_answersKey 放在 Authorization 请求头里专栏文章列表按专栏编号取一页知乎专栏里的文章。zhihu.column_articles2 积分≈ $0.0067 · ¥0.05
按专栏编号取一页知乎专栏里的文章:标题、正文、作者、发布时间、赞同数、评论数。
idcurl https://api.socialtoai.com/v1/call/zhihu.column_articles \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "intelligentunit" }'POST /v1/call/zhihu.column_articlesKey 放在 Authorization 请求头里用户粉丝列表按主页地址里的用户名取一页关注该知乎用户的账号,每页 20 个。zhihu.followers2 积分≈ $0.0067 · ¥0.05
按主页地址里的用户名取一页关注该知乎用户的账号,每页 20 个:显示名、一句话介绍、头像、粉丝数、回答数、文章数。
usernamecurl https://api.socialtoai.com/v1/call/zhihu.followers \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "username": "zhihuadmin" }'POST /v1/call/zhihu.followersKey 放在 Authorization 请求头里办成一件事多少钱。
| 要做的事 | 怎么算 | 积分 | 约合 |
|---|---|---|---|
| 搜 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 档算,买得越多单价越低。监控只在你开启时运行,随时可以暂停,没有订阅。
也可以不管参数。
直接问。
通过 MCP 接一次 SocialToAI,之后该调哪些接口由 AI 决定,每一步花了多少积分你都看得到。
这周知乎上,家用咖啡和抹茶哪个更火?
- search“home coffee”2 积分
- search“matcha”2 积分
读一下这条知乎回答的评论,告诉我大家在抱怨什么。
- detail你贴的那条回答2 积分
- comments前 3 页6 积分
在知乎上找 5 个发露营咖啡内容的账号,看看他们最近发了什么。
- search搜账号 · “camping coffee”2 积分
- user_posts5 个账号10 积分
每个平台,同一种结构。
学一次就够。
知乎的回答和 TikTok 的视频,返回的字段名一模一样。平台给不了的字段,返回 null。
{ "platform": "zhihu", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "text", "title": "…", "text": "…", "published_at": "2022-04-09T05:50:28.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": null, "comments": null, "shares": null, "collects": null, "views": null, "reposts": null }, "images": null, "hashtags": null, "is_pinned": null}author.verifiedauthor.followersmetrics.likesmetrics.commentsmetrics.sharesmetrics.collectsmetrics.viewsmetrics.repostsimageshashtagsis_pinned{ "platform": "tiktok", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "video", "title": null, "text": "…", "published_at": "2026-10-08T13:12:22.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": 2060936 }, "metrics": { "likes": 67877, "comments": 524, "shares": 2472, "collects": 5331, "views": 449259, "reposts": null }, "images": null, "hashtags": [], "is_pinned": null}titleauthor.verifiedmetrics.repostsimagesis_pinned5 个工具能读知乎。
全部工具知乎有官方 API 吗?
知乎有官方的数据开放平台,提供知乎站内搜索、热榜、问题下的回答等接口。知乎用户登录后即可生成访问密钥,每天有免费额度,超出后按调用次数付费。
来源:知乎官方开发者文档,核对于 2026-10-17。
在这里读 1,000 条回答:约 56 次 zhihu.search 调用(每页通常 18 条),共 112 积分,按第一档约 $0.37。 算一下要多少钱
- 各平台评论接口对比哪些平台能取评论、每页多少条、多少积分。
- 知乎 MCP 服务器让你的 AI 直接读知乎。