专为生成式AI提供全网实时信息检索服务,内置百度、豆包、元宝、夸克、搜狗引擎。具备海量内容站点、高权威性,强时效性,提供全新的搜索体验。
返回首页
AI搜索
请求示例
curl -X POST https://api.zhuimengapi.com/api/v1/search \
-H "X-API-Key: RPA-xxxxxxxx"
-H "Content-Type: application/json"
-d '{
"engine": "引擎,6 选 1:`baidu` \/ `doubao` \/ `yuanbao` \/ `zhipu` \/ `sogou` \/ `quark",
"query": "搜索词,≤70 字符",
"count": 0,
"recency": "时间过滤,5 选 1:`day` \/ `week` \/ `month` \/ `year` \/ `nolimit",
"site": [],
"search_type": "火山搜索模式,3 选 1:`web` \/ `web_summary` \/ `image`,默认 `web",
"content_size": "智谱内容长度,2 选 1:`medium` \/ `high",
"summary": false
}'import requests
url = "https://api.zhuimengapi.com/api/v1/search"
headers = {"X-API-Key": "RPA-xxxxxxxx", "Content-Type": "application/json"}
data = {
"engine": "引擎,6 选 1:`baidu` \/ `doubao` \/ `yuanbao` \/ `zhipu` \/ `sogou` \/ `quark",
"query": "搜索词,≤70 字符",
"count": 0,
"recency": "时间过滤,5 选 1:`day` \/ `week` \/ `month` \/ `year` \/ `nolimit",
"site": [],
"search_type": "火山搜索模式,3 选 1:`web` \/ `web_summary` \/ `image`,默认 `web",
"content_size": "智谱内容长度,2 选 1:`medium` \/ `high",
"summary": false
}
res = requests.post(url, json=data, headers=headers)
print(res.json())const axios = require('axios');
axios.post("https://api.zhuimengapi.com/api/v1/search", {
"engine": "引擎,6 选 1:`baidu` \/ `doubao` \/ `yuanbao` \/ `zhipu` \/ `sogou` \/ `quark",
"query": "搜索词,≤70 字符",
"count": 0,
"recency": "时间过滤,5 选 1:`day` \/ `week` \/ `month` \/ `year` \/ `nolimit",
"site": [],
"search_type": "火山搜索模式,3 选 1:`web` \/ `web_summary` \/ `image`,默认 `web",
"content_size": "智谱内容长度,2 选 1:`medium` \/ `high",
"summary": false
}, {
headers: { "X-API-Key": "RPA-xxxxxxxx", "Content-Type": "application/json" }
}).then(res => console.log(res.data));响应示例
{
"engine": "实际引擎别名",
"request_id": "上游请求 ID",
"query": "原始查询语",
"total": 0,
"results[]title": "标题",
"results[]url": "结果 URL",
"results[]site": "站点名称",
"results[]snippet": "短摘要,~200字",
"results[]summary": "长摘要,500-1000字",
"results[]content": "完整正文",
"results[]publish_time": "发布时间",
"results[]score": 0,
"results[]icon": "站点图标 URL"
}
接口信息
请求地址
https://api.zhuimengapi.com/api/v1/search
请求方式
POST
Content-Type
application/json
鉴权方式
X-API-Key: RPA-xxxxxxxx
请求参数
engine
string
必填 引擎,6 选 1:`baidu` / `doubao` / `yuanbao` / `zhipu` / `sogou` / `quark
query
string
必填 搜索词,≤70 字符
count
int
返回条数,1-50 整数,默认 10
recency
string
时间过滤,5 选 1:`day` / `week` / `month` / `year` / `nolimit
site
array
白名单站点,字符串数组,如 `["zhihu.com","csdn.net"]
search_type
string
火山搜索模式,3 选 1:`web` / `web_summary` / `image`,默认 `web
content_size
string
智谱内容长度,2 选 1:`medium` / `high
summary
bool
火山是否返回 500-1000 字摘要,`true` / `false`,默认 `true
返回字段
engine
string
必填 实际引擎别名
request_id
string
必填 上游请求 ID
query
string
必填 原始查询语
total
int
必填 返回条数
results[]title
string
必填 标题
results[]url
string
必填 结果 URL
results[]site
string
站点名称
results[]snippet
string
短摘要,~200字
results[]summary
string
长摘要,500-1000字
results[]content
string
完整正文
results[]publish_time
string
发布时间
results[]score
float
相关性 [0,1]
results[]icon
string
站点图标 URL
- 200请求成功
- 401API Key 无效或已过期,请检查密钥是否正确
- 402余额不足,请充值后再试
- 403IP 地址不在允许范围内或被限制访问
- 404接口路由不存在,请检查接口地址
- 429请求频率超限,请稍后再试
- 500服务器内部错误,请联系技术支持
- 502接口异常,或者传参错误,请联系技术支持
请求地址
https://api.zhuimengapi.com/api/v1/search
请求方式
POST
Content-Type
application/json
鉴权 Header
X-API-Key
Params
GET 请求只通过 URL 查询参数发送
Body JSON 模式
POST + application/json 使用原始 JSON 请求体
request body (JSON)
快速信息
| 接口路由 | search |
| 接口分类 | - |
| 请求方式 | POST |
| 计费方式 | 1 积分/次 |
| 频率限制 | 不限制 |
| 认证方式 | X-API-Key |
| 接口提供 | 官方接口 |