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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
q | string | 是 | Search query. | — |
count | integer | 否 | Number of results, up to 20. | — |
offset | integer | 否 | Pagination offset, 0-based, up to 9. | — |
country | string | 否 | Country code. | — |
goggles | string | 否 | Optional goggles filter. | — |
ui_lang | string | 否 | UI language locale, typically in the form <language_code>-<country_code>, for example en-US. Use a Brave-supported UI locale value. | — |
freshness | enum (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. | — |
safesearch | enum (off | moderate | strict) | 否 | Safe search mode. | — |
search_lang | enum (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_snippets | boolean | 否 | Whether to include extra snippets. | — |
enable_rich_callback | boolean | 否 | Enable rich callback features. | — |
