知乎问题回答 API

按问题编号或链接取该知乎问题下排在最前的 20 条回答:正文、作者、赞同数、评论数、收藏数;不翻页。每次最多 20 条;$0.0020 一次。出错、超时、对象不存在都不收费;空结果收 $0.0020。

GEThttps://api.dataxapi.com/v1/zhihu/questions/answers/list
也叫知乎问题下的回答知乎回答列表英文名:Zhihu question answers API
id 就在链接里:zhihu.com/question/<id>。也可以把整条链接传给 url。
价格$0.0020约 ¥0.01/ 次 · 出错和超时不收费
返回每页 20 条一次给全,不翻页
数据源出错时自动重试同一条线路再试,有备用线路就切过去;不收费

试一次

改一个值,右边的请求跟着变。
运行 · $0.0020

登录后运行,用你自己的余额。 这个接口新用户可免费试用 50 次。

以前用的是 POST /v1/zhihu/questions/answers?已经换成这个地址。 旧接口改了什么

2026-10-12 19:18 UTC 录下的真实返回,这里是前 6 行。
字段值
typetext
published_at2017-01-23 02:28 UTC
author.followers3,641
metrics.likes228
metrics.comments34
metrics.favorites698
curl -G "https://api.dataxapi.com/v1/zhihu/questions/answers/list" \
  --data-urlencode "id=55043447" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
  "code": "ok",
  "request_id": "c2cb7ef3-9556-40a0-972e-f9fbc9adc683",
  "data": {
    "items": [
      {
        "id": "3612004169",
        "url": "https://www.zhihu.com/answer/3612004169",
        "type": "text",
        "title": "周末露营入门指南:一篇讲清楚",
        "text": "周末露营|第一次尝试就爱上了,清单放评论区",
        "published_at": "2017-01-23T02:28:14.000Z",
        "author": {
          "id": "f0065006fdb4498cad8c271c2752c668",
          "username": "aya_living",
          "name": "认真生活的阿雅",
          "avatar_url": "https://picx.zhimg.com/v2-514ec9961cf32ad9a5ba_l.jpg",
          "followers": 3641
        },
        "metrics": { "likes": 228, "comments": 34, "favorites": 698 },
        "post_id": "3675879886",
        "parent_id": "3901580217"
      },
      // … 另有 18 条
    ]
  },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 19
  },
  "warnings": [
    { "code": "items_dropped", "count": 1 }
  ],
  "meta": {
    "capability": "zhihu.questions.answers.list",
    "result_status": "complete",
    "fetched_at": "2026-10-12T19:18:39.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "lang": "capability",
      "author.verified": "capability",
      "metrics.shares": "platform",
      "metrics.views": "capability",
      "metrics.reposts": "platform",
      "images": "capability",
      "hashtags": "platform",
      "mentions": "capability",
      "is_pinned": "capability",
      "root_id": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

取自 2026-10-12 19:18 UTC 录下的真实返回。名字、正文和编号是示例,链接也是,都不是录到的原文(页面不展示任何人的个人信息);数字是原样。长列表做了截断。请求号、游标和余额是示意。

返回大小:标准档 84.3 KB(精简 35.4 KB,完整 84.3 KB)。

{
  "code": "ok",
  "request_id": "769403f1-5443-475b-a4a2-f91119d02524",
  "data": { "items": [] },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 0
  },
  "warnings": [],
  "meta": {
    "capability": "zhihu.questions.answers.list",
    "result_status": "empty",
    "fetched_at": "2026-10-12T19:18:39.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "lang": "capability",
      "author.verified": "capability",
      "metrics.shares": "platform",
      "metrics.views": "capability",
      "metrics.reposts": "platform",
      "images": "capability",
      "hashtags": "platform",
      "mentions": "capability",
      "is_pinned": "capability",
      "root_id": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

取自 2026-10-12 19:18 UTC 的录制,为演示这种情况人工改过。请求号和余额是示意。

返回大小:标准档 661 B(精简 661 B,完整 661 B)。

这份示例的 JSON 文件

curl -G "https://api.dataxapi.com/v1/zhihu/questions/answers/list" \
  --data-urlencode "id=55043447" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.zhihu.questions.answers.list(id="55043447")
print(result["data"]["items"])
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.zhihu.questions.answers.list({ id: "55043447" });
console.log(result.data.items);
dataxapi call zhihu.questions.answers.list id=55043447
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}

把这段加进你的 MCP 客户端,然后让你的 AI 调用 zhihu.questions.answers.list。

参数

id文本id、url 里给且只给一个

问题编号,一串数字。示例:55043447。

url文本id、url 里给且只给一个

问题的网页链接。示例:https://zhihu.com/question/55043447。长链接:https://zhihu.com/question/55043447。

view文本

返回档位。三档价格相同。取值:compact、standard(默认)、full。

fields文本列表

只要这些字段。按路径写,例如 author.name。

已知限制

返回字段

data.items 是内容对象的列表。稳定:字段只增不改。

id文本compact

编号,可原样传给取详情的接口

url链接compact

能直接打开的链接

type文本compact

内容形态videoimagetextarticle

title文本compact

标题

text文本compact

正文

长文本:精简档只保留前 500 个字符,并在 warnings 里写明。

lang文本standard这个接口不提供

正文的语言

展开全部 34 个字段 →
published_at时间compact

发布时间

author对象compact

作者

author.id文本compact

作者的账号编号

author.username文本compact

作者的账号名

author.name文本compact

作者的显示名

author.avatar_url链接standard

作者头像

author.verified是否standard这个接口不提供

作者是否认证

author.followers整数standard

作者的粉丝数

metrics对象compact

互动数

metrics.likes整数compact

点赞数

在这个平台上:赞同数

metrics.comments整数compact

评论数

metrics.shares整数compact平台没有

分享数

metrics.favorites整数compact

收藏数

metrics.views整数compact这个接口不提供

播放或阅读数

metrics.reposts整数compact平台没有

转发数

images链接列表standard这个接口不提供

图片地址

hashtags文本列表standard平台没有

话题标签,不带 #

mentions对象列表standard这个接口不提供

正文里提及的账号

mentions[].id文本standard这个接口不提供

账号编号

mentions[].username文本standard这个接口不提供

账号名

mentions[].name文本standard这个接口不提供

显示名

is_pinned是否standard这个接口不提供

是否被作者置顶

post_id文本compact

它回复的那条内容所在的主帖编号;不是回复则为 null

parent_id文本compact

它直接回复的那一条的编号;不是回复则为 null

root_id文本compact平台没有

所在回复串里第一层那一条的编号

approximate对象列表compact

这一条里哪些数是约数或下限;都是准确值时不出现

approximate[].field文本compact

字段的路径,如 metrics.views

approximate[].kind文本compact

约数,还是下限approximatelower_bound

每条数据的典型体积:compact 1.8 KB、standard 4.4 KB、full 4.4 KB(按 2026-10-12 19:18 UTC 录下的那次返回量的)。

这个接口给不了的

lang这个接口不提供
author.verified这个接口不提供
metrics.shares平台没有
metrics.views这个接口不提供
metrics.reposts平台没有
images这个接口不提供
hashtags平台没有
mentions这个接口不提供
mentions[].id这个接口不提供
mentions[].username这个接口不提供
mentions[].name这个接口不提供
is_pinned这个接口不提供
root_id平台没有

什么时候收费

返回了数据$0.0020,每次调用收一次
空结果$0.0020
参数不合法、我们或数据来源出错、超时不收费
情况收费
对象不存在(404)不收费
单次最高扣费$0.0020 (带 X-Max-Price 可以设自己的上限,超过就不执行)

价格读取于 2026-10-21 10:10 UTC,按价目版本 2,2026-10-17 11:00 UTC 起生效;在 Playground 里运行前会再读一次当前价格。

对象不存在时

返回 404 not_found,不收费。reason 写明是哪一种:not_found(不存在)或 private_or_deleted(私密或已删除)。

常见报错

这个接口会返回的错误码;所有接口共有的见完整列表。

状态码代码含义是否扣费
400invalid_params参数不合法能否重试:改了再试未扣费
402insufficient_balance余额不足能否重试:改了再试未扣费
404not_found对象不存在、私密或已删除能否重试:不能未扣费
502upstream_failed数据来源出错能否重试:能未扣费
504timeout没有在时限内取到数据,可以用同一个幂等键重试能否重试:能未扣费

全部错误码 →

常见问题

知乎问题回答 API 多少钱?

$0.0020 一次。单次最高扣费 $0.0020。

什么情况下不收费?

出错、超时、对象不存在都不收费;空结果收 $0.0020。

一次返回多少条?怎么翻页?

每页 20 条。每页条数由平台决定,不收 limit。一次给全,不发游标。

对象不存在会怎样?

返回 404 not_found,不收费。reason 写明是哪一种:not_found(不存在)或 private_or_deleted(私密或已删除)。

知乎的全部 16 个接口

知乎的接口

在你的 AI 里用它

复制这段提示词

你的 API Key 已经写在里面,不用再配置什么。

读 https://dataxapi.com/agents.md,在这个 agent 里帮我接好 DataXAPI。我的 API Key 是 dx_…,之后所有 DataXAPI 的调用都用它。
登录后带着你的 Key 复制

还没有账户?注册只要一个邮箱,不用绑卡,失败的调用不收费。

然后粘贴

贴给你的 agent

它会去读提示词指向的那一页,自己接好。

你的 agent
读 https://dataxapi.com/agents.md,在这个 agent 里帮我接好 DataXAPI。我的 API Key 是 dx_••••,之后所有 DataXAPI 的调用都用它。
DataXAPI 已连接 · 5 个工具可用
现在试试

现在问点什么

用下面任意一句,或者用自己的话问。

读一下 https://dataxapi.com/zh/apis/zhihu/questions/answers/list.md,然后帮我用 DataXAPI 的接口 zhihu.questions.answers.list(知乎问题回答)。
想自己手动配置?
dataxapi setup给这台电脑上的 AI 代理(Claude Code、Codex、Cursor)装好 DataXAPI 的 MCP 服务和基础技能。Key 从环境变量 DATAXAPI_API_KEY 读,不写进任何文件。MCP 服务地址:https://api.dataxapi.com/mcp。你的客户端要填的配置在本页请求示例的“MCP”页签里;接好后让你的 AI 调用 zhihu.questions.answers.list。其他客户端 →
带着这页去问会把 Markdown 版带过去
给 AI 的说明调用它要知道的全部,纯文本
展开全文
使用 DataXAPI 的接口 zhihu.questions.answers.list(知乎问题回答)。按问题编号或链接取该知乎问题下排在最前的 20 条回答:正文、作者、赞同数、评论数、收藏数;不翻页。
用 GET 请求 https://api.dataxapi.com/v1/zhihu/questions/answers/list,带请求头 "Authorization: Bearer $DATAXAPI_API_KEY"。Key 从环境变量 DATAXAPI_API_KEY 读,不要写进代码。
参数:
- id:问题编号,一串数字。示例:55043447。
- url:问题的网页链接。示例:https://zhihu.com/question/55043447。长链接:https://zhihu.com/question/55043447。
- view:返回档位。三档价格相同。取值:compact、standard(默认)、full。
- fields:只要这些字段。按路径写,例如 author.name。
价格:$0.0020 一次。出错、超时、对象不存在都不收费;空结果收 $0.0020。
返回 JSON:data.items 是内容;meta.billing.amount 是这次调用的扣费。
示例:
curl -G "https://api.dataxapi.com/v1/zhihu/questions/answers/list" \
  --data-urlencode "id=55043447" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
完整说明(Markdown):https://dataxapi.com/zh/apis/zhihu/questions/answers/list.md

名称和编号

英文名
Zhihu question answers API
接口编号
zhihu.questions.answers.list
地址
GET /v1/zhihu/questions/answers/list
最后核对于 2026-10-21 10:10 UTC。查看 Markdown 版openapi.jsonllms.txt

一把 Key,开始用。

21 个平台 207 个接口,一次 $0.0003 起。出错和超时不收费。

免费开始