Answers
How do I export the answers to a Zhihu question, and can I get all of them?
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
- 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 andtype=answer; each result'surlcontains the question ID. - Question detail. Zhihu question detail returns the title, when it was asked, the view count in
metrics.views, andext.answers(answer count),ext.followersandext.topics. - Export the answers. Zhihu question answers takes the question ID or link and returns 20 answers a page, each with its ID, link, text, time posted, and upvotes (
likes),commentsandfavorites(saves) undermetrics. Addview=standardfor the full text. For the next page, sendpage.next_cursorback ascursor; stop whenpage.has_moreis false.
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:
{
"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.viewsis null on answers; the question's views are in question detail. - Use the
standardview for text.compactcuts 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 pages through the top-level comments of one answer, $0.002 a page.
Related
- Finding content by keyword: Zhihu 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?
- From comments and answers to findings: word of mouth
Sources
Where people asked this (read 2026-11-20)
Updated