Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Zhihu Question Answers

API 文件
https://api.sandbase.ai/v1/api/zhihu/web/question-answers

Returns a list of answers for a specified Zhihu question. Supports pagination through cursor or offset parameters and sorting by time or default rank.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 5 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Question ID
Pagination cursor for next page, extracted from response fields
Number of answers per page, default 5
Offset, default 0
Sort order, default=default sort, updated=sort by time
Session ID for pagination state, extracted from response fields
輸出範例
回應outputs · 17.4 KB · 362 行
[
  {
    "data": {
      "ad_info": {
        "ad": {
          "ad_verb": "",
          "brand": {
            "id": 0,
            "logo": "https://pic3.zhimg.com/v2-aaf27fb675bed966caa5640a36857f2f_xl.png?source=d6434cab",
            "name": "创作者小助手"
          },
          "category": 1,
          "click_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?pdi=1622544656706943&t=4&ft=8&idi=100010065&qmlag=0&pf=4&btm=1&qmls=0&bn=0&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&pty=1&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&di=tower&qetl=0&nt=0&qpt=0&qpw=0&qmag=3&atp=0&ed=CjEEfh4wM3…"
          ],
          "close_track": "https://sugar.zhihu.com/plutus_adreaper?pty=1&qmlag=0&ft=8&qetl=0&qpw=0&bn=0&anis=0&qmls=0&idi=100010065&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&qpt=0&di=tower&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&t=7&nt=0&ar=3862136&btm=1&qmag=3&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&pdi=1622544656706943&atp=0&…",
          "close_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?pty=1&qmlag=0&ft=8&qetl=0&qpw=0&bn=0&anis=0&qmls=0&idi=100010065&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&qpt=0&di=tower&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&t=7&nt=0&ar=3862136&btm=1&qmag=3&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&pdi=1622544656706943&atp=0&…"
          ],
          "conversion_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?qetl=0&qmlag=0&qmls=0&ed=CjEEfx4wM316FGNRA2ApBUZ2AC8Lbm4jeUR_XggxKB0Ocgt5ACBvdCgcNAIXMTYNWXYPbFkqPn19HWJfAmd_FhssBHgPem11exJ0BFhtfwhddwh5DmU5NHMXdARebXkATSdJdwtzamYiUG9VBmd-Alp0AXMMdHw1JxhjUQV-dQJFcgxkCXJqZjpWb1YGaX0AWHEBegxlOShzFXQGRG14AVJ3CGxIIjN9fgMmFF5tfRY…"
          ],
          "creatives": [
            {
              "app_promotion_url": "",
              "brand": {
                "id": 0,
                "logo": "https://pic3.zhimg.com/v2-aaf27fb675bed966caa5640a36857f2f_xl.png?source=d6434cab",
                "name": "创作者小助手"
              },
              "cta": {
                "value": "查看详情"
              },
              "description": "欢迎每一位维权成功的知友现身说法,贡献真实的维权经历,参与站内回答讨论。维权信息真实、过程完整、对其他创作者有帮助的回答,将有机会获得 10000 盐粒、最新款知乎刘看山周边!",
              "footer": {
                "value": ""
              },
              "image": "",
              "landing_url": "https://zhuanlan.zhihu.com/p/2086147741097223605?spu=biz%3D0%26ci%3D3862136%26si%3D39218db4-ab3e-402f-be79-f3d51a9db38b%26ts%3D1791034804%26zid%3D236",
              "title": "有奖征集|欢迎分享「站外维权」真实经历!",
              "video_watch_num": 13365
            }
          ],
          "debug_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?ri=39218db4-ab3e-402f-be79-f3d51a9db38b&atp=0&qpw=0&ar=3862136&ft=8&di=tower&qetl=0&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&pdi=1622544656706943&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&qpt=0&ed=CjEEcx4wM316FGNRA2ApBUZ2AC8Lbm4jeUR_XggxKB0Ocgt5ACBvdCgcNAIXMTYNWX…"
          ],
          "download_silent": false,
          "experiment_info": "{}",
          "id": 3808373,
          "impression_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?qetl=0&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&t=2&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&atp=0&qmls=0&idi=100010065&qpw=0&pdi=1622544656706943&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&btm=1&ar=3862136&ft=8&qmlag=0&bn=0&di=tower&pty=1&qpt=0&pf=4&nt=0&qmag=3&an…"
          ],
          "is_new_webview": true,
          "is_speeding": false,
          "name": "",
          "native_prefetch": true,
          "party_id": -2,
          "revert_close_track": "https://sugar.zhihu.com/plutus_adreaper?qetl=0&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&btm=1&di=tower&qmag=3&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&qpt=0&anis=0&nt=0&qpw=0&atp=0&ed=CjEEch4wM316FGNRA2ApBUZ2AC8Lbm4jeUR_XggxKB0Ocgt5ACBvdCgcNAIXMTYNWXYPbFkqPn19HW…",
          "template": "web_word",
          "view_track": "https://sugar.zhihu.com/plutus_adreaper?s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&pdi=1622544656706943&idi=100010065&qmls=0&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&di=tower&ft=8&qmag=3&qmlag=0&pf=4&nt=0&qpt=0&bn=0&ar=3862136&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&ed=CjEEeR4wM316FGNRA2ApBUZ2AC8Lbm4jeU…",
          "view_tracks": [
            "https://sugar.zhihu.com/plutus_adreaper?s=a403e48f-84b0-4f4b-87ab-d71edbbdc32d&pdi=1622544656706943&idi=100010065&qmls=0&rui=39218db4-ab3e-402f-be79-f3d51a9db38b&di=tower&ft=8&qmag=3&qmlag=0&pf=4&nt=0&qpt=0&bn=0&ar=3862136&ri=39218db4-ab3e-402f-be79-f3d51a9db38b&ed=CjEEeR4wM316FGNRA2ApBUZ2AC8Lbm4jeU…"
          ],
          "za_ad_info": "CPW46AEQ7AEiATFdC4LVTmD43OsB",
          "za_ad_info_json": "{\"ad_id\":3808373,\"ad_zone_id\":236,\"category\":\"1\",\"timestamp\":1791034800,\"creative_id\":3862136}"
        },
        "adjson": "{\"ads\":[{\"id\":3808373,\"ad_zone_id\":236,\"template\":\"web_word\",\"impression_tracks\":[\"https://sugar.zhihu.com/plutus_adreaper?qmlag=0\\u0026qmag=3\\u0026ft=8\\u0026qetl=0\\u0026rui=39218db4-ab3e-402f-be79-f3d51a9db38b\\u0026ar=3862136\\u0026btm=1\\u0026anis=0\\u0026pf=4\\u0026di=tower\\u0026pty=1\\u0026t=2\\u0026a…",
        "position": 3
      },
      "data": [
        {
          "cursor": "ffcc6c94e0ee6359bbc418ffe38d5858",
          "is_jump_native": false,
          "position": 0,
          "skip_count": false,
          "target": {
            "admin_closed_comment": false,
            "allow_segment_interaction": 1,
            "annotation_action": null,
            "answer_type": "normal",
            "attached_info": "ogEYCAQQAxiJr+OM8fr8/xwg7OXf5Oe7xf8ckgIuCgk3OTk5NjI2NjISEzIwODk2NTY4NTcxNjE5NDcwMTcYBCIKSU1BR0VfVEVYVA==",
            "author": {
              "avatar_url": "https://pic1.zhimg.com/v2-b48d3f940ee72286974998c6c350b96d_l.jpg?source=1def8aca",
              "avatar_url_template": "https://picx.zhimg.com/v2-b48d3f940ee72286974998c6c350b96d.jpg?source=1def8aca",
              "badge": [
                {
                  "description": "优秀答主",
                  "topics": "… 4 items in the full response",
                  "type": "best_answerer"
                }
              ],
              "badge_v2": {
                "detail_badges": [
                  "…"
                ],
                "icon": "https://picx.zhimg.com/v2-4a07bc69c4bb04444721f35b32125c75_l.png?source=32738c0c",
                "merged_badges": [
                  "…"
                ],
                "night_icon": "https://picx.zhimg.com/v2-4a07bc69c4bb04444721f35b32125c75_l.png?source=32738c0c",
                "title": "汽车行业等 5 个话题下的优秀答主"
              },
              "exposed_medal": {
                "avatar_url": "https://pic1.zhimg.com/v2-b9c90b8615a3f2e45b30d4e33d1f6e7b_l.png?source=1def8aca",
                "description": "成为「优秀答主」即可获得",
                "medal_avatar_frame": "",
                "medal_id": "972466021521641472",
                "medal_name": "优秀答主",
                "mini_avatar_url": "https://pica.zhimg.com/v2-b9c90b8615a3f2e45b30d4e33d1f6e7b_r.png?source=1def8aca"
              },
              "follower_count": 124007,
              "gender": 1,
              "headline": "5G坚定支持者",
              "id": "6510a670dfd27b294d2337287642d59a",
              "is_advertiser": false,
              "is_followed": false,
              "is_following": false,
              "is_org": false,
              "is_privacy": false,
              "name": "现实主义理想者",
              "type": "people",
              "url": "https://www.zhihu.com/api/v4/people/6510a670dfd27b294d2337287642d59a",
              "url_token": "lcqaz777",
              "user_type": "people",
              "vip_info": {
                "is_vip": true,
                "vip_icon": {
                  "night_mode_url": "https://picx.zhimg.com/v2-c9686ff064ea3579730756ac6c289978.jpg?source=88ceefae",
                  "url": "https://picx.zhimg.com/v2-4812630bc27d642f7cafcd6cdeca3d7a.jpg?source=88ceefae"
                }
              }
            },
            "business_type": "normal",
            "can_comment": {
              "reason": "",
              "status": true
            },
            "collapse_reason": "",
            "collapsed_by": "nobody",
            "comment_count": 101,
            "comment_permission": "all",
            "content": "<p data-pid=\"RpDx4uHf\">先说一句题外话,除非某些有关部门认为关键时间点过了亦或者单纯转变了工作思路,否则极客湾这期视频是迄今为止最危险的一期。</p><p data-pid=\"FupztT7y\">尤其是视频前半段的韬芯片设计和逻辑折叠工艺解析,极客湾图文并茂,深入浅出,甚至连Die Shot相关信息都一闪而过。</p><p data-pid=\"PEFyzDeA\">(我知道这些海外都会做,但按照以往的工作思路,Die Shot相关是被有关部门点名的敏感信息,包括极客湾在内的多位大小博主都亲口确认过这一点)。</p><p data-pid=\"YVXbg2pU\">虽然不排除是上…",
            "content_mark": {},
            "content_need_truncated": false,
            "created_time": 1790993018,
            "decorative_labels": [],
            "editable_content": "",
            "endorsements": [
              {
                "action_url": "https://www.zhihu.com/people/d3422a49c2c0a11a734e99af32896d63",
                "background_color": {
                  "alpha": 0.1,
                  "group": "GBL01A"
                },
                "elements": [
                  "…",
                  "…"
                ],
                "sub_elements": [],
                "sub_elements_type": "DESCRIPTION",
                "za": {
                  "block_text": "ThanksForInvitingLabel",
                  "text": "",
                  "type": "text"
                }
              }
            ],
            "excerpt": "先说一句题外话,除非某些有关部门认为关键时间点过了亦或者单纯转变了工作思路,否则极客湾这期视频是迄今为止最危险的一期。 尤其是视频前半段的韬芯片设计和逻辑折叠工艺解析,极客湾图文并茂,深入浅出,甚至连Die Shot相关信息都一闪而过。 (我知道这些海外都会做,但按照以往的工作思路,Die Shot相关是被有关部门点名的敏感信息,包括极客湾在内的多位大小博主都亲口确认过这一点)。 虽然不排除是上头确认放行了极客湾…",
            "extras": "",
            "favlists_count": 124,
            "force_login_when_click_read_more": false,
            "has_publishing_draft": false,
            "id": "2089656857161947017",
            "is_collapsed": false,
            "is_copyable": true,
            "is_jump_native": false,
            "is_mine": false,
            "is_navigator": false,
            "is_normal": true,
            "is_sticky": false,
            "is_visible": true,
            "link_card_info": {
              "https://www.zhihu.com/question/2044558340752158944/answer/2045111051637740240": "{\"card_type\":\"card_1\",\"display\":{\"title\":\"如何评价知乎著名博主赵泠将华为“韬定律”定性为商业广告?\",\"card_open_url\":\"https://www.zhihu.com/question/2044558340752158944/answer/2045111051637740240\",\"desc\":\"459 赞同 · 48 评论 \\u003ca class=\\\"tag type_a\\\"\\u003e回答\\u003c/a\\u003e\",\"content\":\"\\u003ca class=\\\"text normal/bold\\\" data-color=…"
            },
            "matrix_tips": "835 赞同 · 124 收藏 · 101 评论",
            "navigator_vote": false,
            "question": {
              "created": 1790934830,
              "id": "2089412797440455404",
              "question_type": "normal",
              "relationship": null,
              "title": "如何评价极客湾最新视频《逻辑折叠深度解析!华为Mate 90系列韬定律芯片有多强?》?",
              "type": "question",
              "updated_time": 1790934830,
              "url": "https://www.zhihu.com/api/v4/questions/2089412797440455404"
            },
            "reaction": {
              "relation": {
                "faved": false,
                "liked": false
              },
              "statistics": {
                "down_vote_count": 74,
                "favorites": 124,
                "like_count": 59
              }
            },
            "reaction_instruction": {},
            "relationship": {
              "is_author": false,
              "is_authorized": false,
              "is_favorited": false,
              "is_nothelp": false,
              "is_thanked": false,
              "upvoted_followees": [],
              "voting": 0
            },
            "…": "14 more fields in the full response"
          },
          "target_type": "answer",
          "type": "question_feed_card"
        },
        {
          "cursor": "ffcc6c94e0ee63594ace18ffe38d5858",
          "is_jump_native": false,
          "position": 0,
          "skip_count": false,
          "target": {
            "admin_closed_comment": false,
            "allow_segment_interaction": 1,
            "annotation_action": null,
            "answer_type": "normal",
            "attached_info": "ogEYCAQQAxiCwOaO04L+/xwg7OXf5Oe7xf8ckgIuCgk3OTk5NjQzNzUSEzIwODk2NjE1MjIwMzc1NDcwMTAYBCIKSU1BR0VfVEVYVA==",
            "author": {
              "avatar_url": "https://picx.zhimg.com/bc676fb4a7f7973afe5399796b78ff3d_l.jpg?source=1def8aca",
              "avatar_url_template": "https://picx.zhimg.com/bc676fb4a7f7973afe5399796b78ff3d.jpg?source=1def8aca",
              "badge": [],
              "badge_v2": {
                "detail_badges": [],
                "icon": "",
                "merged_badges": [],
                "night_icon": "",
                "title": ""
              },
              "exposed_medal": {
                "avatar_url": "https://picx.zhimg.com/v2-548f815c48c8286768f921116785873d_l.png?source=1def8aca",
                "description": "评论 1000 次",
                "medal_avatar_frame": "",
                "medal_id": "972462538273792000",
                "medal_name": "乐于交流",
                "mini_avatar_url": "https://pic1.zhimg.com/v2-548f815c48c8286768f921116785873d_r.png?source=1def8aca"
              },
              "follower_count": 37429,
              "gender": 1,
              "headline": "非典型游戏策划……新冠感染次数:1",
              "id": "652769e677b0375285ea58a2e2e3354d",
              "is_advertiser": false,
              "is_followed": false,
              "is_following": false,
              "is_org": false,
              "is_privacy": false,
              "name": "DeepSky",
              "type": "people",
              "url": "https://www.zhihu.com/api/v4/people/652769e677b0375285ea58a2e2e3354d",
              "url_token": "zsydeepsky",
              "user_type": "people",
              "vip_info": {
                "is_vip": true,
                "vip_icon": {
                  "night_mode_url": "https://picx.zhimg.com/v2-c9686ff064ea3579730756ac6c289978.jpg?source=88ceefae",
                  "url": "https://pic1.zhimg.com/v2-4812630bc27d642f7cafcd6cdeca3d7a.jpg?source=88ceefae"
                }
              }
            },
            "business_type": "normal",
            "can_comment": {
              "reason": "",
              "status": true
            },
            "collapse_reason": "",
            "collapsed_by": "nobody",
            "comment_count": 18,
            "comment_permission": "all",
            "content": "<p data-pid=\"kuvGVKuI\">没想到是N+3叠N+2最后干翻了Google,等于是 7nm+6nm &gt; 3nm</p><p data-pid=\"uBi7d6j6\">突然想起当年被人嘲笑的 14nm+14nm &gt; 7nm (而且当年我都是嘲笑这句话的一份子)</p><p data-pid=\"vbeS9Kcv\">没想到居然还超额完成目标了……</p><p data-pid=\"POKZZgBY\">果然人还是要保持思想开放,不然就算提前有人把答案都告诉你了,也白搭……</p>",
            "content_mark": {},
            "content_need_truncated": false,
            "created_time": 1790994130,
            "decorative_labels": [],
            "editable_content": "",
            "excerpt": "没想到是N+3叠N+2最后干翻了Google,等于是 7nm+6nm &gt; 3nm 突然想起当年被人嘲笑的 14nm+14nm &gt; 7nm (而且当年我都是嘲笑这句话的一份子) 没想到居然还超额完成目标了… 果然人还是要保持思想开放,不然就算提前有人把答案都告诉你了,也白搭…",
            "extras": "",
            "favlists_count": 12,
            "force_login_when_click_read_more": false,
            "has_publishing_draft": false,
            "id": "2089661522037547010",
            "is_collapsed": false,
            "is_copyable": true,
            "is_jump_native": false,
            "is_mine": false,
            "is_navigator": false,

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Zhihu Question Answers API

Returns a page of answers for one Zhihu question, with each answer's author details and a cursor for the next page. It needs a question_id, and you can sort by default rank or by update time.

Use cases

  • Collect the top answers to a Zhihu question and list the authors who wrote them.
  • Compare the follower counts and credentials of the people answering a question.
  • Page through all answers to a question in time order with order set to updated.
  • Find answer IDs to pass to an answer detail lookup.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/question-answers" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question_id": "19550225"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
question_idstringYesQuestion ID
cursorstringNoPagination cursor for next page, extracted from response fields
limitintegerNoNumber of answers per page, default 5
offsetintegerNoOffset, default 0
orderstringNoSort order, default=default sort, updated=sort by time
session_idstringNoSession ID for pagination state, extracted from response fields

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "ad_info": {
    "ad": {
      "ad_verb": "",
      "brand": {
        "id": 0,
        "logo": "https://pic1.zhimg.com/v2-6dc7efaea43f291bbafdc2b7a9eabfb7_xl.jpg?source=d6434ca…",
        "name": "知乎日报"
      },
      "category": 1,
      "click_tracks": [
        "https://sugar.zhihu.com/plutus_adreaper?qetl=0&idi=100010063&bn=0&pty=1&qmls=0&r…"
      ],
      "close_track": "https://sugar.zhihu.com/plutus_adreaper?pdi=1585291053080156&qetl=0&di=tower&qma…",
      "close_tracks": [
        "https://sugar.zhihu.com/plutus_adreaper?pdi=1585291053080156&qetl=0&di=tower&qma…"
      ],
      "conversion_tracks": [
        "https://sugar.zhihu.com/plutus_adreaper?ft=8&qmag=3&anis=0&di=tower&ri=0d727a67-…"
      ],
      "creatives": [
        {
          "app_promotion_url": "",
          "brand": {
            "id": 0,
            "logo": "https://pic1.zhimg.com/v2-6dc7efaea43f291bbafdc2b7a9eabfb7_xl.jpg?source=d6434ca…",
            "name": "知乎日报"
          },
          "cta": {
            "value": "查看详情"
          },
          "description": "有没有哪一刻,你突然读懂了那句「今月曾经照古人」?或许是站在应县木塔下抬头的那一刻,是站在安岳茗山寺凝望的那一刻。这个秋天,想邀请你一起出发——走过古建、石窟、…",
          "footer": {
            "value": ""
          },
          "image": "",
          "landing_url": "https://www.zhihu.com/parker/campaign/2085797272877523769?zh_hide_nav_bar=true&s…",
          "title": "带着今天的问题 走近一座古建 一处古迹"
        }
      ],
      "debug_tracks": [
        "https://sugar.zhihu.com/plutus_adreaper?rui=0d727a67-b463-4c9b-985a-ca0458530b1e…"
      ],
      "download_silent": false,
      "experiment_info": "{}",
      "id": 3809965
    },
    "adjson": "{\"ads\":[{\"id\":3809965,\"ad_zone_id\":236,\"template\":\"web_word\",\"impression_tracks\"…",
    "position": 3
  },
  "data": [
    {
      "cursor": "c49443398f92ae92f26a14c9ce1cdaad",
      "is_jump_native": false,
      "position": 0,
      "skip_count": false,
      "target": {
        "admin_closed_comment": false,
        "allow_segment_interaction": 1,
        "annotation_action": null,
        "answer_type": "normal",
        "attached_info": "ogETCAQQAxj369CgzOng0RsgkaCpCZICLgoJNzY0MTM3NTA4EhMxOTkxNTc5ODI1OTU4MzAzMjIzGAQi…",
        "author": {
          "avatar_url": "https://pic1.zhimg.com/v2-bfe6200c1c029aa5b8281ea360a74e23_l.jpg?source=1def8aca",
          "avatar_url_template": "https://pica.zhimg.com/v2-bfe6200c1c029aa5b8281ea360a74e23.jpg?source=1def8aca",
          "badge": [
            {
              "description": "上海交通大学 材料科学与工程博士",
              "topics": [],
              "type": "identity"
            }
          ],
          "badge_v2": {
            "detail_badges": [
              {
                "description": "新知答主",
                "detail_type": "zhihu_yearly_answerer",
                "icon": "https://picx.zhimg.com/v2-4a07bc69c4bb04444721f35b32125c75_l.png?source=32738c0c",
                "night_icon": "https://picx.zhimg.com/v2-4a07bc69c4bb04444721f35b32125c75_l.png?source=32738c0c",
                "sources": [
                  {
                    "avatar_path": "",
                    "avatar_url": "",
                    "description": "",
                    "id": "2024",
                    "name": "",
                    "priority": 2024,
                    "token": "",
                    "type": "year"
                  }
                ],
                "title": "年度新知答主",
                "type": "reward",
                "url": "https://www.zhihu.com/question/510340037"
              }
            ],
            "icon": "https://pic1.zhimg.com/v2-27bfcba90e66db79ce8768ab807e017e_l.png?source=32738c0c",
            "merged_badges": [
              {
                "description": "新知答主",
                "detail_type": "best",
                "icon": "",
                "night_icon": "",
                "sources": [],
                "title": "年度新知答主",
                "type": "best",
                "url": "https://www.zhihu.com/question/510340037"
              }
            ],
            "night_icon": "https://pic1.zhimg.com/v2-27bfcba90e66db79ce8768ab807e017e_l.png?source=32738c0c",
            "title": "新知答主"
          },
          "exposed_medal": {
            "avatar_url": "https://picx.zhimg.com/v2-f8f0ec3b12c813410945335044af18bd_l.png?source=1def8aca",
            "description": "",
            "medal_avatar_frame": "",
            "medal_id": "2062582789959169574",
            "medal_name": "高考 2026",
            "mini_avatar_url": "https://picx.zhimg.com/v2-f8f0ec3b12c813410945335044af18bd_r.png?source=1def8aca"
          },
          "follower_count": 31313,
          "gender": 1,
          "headline": "高校教师·研究生导师·多本SCI期刊编辑编委。讲论文写作、研究生培养、学术避坑的落地方法。新书《科研全攻略》筹备中,关注我,把读研读博讲成能上手的事。\n(公众号…"
        },
        "business_type": "normal",
        "can_comment": {
          "reason": "",
          "status": true
        }
      },
      "target_type": "answer",
      "type": "question_feed_card"
    }
  ],
  "finished_reading_filtered_count": 0,
  "paging": {
    "is_end": false,
    "need_force_login": false,
    "next": "https://www.zhihu.com/api/v4/questions/19550225/feeds?cursor=c49443398f92ae92f2b…",
    "page": 1
  },
  "session": {
    "id": "1793692133874449509"
  }
}

Response fields

FieldMeaning
data[]One feed item per answer. The target_type value is answer and the answer itself sits under target.
data[].cursorCursor string for this item. Pass it as cursor to continue from this position.
data[].target.answer_typeType of the answer, for example normal.
data[].target.can_comment.statusWhether commenting is open on the answer. reason is empty when comments are allowed.
data[].target.author.headlineShort bio line the answerer set on their profile.
data[].target.author.follower_countNumber of followers the answer's author has.
data[].target.author.badge[].descriptionVerified identity text for the author, such as a school and degree. The list is empty when the author has no badge.
data[].target.author.badge_v2.detail_badges[]Detailed badges of the author, with title, description and type such as identity or reward.
data[].target.author.exposed_medal.medal_nameName of the medal the author shows on their profile. It is empty when no medal is shown.
paging.is_end / paging.page / paging.nextWhether this is the last page, the current page number, and the URL of the next page. The next URL contains the cursor for the following request.
session.idSession ID for this paging run. Pass it as session_id on later requests.

Notes

  • The question_id is the number at the end of a Zhihu question URL, such as 19550225. Zhihu Question Detail returns details for the same question.
  • To get the next page, send the cursor from paging.next (or from the last item in data) together with session.id as session_id. Stop when paging.is_end is true.
  • The response also carries an ad_info block with an ad entry. You can ignore it when you only need answers.
  • To read one answer in full, call Zhihu Answer Details.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Read the first answer page for a known question

Use question_id with explicit limit 5, offset 0 and order default for this bounded teaching request. The parameter descriptions give default limit 5 and offset 0 and describe default versus updated ordering. Omit cursor and session_id at the start. A saved example can request 20; the teaching plan uses 5 while retaining the saved Playground snapshot.

Inside outputs[0].data, the reference exposes a data array plus paging and session objects. Require an array before processing it. The reference wraps answers in feed cards: check data[].target_type equals answer and read the answer from data[].target, rather than treating the wrapper as the answer. Inspect available fields before use. Keep answer IDs and source links with any text excerpts. The separate ad_info block is not an answer. A valid empty array differs from a missing array, and one page does not establish coverage of the entire discussion.

Later pages require response-derived state: the reference describes a cursor and session.id used as session_id, along with paging.is_end. Do not follow the old suggestion to increment offset while ignoring response state, copy a truncated sample token, or fetch a provider paging.next URL with your SandBase key. This first-request guide stops after one page and does not claim continuation was tested.

Need the question's own title and counts instead? Use Question Detail independently. Answer order and votes are observations of a sample; they are not proof of truth or a representative audience survey.

Give your agent a selected question and one request

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.

探索更多

相關 APIs

所有 APIs
API價格回應
Zhihu每次呼叫 $0.001JSON
Zhihu每次呼叫 $0.005JSON
Zhihu每次呼叫 $0.001JSON
Zhihu每次呼叫 $0.001JSON
Zhihu每次呼叫 $0.001JSON
Zhihu每次呼叫 $0.001JSON

指南:Best Zhihu API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Zhihu Question Answers API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/zhihu/web/question-answers。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Zhihu Question Answers API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Zhihu Question Answers API 接受哪些參數?

必要:question_id (string)。 選填:cursor (string), limit (integer), offset (integer), order (string) 和 session_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Zhihu Question Answers API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Zhihu 開發者帳號或 API 金鑰嗎?

不需要。Zhihu Question Answers 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Zhihu API 存取權。

第一個答案分頁範例送出了什麼?

請使用選定的 question_id、limit 5、offset 0 與 order default,並省略 cursor 與 session_id。這些是明確的教學值;已儲存的 Playground 請求會另外保留。程式碼會在一次請求後停止。

我可以只透過遞增 offset 來分頁嗎?

不要這樣假設。目前參考資料也描述了由回應產生的 cursor、session.id 狀態與 paging.is_end。這次更新沒有驗證連續性、重建缺失 token,或自動再發送下一頁請求。

完成回應中的答案列表在哪裡?

業務負載是 outputs[0].data,而它的 data 屬性就是觀察到的 feed-card 陣列。對於答案卡片,請檢查 target_type 是否等於 answer,並讀取 target。使用前請先驗證陣列與記錄。獨立的 ad_info 區塊不是答案;缺少 data 陣列代表錯誤,而不是沒有答案。