# Zhihu Answer Comments API

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

Source: https://www.sandbase.ai/apis/zhihu/web/comment-v5
API reference: https://www.sandbase.ai/apis/zhihu/web/comment-v5/docs

## Facts

- Provider: Zhihu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/zhihu/web/comment-v5`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, zhihu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/zhihu/web/comment-v5` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `answer_id` | string | yes |  |
| `limit` | string | no |  |
| `offset` | string | no |  |
| `order_by` | string | no |  |

## 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.

## 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

```bash
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

| Name | Type | Required | Description |
|---|---|---|---|
| `answer_id` | string | Yes | Answer ID |
| `limit` | string | No | Number of comments per page |
| `offset` | string | No | Offset/Page Number |
| `order_by` | string | No | Sort |

#### Example response

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

```json
{
  "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](/model/zhihu/web/article-search-v3): 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](/model/zhihu/web/hot-list): Get the Zhihu hot list: trending questions with title, excerpt, heat, answer and follower counts, and links.
- [Get Zhihu AI Search (v2)](/model/zhihu/web/ai-search-stream): Get Zhihu AI Search results (new endpoint).
