Zhihu Answer Comments

https://api.sandbase.ai/v1/api/zhihu/web/comment-v5

Get the comments on a Zhihu answer: comment text, author, time, like and reply counts, with sorting and pagination.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 3 optional
Production route

Try the model

Playground

Open playground
Input
Answer ID
Number of comments per page
Offset/Page Number
Sort
OutputExample
Responseoutputs · 58.3 KB · 1,518 lines
[
  {
    "data": {
      "ad_plugin_infos": [],
      "atmosphere_voting_config": {
        "daily_frequency": 1,
        "detail": [
          {
            "emoji_level": "dissatisfied",
            "normal_icon": "https://picx.zhimg.com/v2-1d5d094f0cd71f7da08e7e54d037c0b5.png",
            "selected_icon": "https://picx.zhimg.com/v2-9af3c8aa46b63f2f840138b0ee6b0a99.png",
            "title": "不满"
          },
          {
            "emoji_level": "fair",
            "normal_icon": "https://pica.zhimg.com/v2-706985b9364429bc4842b1027a8217ed.png",
            "selected_icon": "https://picx.zhimg.com/v2-1e8b3f0e735d3f2a98d4b43bfe793118.png",
            "title": "一般"
          },
          {
            "emoji_level": "satisfied",
            "normal_icon": "https://pic1.zhimg.com/v2-b376d3b93058da535fbd47a79eb37d14.png",
            "selected_icon": "https://pic1.zhimg.com/v2-626660f8a645e0a9af99e6b2ab7a1d44.png",
            "title": "满意"
          }
        ],
        "frequency_interval": 3,
        "location": 3,
        "min_num_of_root_comment": 10,
        "title": "你对该内容下的评论氛围是否满意?"
      },
      "comment_status": {
        "induce_text": "",
        "text": "",
        "type": 0
      },
      "counts": {
        "collapsed_counts": 0,
        "reviewing_counts": 0,
        "segment_comment_counts": 0,
        "total_counts": 241
      },
      "data": [
        {
          "_": null,
          "author": {
            "avatar_url": "https://pic1.zhimg.com/v2-27bc715d780ecfc2402e01ada9c0e98f_l.jpg?source=06d4cd63",
            "avatar_url_template": "https://pic1.zhimg.com/v2-27bc715d780ecfc2402e01ada9c0e98f_l.jpg?source=06d4cd63",
            "badge_v2": {
              "detail_badges": null,
              "merged_badges": null,
              "title": ""
            },
            "exposed_medal": {
              "avatar_url": "https://pic1.zhimg.com/v2-0cbfd5688630e180e5732c71b9935608_r.jpg?source=06d4cd63",
              "can_click": true,
              "description": "赞同 30 次",
              "medal_avatar_frame": "",
              "medal_id": "972460827463282688",
              "medal_name": "表示赞同",
              "mini_avatar_url": "https://pic1.zhimg.com/v2-0cbfd5688630e180e5732c71b9935608_r.jpg?source=06d4cd63"
            },
            "gender": 1,
            "headline": "",
            "id": "318f3f9198703cf6aff20e05b75ca635",
            "is_advertiser": false,
            "is_anonymous": false,
            "is_org": false,
            "kvip_info": {
              "is_vip": false,
              "target_url": null
            },
            "level_info": null,
            "name": "改个名字也收费",
            "ring_info": null,
            "type": "people",
            "url": "https://www.zhihu.com/api/v4/comment_v5/people/318f3f9198703cf6aff20e05b75ca635",
            "url_token": "ma-nong-yi-mei-76",
            "user_type": "people",
            "vip_info": {
              "is_vip": true,
              "target_url": null,
              "vip_icon": {
                "night_mode_url": "https://picx.zhimg.com/v2-c9686ff064ea3579730756ac6c289978.jpg?source=88ceefae",
                "url": "https://picx.zhimg.com/v2-4812630bc27d642f7cafcd6cdeca3d7a.jpg?source=88ceefae"
              }
            }
          },
          "author_tag": [],
          "can_author_top": false,
          "can_collapse": false,
          "can_delete": false,
          "can_dislike": true,
          "can_hot": false,
          "can_like": true,
          "can_more": true,
          "can_reply": true,
          "can_share": true,
          "can_truncate": false,
          "can_unfold": false,
          "child_comment_count": 60,
          "child_comment_next_offset": "1775451613_11455252749_0",
          "child_comments": [
            {
              "_": null,
              "author": {
                "avatar_url": "https://pic1.zhimg.com/1b215b61f_l.jpg?source=06d4cd63",
                "avatar_url_template": "https://pica.zhimg.com/1b215b61f_l.jpg?source=06d4cd63",
                "badge_v2": {
                  "detail_badges": null,
                  "merged_badges": null,
                  "title": ""
                },
                "exposed_medal": {
                  "avatar_url": "https://picx.zhimg.com/v2-eb56655cce39587eedeacb2824f6a116_r.jpg?source=06d4cd63",
                  "can_click": true,
                  "description": "获得 50 个赞同",
                  "medal_avatar_frame": "",
                  "medal_id": "972475023013875712",
                  "medal_name": "有口皆碑",
                  "mini_avatar_url": "https://picx.zhimg.com/v2-eb56655cce39587eedeacb2824f6a116_r.jpg?source=06d4cd63"
                },
                "gender": 2,
                "headline": "初次见面的感觉",
                "id": "4af6cd69234d800fdc8b3158746931ea",
                "is_advertiser": false,
                "is_anonymous": false,
                "is_org": false,
                "kvip_info": {
                  "is_vip": false,
                  "target_url": null
                },
                "level_info": null,
                "name": "周晨晓",
                "ring_info": null,
                "type": "people",
                "url": "https://www.zhihu.com/api/v4/comment_v5/people/4af6cd69234d800fdc8b3158746931ea",
                "url_token": "zhou-yu-meng-45",
                "user_type": "people",
                "vip_info": {
                  "is_vip": false,
                  "target_url": null
                }
              },
              "author_tag": [],
              "can_author_top": false,
              "can_collapse": false,
              "can_delete": false,
              "can_dislike": true,
              "can_hot": false,
              "can_like": true,
              "can_more": true,
              "can_reply": true,
              "can_share": true,
              "can_truncate": false,
              "can_unfold": false,
              "child_comment_count": 0,
              "child_comment_next_offset": null,
              "collapsed": false,
              "comment_tag": [
                {
                  "color": "#999999",
                  "has_border": false,
                  "night_color": "#999999",
                  "text": "四川",
                  "type": "ip_info"
                }
              ],
              "comment_type": 0,
              "content": "人和人的理解力差距已经很大了,你和爱因斯坦、钱学森比这里面的鸿沟差不多跟跨物种没什么区别。至于你感觉大模型算不算理解,就看你定义智能是什么了。很遗憾按主流的定义,和大众的期望它远远达不到。",
              "content_tag": [],
              "created_time": 1775410085,
              "disclaimer_info": null,
              "dislike_count": 0,
              "disliked": false,
              "hot": false,
              "id": "11455071967",
              "is_author": false,
              "is_author_top": false,
              "is_delete": false,
              "is_gift": false,
              "is_visible_only_to_myself": false,
              "level_tag": 3,
              "like_count": 90,
              "liked": false,
              "member_id": 4728658,
              "reply_author_tag": [],
              "reply_comment_id": "11454716173",
              "reply_root_comment_id": "11454716173",
              "resource_type": "answer",
              "reviewing": false,
              "score": 0,
              "top": false,
              "type": "comment",
              "url": "https://www.zhihu.com/api/v4/comment_v5/comments/11455071967"
            },
            {
              "_": null,
              "author": {
                "avatar_url": "https://picx.zhimg.com/v2-e9a2b85a0e23effcb5c54feb44bcd351_l.jpg?source=06d4cd63",
                "avatar_url_template": "https://picx.zhimg.com/v2-e9a2b85a0e23effcb5c54feb44bcd351_l.jpg?source=06d4cd63",
                "badge_v2": {
                  "detail_badges": null,
                  "merged_badges": null,
                  "title": ""
                },
                "exposed_medal": {
                  "avatar_url": "",
                  "can_click": false,
                  "description": "",
                  "medal_avatar_frame": "",
                  "medal_id": "",
                  "medal_name": ""
                },
                "gender": 2,
                "headline": "",
                "id": "e00d5ae52b341e835bc07681c722f5ec",
                "is_advertiser": false,
                "is_anonymous": false,
                "is_org": false,
                "kvip_info": {
                  "is_vip": false,
                  "target_url": null
                },
                "level_info": null,
                "name": "j10jkol",
                "ring_info": null,
                "type": "people",
                "url": "https://www.zhihu.com/api/v4/comment_v5/people/e00d5ae52b341e835bc07681c722f5ec",
                "url_token": "yin-dan-6-67",
                "user_type": "people",
                "vip_info": {
                  "is_vip": false,
                  "target_url": null
                }
              },
              "author_tag": [],
              "can_author_top": false,
              "can_collapse": false,
              "can_delete": false,
              "can_dislike": true,
              "can_hot": false,
              "can_like": true,
              "can_more": true,
              "can_reply": true,
              "can_share": true,
              "can_truncate": false,
              "can_unfold": false,
              "child_comment_count": 0,
              "child_comment_next_offset": null,
              "collapsed": false,
              "comment_tag": [
                {
                  "color": "#999999",
                  "has_border": false,
                  "night_color": "#999999",
                  "text": "浙江",
                  "type": "ip_info"
                }
              ],
              "comment_type": 0,
              "content": "开始自定义理解了[大笑]",
              "content_tag": [],
              "created_time": 1775451613,
              "disclaimer_info": null,
              "dislike_count": 1,
              "disliked": false,
              "hot": false,
              "id": "11455252749",
              "is_author": false,
              "is_author_top": false,
              "is_delete": false,
              "is_gift": false,
              "is_visible_only_to_myself": false,
              "level_tag": 2,
              "like_count": 42,
              "liked": false,
              "member_id": 16530177,
              "reply_author_tag": [],
              "reply_comment_id": "11454716173",
              "reply_root_comment_id": "11454716173",
              "resource_type": "answer",
              "reviewing": false,
              "score": 0,
              "top": false,
              "type": "comment",
              "url": "https://www.zhihu.com/api/v4/comment_v5/comments/11455252749"
            }
          ],
          "collapsed": false,
          "comment_tag": [
            {
              "color": "#999999",
              "has_border": false,
              "night_color": "#999999",
              "text": "上海",
              "type": "ip_info"
            }
          ],
          "comment_type": 0,

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

answer_id
string · required
limit
string · optional
offset
string · optional
order_by
string · optional

Access

Provider
Zhihu
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/zhihu/web/comment-v5
Authentication
Bearer API key

API README

Zhihu Answer Comments API

Pass a Zhihu answer ID and get its comments with like and reply counts.

Use cases

  • Analyze discussion and sentiment around an answer.
  • Collect user feedback on a topic.
  • Monitor comments on brand content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/comment-v5" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"answer_id": "2023560406912770519"}'

Parameters

NameTypeRequiredDescription
answer_idstringYesAnswer ID
limitstringNoNumber of comments per page
offsetstringNoOffset/Page Number
order_bystringNoSort

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "paging": {
    "is_end": false
  },
  "data": [
    {
      "id": "11454716173",
      "created_time": 1775378836,
      "like_count": 118,
      "child_comment_count": 60,
      "content": "人的理解能力也就那么回事,为啥非得高估人类呢,为啥感觉大模型不算理解呢?",
      "author": {
        "name": "<user>"
      }
    }
  ]
}

Notes

  • Get answer IDs from Zhihu search results or answer URLs.

Related APIs

  • Zhihu Article Search: Search Zhihu articles and answers by keyword and get titles, excerpts, authors, vote and comment counts, with sorting, content type and time filters plus offse…
  • Zhihu Hot List: Get the Zhihu hot list: trending questions with title, excerpt, heat, answer and follower counts, and links.
  • Get Zhihu AI Search (v2): Get Zhihu AI Search results (new endpoint).

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/zhihu/web/comment-v5
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/zhihu/web/comment-v5" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "answer_id": "2023560406912770519"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Zhihu$0.0015 per callJSONJul 31, 2026
Zhihu$0.0075 per callJSONJul 31, 2026
Zhihu$0.0015 per callJSONJul 31, 2026
Zhihu$0.0015 per callJSONJul 31, 2026
Zhihu$0.0015 per callJSONJul 31, 2026
Zhihu$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Zhihu Answer Comments API?

Send a POST request to https://api.sandbase.ai/v1/api/zhihu/web/comment-v5 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Zhihu Answer Comments API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Zhihu Answer Comments API accept?

Required: answer_id (string). Optional: limit (string), offset (string) and order_by (string). The Parameters table and the Playground on this page list every field.

What does the Zhihu Answer Comments API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Zhihu developer account or API key?

No. Zhihu Answer Comments runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Zhihu API access separately.