GET /v1/zhihu/search/search_v1
Zhihu Keyword Search API (V1)
stable · 39 credits per success
Search Zhihu by keyword, with optional result type, sorting, time interval, topic display and offset controls. Use it to find relevant answers, articles or videos.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| sort | string | query | no | 排序条件。 可选值: - `upvoted_count`: 最多点赞。 - `created_time`: 最新发布。 | upvoted_count |
| offset | integer | query | no | 起始偏移量,从0开始。 | 0 |
| keyword | string | query | yes | 搜索关键词。 | 咖啡 |
| vertical | string | query | no | 结果类型筛选。 可选值: - `answer`: 仅回答。 - `article`: 仅文章。 - `zvideo`: 仅视频。 | answer |
| timeInterval | string | query | no | 发布时间间隔筛选。 可选值: - `a_day`: 一天内。 - `a_week`: 一周内。 - `a_month`: 一个月内。 - `three_months`: 三个月内。 - `half_a_year`: 半年内。 - `a_… | a_day |
| showAllTopics | string | query | no | 是否显示所有话题。 可选值: - `FALSE`: 不显示话题。 - `TRUE`: 显示所有话题。 | FALSE |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 39 credits. Any failure — including a 200 that fails the quality gate — costs 0.