# How do I export the answers to a Zhihu question, and can I get all of them?

> Export the full text, upvotes, comments and saves of the answers under a Zhihu question, and its views and answer count. How to page through all of them, how long a cursor lasts, and the cost.

Canonical page: https://okdata.online/answers/zhihu-question-answers-export/

**Short answer: **okdata's Zhihu question answers returns the answers to a question 20 a page in Zhihu's own order, with full text, upvotes, comments and saves, for $0.002 a page; page on with the cursor to get all of them, straight through, since a cursor lasts 10 minutes. The question's views, answer count and followers come from Zhihu question detail for $0.002; a question with 222 answers costs $0.026 in all (13 calls).

Zhihu (知乎) is China's largest Q&A site, closer to Quora than to Reddit: long answers, upvotes, and questions that collect hundreds of answers over years. The short answer: you get the answers in Zhihu's default order, 20 a call, with full text and engagement, and you can page on until there are no more. When what you want is the representative views under a question, for brand research, content planning or material for an AI to read, the first page is often enough; for a full export, keep paging. The question's own view and answer counts come from a separate call, so you know how many pages to expect.

## The calls

1. **Get the question ID.** It is the number in `zhihu.com/question/350733202`; an answer link (`…/question/350733202/answer/…`) works as well. Without a link, search with [Zhihu search](/apis/zhihu/posts/search/) and `type=answer`; each result's `url` contains the question ID.
2. **Question detail.** [Zhihu question detail](/apis/zhihu/questions/get/) returns the title, when it was asked, the view count in `metrics.views`, and `ext.answers` (answer count), `ext.followers` and `ext.topics`.
3. **Export the answers.** [Zhihu question answers](/apis/zhihu/questions/answers/list/) takes the question ID or link and returns 20 answers a page, each with its ID, link, text, time posted, and upvotes (`likes`), `comments` and `favorites` (saves) under `metrics`. Add `view=standard` for the full text. For the next page, send `page.next_cursor` back as `cursor`; stop when `page.has_more` is false.

```bash
curl -G "https://api.okdata.online/v1/zhihu/questions/answers/list" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'url=https://www.zhihu.com/question/350733202' \
  --data-urlencode 'view=standard'
```

## A real run

On November 20, 2026 we searched for 咖啡机推荐 (coffee machine recommendations) and took the question 为什么不建议买一千左右的咖啡机? ("Why do people advise against coffee machines around 1,000 yuan?", ID 350733202). Question detail showed it was asked in October 2019 and had 1,328,090 views, 222 answers and 365 followers. The first page of answers held 20. One of them:

```json
{
  "id": "2026551049",
  "url": "https://www.zhihu.com/question/350733202/answer/2026551049",
  "published_at": "2021-07-29T03:56:39.000Z",
  "metrics": { "likes": 179, "comments": 108, "favorites": 235 }
}
```

The 20 were ordered neither by date nor by upvotes but by Zhihu's own ranking. In the default `compact` view, long answers were cut at 500 characters.

## What it costs

| Approach | Calls | Cost |
|---|---|---|
| One question: detail and the first 20 answers | 2 | $0.004 |
| One question with 222 answers: detail and all of them | 13 | $0.026 |
| Five search pages to find questions | 5 | $0.01 |
| 100 questions: detail and the first 20 answers each | 200 | $0.40 |

## Getting every answer

Page on: each call returns the next 20 and a new `page.next_cursor`, until `page.has_more` is false. A cursor for this endpoint lasts 10 minutes, not the 24 hours most cursors last, because Zhihu holds the paging of a question's answers only for a short while. So page straight through in one run; a cursor that sat too long answers `cursor_expired`, and you start again from the first page. Each page is a call at $0.002, so 222 answers are 12 calls.

## Gotchas

- **Answers have no view count.** Zhihu does not publish views per answer, so `metrics.views` is null on answers; the question's views are in question detail.
- **Use the `standard` view for text.** `compact` cuts long text at 500 characters, which matters for corpora and sentiment work.
- **Store authors only if you need them.** Content analysis rarely needs names or profile links.
- **Comments are a separate call.** [Zhihu answer comments](/apis/zhihu/answers/comments/list/) pages through the top-level comments of one answer, $0.002 a page.

## Related

- Finding content by keyword: [Zhihu search](/apis/zhihu/posts/search/)
- Pulling opinions out of the text with a model: [How do I use an LLM to find customer pain points in Douyin and Xiaohongshu comments?](/answers/llm-comment-pain-points-douyin-xiaohongshu/)
- From comments and answers to findings: [word of mouth](/solutions/word-of-mouth/)

## Endpoints used

- [Zhihu question answers](https://okdata.online/apis/zhihu/questions/answers/list/) `zhihu.questions.answers.list`: $0.002 per call · about 20 posts per page
- [Zhihu question detail](https://okdata.online/apis/zhihu/questions/get/) `zhihu.questions.get`: $0.002 per call
- [Zhihu search](https://okdata.online/apis/zhihu/posts/search/) `zhihu.posts.search`: $0.002 per call · about 20 posts per page

## More about Zhihu

- [Zhihu API](https://okdata.online/apis/zhihu/)
- [Is there a Zhihu hot list API I can poll on a schedule?](https://okdata.online/answers/zhihu-hot-list-api/)
- [Post search API](https://okdata.online/roles/posts-search/)
- [Zhihu hot list: today’s list](https://okdata.online/tools/hot-search/zhihu/)

## Sources

Where people asked this (read 2026-11-20): 

- https://www.zhihu.com/question/532925796
- https://www.zhihu.com/question/310373633

Updated 2026-11-20
