Zhihu · Search

Search by keyword (answers, articles, pins, users, topics, columns, videos, ebooks, papers)

Send a keyword and a result type; get matching answers, articles, pins, users, topics, columns, videos, ebooks or papers.

POST/v1/zhihu/search

$0.00359per record

1,000 records
≈ $3.59
minimum per page of 16 records
$0.00125

Works with trial balancePages with a cursor

Try it in the console

Send it

POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.

curl -X POST "https://api.silklinedata.com/v1/zhihu/search" \
  -H "Authorization: Bearer $SILKLINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":5,"keyword":"人工智能","searchType":"answers","sort":"votes"}'

What comes back

Records from a real request on 2026-11-09. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.

200 OK · fetched 2026-11-09
{
  "data": [
    {
      "type": "paper",
      "paperId": "1984436974791190300",
      "url": "https://www.zhihu.com/kvip/sku/paper/…",
      "title": "自动机器学习:框架、方法与挑战",
      "excerpt": "近年来,机器学习得到了广泛的关注和快速…",
      "authors": "<masked>",
      "keywords": [
        "自动机器学习",
        "机器学习",
        "模型优化"
      ],
      "journal": "微型电脑应用",
      "year": 2025,
      "volume": "41",
      "issue": "10",
      "indexedBy": []
    },
    {
      "type": "paper",
      "paperId": "2007868713802696488",
      "url": "https://www.zhihu.com/kvip/sku/paper/…",
      "title": "机器学习在肺癌预后预测模型中的应用进…",
      "excerpt": "机器学习算法在肺癌预后预测模型中的应…",
      "authors": "<masked>",
      "keywords": [
        "肺癌",
        "机器学习",
        "预测模型"
      ],
      "journal": "癌症进展",
      "year": 2025,
      "volume": "23",
      "issue": "19",
      "indexedBy": []
    }
  ],
  "cursor": "c1.Hq8vR2mTn5wK.yJ0dXA…",
  "meta": {
    "request_id": "req_01JD8Q…",
    "charged_usd": "0.007180",
    "balance_usd": "9.875000",
    "items": 2
  }
}

Fields 12

FieldTypeExample value
typestringpaper
paperIdstring1984436974791190300
urlstringhttps://www.zhihu.com/kvip/sku/paper/1984436974791190300
titlestring自动机器学习:框架、方法与挑战
excerptstring近年来,机器学习得到了广泛的关注和快速的发展。然而,以人力构建高效率的机器学习模型是一个重复、复杂和耗时的过程,随着数据…
authorsstring<masked>
keywordsarray["自动机器学习","机器学习","模型优化"]
journalstring微型电脑应用
yearnumber2025
volumestring41
issuestring10
indexedByarray[]

Parameters 4

NameTypeRequiredDescriptionExample
limitintegernoHow many records to return, 1 to 100. A request never returns more than this.5
keywordstringyes人工智能
searchTypestringnoAnswers and articles only, everything including pins, or one of the other searches: users, topics, columns, videos, ebooks or scholarly papers. Sort and time range apply only to the first three.answers
sortstringnoZhihu's default ranking, most upvoted, or newest first.votes

Paging

Send the cursor of the last answer back with the same parameters to get the next page. Each page is a request of its own, charged on its own; the last page has cursor null.

JavaScript
const params = {"keyword":"人工智能","searchType":"answers","sort":"votes"};
const records = [];
let cursor = null;
do {
  const response = await fetch("https://api.silklinedata.com/v1/zhihu/search", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
    body: JSON.stringify({ ...params, limit: 100, ...(cursor ? { cursor } : {}) }),
  });
  const answer = await response.json();
  records.push(...answer.data);
  cursor = answer.cursor;
} while (cursor);
console.log(records.length);

What a request costs

You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.

Here a page holds up to 16 records and its minimum is $0.00125; a request for 100 records reads 7 pages.

  • 1 record: up to $0.00359
  • 20 records: up to $0.0718
  • 100 records: up to $0.359

The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.

Questions

What parameters does Search by keyword (answers, articles, pins, users, topics, columns, videos, ebooks, papers) take?

Required: keyword. Optional: searchType, sort. Every request also takes limit (1 to 100).

How many records does one request return?

Up to 100 (limit 1 to 100). A page holds up to 16 records, so 100 records take 7 pages in one request.

Can I page through more results?

Yes. While the answer carries a cursor, send it back with the same parameters for the next batch.

How much does it cost?

Per record: record $0.00359. The minimum is $0.00125 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $0.359.

What does a request cost when it fails or comes back empty?

You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.