For AI

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

  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 and type=answer; each result's url contains the question ID.
  2. Question detail. Zhihu question detail 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 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.
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.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 pages through the top-level comments of one answer, $0.002 a page.

Sources

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

Updated

Connect once, then just ask.

Every new key comes with $0.20 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp