Skip to main content
POST
联网搜索接口
Search the web for results structured for language models. The API combines crawling and ranking with intent-aware retrieval and supports multiple search engines. Results include page titles, URLs, summaries, site names, and icons.

Authorizations

Authorization
string
header
required

API认证token

Body

application/json
model
enum<string>
default:glm-search-std
required

搜索模型

Available options:
glm-search-std,
glm-search-pro,
glm-search-pro-sogou,
glm-search-pro-quark,
jina-search-v1,
deepseek-search
prompt
string
required

搜索提示

Example:

"杭州今天天气怎么样?"

intent
boolean
default:false

是否开启意图识别,默认为false

count
integer
default:10

返回结果数量,默认10,最大50

Required range: 1 <= x <= 50
domain_filter
string

域名过滤器,逗号分隔的域名列表,搜索结果将只包含这些域名的内容,仅支持该字段的模型适用该功能

Example:

"baidu.com,google.com"

recency_filter
enum<string>
default:noLimit

搜索指定时间范围内的网页,可选值为 noLimit(默认值,不限时间), oneDay(一天内), oneWeek(一周内), oneMonth(一月内), oneYear(一年内),仅支持该字段的模型适用该功能

Available options:
noLimit,
oneDay,
oneWeek,
oneMonth,
oneYear
content_size
enum<string>
default:medium

控制返回网页摘要内容的长短,可选值为 medium(中等摘要,满足常规问答任务,默认值), high(详细摘要,最大化上下文,适合需要细节支撑的场景),仅支持该字段的模型适用该功能

Available options:
medium,
high

Response

成功响应

id
string
required

请求ID

created
integer<unix-timestamp>
required

请求创建时间戳

results
object[]
required

搜索结果列表