Ae · Bravesearch · Web · Search

5.00积分/次
ae_bravesearch_web_search

搜索网页、本地商家以及天气、股票或体育比分等实时数据。支持按日期、地点和语言筛选,以查找相关信息。

搜索
5.00积分/次

价格说明

5.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_bravesearch_web_search",
  "input": {
    "q": "xxx",
    "count": "xxx",
    "offset": "xxx",
    "country": "xxx",
    "goggles": "xxx",
    "ui_lang": "xxx",
    "freshness": "xxx",
    "safesearch": "xxx",
    "search_lang": "xxx",
    "extra_snippets": "xxx",
    "enable_rich_callback": "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.—
countinteger否Number of results, up to 20.—
offsetinteger否Pagination offset, 0-based, up to 9.—
countrystring否Country code.—
gogglesstring否Optional goggles filter.—
ui_langstring否UI language locale, typically in the form <language_code>-<country_code>, for example en-US. Use a Brave-supported UI locale value.—
freshnessenum (pd | pw | pm | py | YYYY-MM-DDtoYYYY-MM-DD)否Freshness filter. Use pd (last 24 hours), pw (last 7 days), pm (last 31 days), py (last year), or a custom range formatted as YYYY-MM-DDtoYYYY-MM-DD.—
safesearchenum (off | moderate | strict)否Safe search mode.—
search_langenum (ar | eu | bn | bg | ca | zh-hans | zh-hant | hr | cs | da | nl | en | en-gb | et | fi | fr | gl | de | el | gu | he | hi | hu | is | it | jp | kn | ko | lv | lt | ms | ml | mr | nb | pl | pt-br | pt-pt | pa | ro | ru | sr | sk | sl | es | sv | ta | te | th | tr | uk | vi)否Search language. Use one of Brave's exact supported locale codes, for example zh-hans or zh-hant. Values like zh or zh-CN are not accepted.—
extra_snippetsboolean否Whether to include extra snippets.—
enable_rich_callbackboolean否Enable rich callback features.—