跳转到主要内容
当你只想更快拿到搜索结果,而不需要页面抽取、向量检索和重排序时,使用这条路由。

Endpoint

方法端点
GEThttps://api.pipellm.ai/v1/websearch/simple-search

认证

Authorization: Bearer $PIPELLM_API_KEY

查询参数

参数类型必填描述
qstring搜索关键词

请求示例

curl -X GET "https://api.pipellm.ai/v1/websearch/simple-search?q=最新AI新闻" \
  -H "Authorization: Bearer $PIPELLM_API_KEY"

响应结构

{
  "code": 200,
  "message": "ok",
  "took_ms": 950,
  "data": {
    "answerBox": {
      "title": "Latest AI news",
      "snippet": "..."
    },
    "organic": [
      {
        "title": "AI News",
        "link": "https://example.com",
        "snippet": "Latest updates..."
      }
    ]
  }
}

说明

  • 这条路由代理到内部 /api/simple-search
  • 它会更快返回结果,但不会通过深度检索补充 contexts
  • 成功请求仍然按 WebSearch 计费。

相关文档

深度搜索

需要更丰富上下文时,使用检索和重排序

新闻搜索

搜索近期新闻,而不是通用网页结果

WebSearch 总览

查看产品总览和完整路由矩阵