Ae · Serper · News
1.00积分/次
ae_serper_news
从 Google 新闻中查找最近的新闻文章和标题。跟踪特定主题或品牌的当前事件、突发新闻和媒体报道。
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_news",
"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"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
q | string | 是 | Search query. The request body field name must be q (not query). | — |
gl | string | 否 | Country code / geographic market, e.g. us. | — |
hl | string | 否 | Language code, e.g. en. | — |
num | integer | 否 | Number of results requested. | — |
tbs | string | 否 | Google time/search filter string, e.g. qdr:w. | — |
page | integer | 否 | Page number, when supported. | — |
location | string | 否 | Human-readable location bias, when supported. | — |
autocorrect | boolean | 否 | Whether query autocorrect should be enabled. | — |
