curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/web_search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"search_query": "<string>",
"search_engine": "search_std",
"search_intent": false
}'
{
"id": "<string>",
"created": 123,
"request_id": "<string>",
"search_intent": [
{
"query": "<string>",
"intent": "SEARCH_ALL",
"keywords": "<string>"
}
],
"search_result": [
{
"title": "<string>",
"content": "<string>",
"link": "<string>",
"media": "<string>",
"icon": "<string>",
"refer": "<string>",
"publish_date": "<string>"
}
]
}
Web Search API 是一个专给大模型用的搜索引擎,在传统搜索引擎网页抓取、排序的能力基础上,增强了意图识别能力,返回更适合大模型处理的结果(网页标题、网页URL、网页摘要、网站名称、网站图标等)。支持意图增强检索、结构化输出和多引擎支持。
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/web_search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"search_query": "<string>",
"search_engine": "search_std",
"search_intent": false
}'
{
"id": "<string>",
"created": 123,
"request_id": "<string>",
"search_intent": [
{
"query": "<string>",
"intent": "SEARCH_ALL",
"keywords": "<string>"
}
],
"search_result": [
{
"title": "<string>",
"content": "<string>",
"link": "<string>",
"media": "<string>",
"icon": "<string>",
"refer": "<string>",
"publish_date": "<string>"
}
]
}
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object
.