Authorizations
使用以下格式进行身份验证:Bearer <your api key>
Body
application/json
Response
业务处理成功
The response is of type object
.
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,
"count": 10,
"search_domain_filter": "<string>",
"search_recency_filter": "noLimit",
"content_size": "medium",
"request_id": "<string>",
"user_id": "<string>"
}'
{
"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,
"count": 10,
"search_domain_filter": "<string>",
"search_recency_filter": "noLimit",
"content_size": "medium",
"request_id": "<string>",
"user_id": "<string>"
}'
{
"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
.