Zhihu-Web-API

获取知乎AI搜索(新版)/Get Zhihu AI Search (v2)

Changed on

[中文]

用途:

  • 获取知乎 AI 搜索结果 (新版接口)

参数:

  • message_content: 搜索内容
  • chat_mode: 对话模式, 默认 FAST
  • session_id: 会话ID, 多轮时传

返回:

  • 知乎 AI 搜索结果, 数据为事件列表 {"events": [...]}

[English]

Purpose:

  • Get Zhihu AI Search results (new endpoint)

Parameters:

  • message_content: Search Content
  • chat_mode: Chat mode, default FAST
  • session_id: Session ID for multi-turn

Returns:

  • Zhihu AI Search results as an event list {"events": [...]}

[示例/Example]

message_content = "deepseek" chat_mode = "FAST" session_id = ""

get/api/v1/zhihu/web/fetch_ai_search_stream

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

message_contentstring required

搜索内容/Search Content

chat_modestring

对话模式/Chat mode

session_idstring

会话ID/Session ID

Response

Successful Response

codeinteger

HTTP status code | HTTP状态码

request_idstring nullable

Unique request identifier | 唯一请求标识符

messagestring

Response message (EN-US) | 响应消息 (English)

message_zhstring

Response message (ZH-CN) | 响应消息 (中文)

supportstring

Support message | 支持消息

timestring

The time the response was generated | 生成响应的时间

time_stampinteger

The timestamp the response was generated | 生成响应的时间戳

time_zonestring

The timezone of the response time | 响应时间的时区

docsstring nullable

Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接

cache_messagestring nullable

Cache message (EN-US) | 缓存消息 (English)

cache_message_zhstring nullable

Cache message (ZH-CN) | 缓存消息 (中文)

cache_urlstring nullable

The URL to access the cached result | 访问缓存结果的 URL

routerstring

The endpoint that generated this response | 生成此响应的端点

paramsunknown
dataunknown

Changes