# Zhihu Question Answers API

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

Source: https://www.sandbase.ai/apis/zhihu/web/question-answers
API reference: https://www.sandbase.ai/apis/zhihu/web/question-answers/docs

## Facts

- Provider: Zhihu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/zhihu/web/question-answers`
- 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/question-answers` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `question_id` | string | yes |  |
| `cursor` | string | no |  |
| `limit` | integer | no |  |
| `offset` | integer | no |  |
| `order` | string | no |  |
| `session_id` | string | no |  |

## FAQ

### How do I use the Zhihu Question Answers API?

Send a POST request to https://api.sandbase.ai/v1/api/zhihu/web/question-answers 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 Question Answers 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 Question Answers API accept?

Required: question_id (string). Optional: cursor (string), limit (integer), offset (integer), order (string) and session_id (string). The Parameters table and the Playground on this page list every field.

### What does the Zhihu Question Answers API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Zhihu developer account or API key?

No. Zhihu Question Answers 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 Question Answers API

Retrieve answers submitted to a Zhihu question using its `question_id`. Responses support pagination via `cursor`, `offset`, and `session_id`.

#### Use cases

- Read answers submitted to a specific Zhihu question.
- Track community responses to relevant discussion topics over time.
- Gather public discussions and viewpoints for topic analysis.

#### Request

```bash
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": "<question_id>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `question_id` | string | Yes | Question ID |
| `limit` | integer | No | Number of answers per page, default 5 |
| `order` | string | No | Sort order, default=default sort, updated=sort by time |
| `cursor` | string | No | Pagination cursor for next page, extracted from response fields |
| `offset` | integer | No | Offset, default 0 |
| `session_id` | string | No | Session ID for pagination state, extracted from response fields |

#### Notes

- Use `cursor` and `session_id` values extracted from response fields to page through results.
- The `limit` parameter controls how many answers return per page and defaults to 5.
- The `offset` parameter defaults to 0 for index-based pagination.

#### Related APIs

- [Zhihu AI Search Stream](/model/zhihu/web/ai-search-stream): Returns streaming AI search results from Zhihu based on a query prompt.
- [Zhihu Answer Details](/model/zhihu/web/answer-detail): Retrieves detailed information for a specific Zhihu answer using its numeric ID, including answer text, timestamps, and share links.
- [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…
