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
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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 Question Detailこの 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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/zhihu/web/question-detail に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: question_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Zhihu Question Detail は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Zhihu の API アクセスを別途申請する必要はありません。
選択した質問の ID を使用してください。answer ID、投稿者識別子、検索語はそれぞれ別の入力です。最初に表示された trending の質問を自動で選んだり、欠落した ID を文字列 None に変換したりしないでください。
いいえ。返るのは質問レコードです。報告上の answer_count はメタデータであり、ダウンロードされた回答数ではありません。Question Answers は別リクエストで、独自のレスポンス形状とページネーション状態を持ちます。
それだけでは判断できません。公開リファレンスには、有効な質問レコードでも text フィールドが空のものがあります。レコードと識別子を検証し、欠落フィールドは text を作ったり 0 件と決めつけたりせず、不明のまま保持してください。