Ae · Serper · Search

1.00积分/次
ae_serper_search

搜索网络以获取实时结果,包括新闻、图片、视频、本地场所和学术论文。

搜索
1.00积分/次

价格说明

1.00积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://api.agentearth.ai/v1/tools/run' \
  --header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "tool": "ae_serper_search",
  "input": {
    "q": "xxx",
    "gl": "xxx",
    "hl": "xxx",
    "num": "xxx",
    "tbs": "xxx",
    "page": "xxx",
    "location": "xxx",
    "autocorrect": "xxx"
  }
}'
请求方式
POST
接口地址
/v1/tools/run
鉴权方式
Bearer Token
超时时间
60 秒
当前版本
—
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
qstring是Search query. The request body field name must be q (not query).—
glstring否Country code / geographic market, e.g. us.—
hlstring否Language code, e.g. en.—
numinteger否Number of results requested.—
tbsstring否Google time/search filter string, e.g. qdr:w.—
pageinteger否Page number, when supported.—
locationstring否Human-readable location bias, when supported.—
autocorrectboolean否Whether query autocorrect should be enabled.—