翻篇收录说明
翻篇网页快照

Web Search - Overview - Z.AI DEVELOPER DOCUMENT

https://docs.z.ai/api-reference/tools/web-search

最近抓取:2026-12-03 18:07:43(北京时间)

最近内容变化:2026-12-03 18:07:43(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

The Web Search is a specialized search engine for large language models. Building upon traditional search engine capabilities like web crawling and ranking, it enhances intent recognition to return results better suited for LLM processing (including webpage titles, URLs, summaries, site names, favicons etc.).

正文摘录

cURLcURLcurl --request POST \ --url https://api.z.ai/api/paas/v4/web_search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "search_engine": "search-prime", "search_query": "<string>", "count": 25, "search_domain_filter": "<string>", "request_id": "<string>", "user_id": "<string>" } '200default{ "id": "<string>", "created": 123, "search_result": [ { "title": "<string>", "content": "<string>", "link": "<string>", "media": "<string>", "icon": "<string>", "refer": "<string>", "publish_date": "<string>" } ] }POST/paas/v4/web_searchTry itcURLcURLcurl --request POST \ --url https://api.z.ai/api/paas/v4/web_search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "search_engine": "search-prime", "search_query": "<string>", "count": 25, "search_domain_filter": "<string>", "request_id": "<string>", "user_id": "<string>" } '200default{ "id": "<string>", "created": 123, "search_result": [ { "title": "<string>", "content": "<string>", "link": "<string>", "media": "<string>", "icon": "<string>", "refer": "<string>", "publish_date": "<string>" } ] }AuthorizationsAuthorizationstringheaderrequiredUse the following format for authentication: Bearer HeadersAccept-Languageenum<string>default:en-US,enConfig desired response language for HTTP requests.Available options: en-US,en Example:"en-US,en"Bodyapplication/jsonsearch_engineenum<string>default:search-primerequiredThe search engine code to call. search-prime: Z.AI Premium Version Search EngineAvailable options: search-prime Example:"search-prime"search_querystringrequiredThe content to be searched.countintegerThe number of results to return Fillable range: 1-50, maximum 50 results per single search Default is 10 Supported search engines: search_pro_jina.Required range: 1 <= x <= 50search_domain_filterstringUsed to limit the scope of search results and only return content from specified whitelist domains. Whitelist: Directly enter the domain name (e.g., www.example.com) Supported search engines: search_pro_jinasearch_recency_filterenum<string>Search for webpages within a specified time range. Default is noLimit Fillable values: oneDay: within one day oneWeek: within one week oneMonth: within one month oneYear: within one year noLimit: no limit (default) Supported search engines: search_pro_jinaAvailable options: oneDay, oneWeek, oneMonth, oneYear, noLimit request_idstringPassed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.Required string length: 6 - 64user_idstringUnique ID for the end user, 6–128 characters. Avoid using sensitive information.Required string length: 6 - 128Response200application/jsonProcessing successfulidstringTask ID.createdintegerRequest creation time, Unix timestamp in seconds.search_resultobject[]Search results.Hide child attributessearch_result.titlestringTitle.search_result.contentstringContent summary.search_result.linkstringResult URL.search_result.mediastringWebsite name.search_result.iconstringWebsite icon.search_result.referstringIndex number.search_result.publish_datestringWebsite publication date.Was this page helpful?YesNo