question_idstring必填
Question ID
https://api.sandbase.ai/v1/api/zhihu/web/question-detailRetrieves question information on Zhihu using a question ID. Returns the question title, answer counts, comment counts, follower counts, and view statistics.
[
{
"data": {
"answer_count": 90,
"answer_count_description": "全部内容 90",
"comment_count": 9,
"created": 1448289701,
"detail": "",
"excerpt": "",
"follower_count": 2912,
"id": "37811449",
"question_type": "normal",
"relationship": {
"is_following": false
},
"review_info": {
"edit_is_reviewing": false,
"edit_tips": "",
"is_reviewing": false,
"tips": "",
"type": ""
},
"title": "有哪些优雅的 Windows 10 壁纸?",
"type": "question",
"updated_time": 1521972248,
"url": "https://www.zhihu.com/api/v4/questions/37811449",
"visit_count": 3350451
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns metadata for one Zhihu question: its title, creation and update times, answer, comment and follower counts, and a visit count. It needs the question_id of the question.
visit_count and follower_count of a Zhihu question change across repeated calls.review_info flags.curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/question-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question_id": "37811449"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
question_id | string | Yes | Question ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"answer_count": 90,
"answer_count_description": "全部内容 90",
"comment_count": 9,
"created": 1448289701,
"detail": "",
"excerpt": "",
"follower_count": 2912,
"id": "37811449",
"question_type": "normal",
"relationship": {
"is_following": false
},
"review_info": {
"edit_is_reviewing": false,
"edit_tips": "",
"is_reviewing": false,
"tips": "",
"type": ""
},
"title": "有哪些优雅的 Windows 10 壁纸?"
}
| Field | Meaning |
|---|---|
title | The question title as shown on Zhihu. |
id | The question ID, returned as a string. It matches the question_id you sent. |
answer_count | Number of answers on the question. |
answer_count_description | Text label for the answer count. In the example it reads 全部内容 90. |
comment_count | Number of comments on the question itself. |
follower_count | Number of users following the question. |
visit_count | Number of visits recorded for the question. |
created / updated_time | Unix timestamps in seconds for when the question was created and last updated. |
question_type / type | Kind of question and kind of object. The example returns normal and question. |
review_info.is_reviewing / review_info.edit_is_reviewing | Flags that show whether the question or an edit to it is under review. |
question_id is the number at the end of a Zhihu question URL, for example 37811449 in https://www.zhihu.com/question/37811449.detail and excerpt can come back as empty strings, as they do in the example.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Provide question_id as a string for a known Zhihu question. A question ID is not an answer ID, author token or search keyword. Select the question deliberately; this guide does not take the first hot-list item or turn a missing ID into the literal string None.
The public reference has the question record directly in the business payload, with id, title and counts such as answer_count and follower_count. Confirm the record before using these fields. Empty detail or excerpt strings are possible in the reference; they do not mean the question is missing. Missing counts remain unknown, and a reported answer_count is not the number of answers downloaded.
If you want response content, use Question Answers separately with the selected question ID. A detail lookup does not retrieve every answer or authorize an automatic collection loop. A popular question or large follower count is not evidence that every answer is reliable.
Already have a SandBase key? Reuse SANDBASE_API_KEY in your local environment and the API tab's POST /v1/api/ route with Bearer authentication. An already connected agent only needs the exact endpoint and question ID. For a new project, share the setup Skill, Markdown quickstart and your research question. Ask for one response before choosing any expansion.
Require a completed SandBase response and read outputs[0].data, then validate this endpoint's shape. Question detail is a question object; Question Answers has its own data array inside the business payload. Missing records, malformed arrays and provider errors are not empty findings. Do not silently substitute an empty dictionary or use a legacy output field.
Pricing checked on 2026-11-08: each selected endpoint lists $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not show remaining allowance. Inspect current pricing and quota before executing. No new business request or pagination roundtrip was run for this revision. The Zhihu Python first-request tutorial distinguishes current code from older research examples.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/question-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question_id": "37811449"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
question_idstring必填Question ID
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"answer_count": 90,
"answer_count_description": "全部内容 90",
"comment_count": 9,
"created": 1448289701,
"detail": "",
"excerpt": "",
"follower_count": 2912,
"id": "37811449",
"question_type": "normal",
"relationship": {
"is_following": false
},
"review_info": {
"edit_is_reviewing": false,
"edit_tips": "",
"is_reviewing": false,
"tips": "",
"type": ""
},
"title": "有哪些优雅的 Windows 10 壁纸?",
"type": "question",
"updated_time": 1521972248,
"url": "https://www.zhihu.com/api/v4/questions/37811449",
"visit_count": 3350451
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.005 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
Zhihu | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/zhihu/web/question-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
必填:question_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Zhihu Question Detail 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Zhihu API 访问权限。
请使用你所选问题的 ID。Answer ID、作者标识和搜索词是不同输入。不要自动选择第一个热门问题,也不要把缺失的 ID 转成字符串 None。
不会。它返回的是问题记录。报告中的 answer_count 是元数据,不是已下载答案的数量。Question Answers 是单独的请求,具有自己的响应形状和分页状态。
不一定。公开参考中在有效的问题记录里也有空文本字段。请验证记录及其标识;将缺失字段保留为未知,不要臆造文本或 0 计数。