Google Serper Images

1积分/次
ae_serper_images

使用 Google 图片搜索图像,为您的项目查找视觉素材、照片和缩略图。

图像搜索
1积分/次

价格说明

1积分/次
条件费用
每次调用1积分/次

工具参数

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

参数类型必填说明默认值
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.—
safestring否Safe search mode, e.g. active.—
locationstring否Human-readable location bias, when supported.—
autocorrectboolean否Whether query autocorrect should be enabled.—

调用示例

复制请求代码,查看对应的返回示例。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_serper_images' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "gl": "cn",
    "hl": "zh-CN",
    "num": 10,
    "q": "孙燕姿 蓝色海边 夜色 黑色斗篷 短发 壁纸 高清"
  }
}'
返回示例response.json
JSON部分内容
{
  "credits": 1,
  "images": [
    {
      "domain": "haowallpaper.com",
      "googleUrl": "https://www.google.com/imgres?imgurl=https%3A%2F%2Fimg.haowallpaper.com%2Fcache_file%2F2024_06_19_file%2F15053539917860160.png&tbnid=aPmntgullnlTkM&imgrefurl=https%3A%2F%2Fhaowallpaper.com%2FhomeViewLook%2F16545291599793536&docid=FRuVks_sSp8E-M&w=890&h=501",
      "imageHeight": 501,
      "imageUrl": "https://img.haowallpaper.com/cache_file/2024_06_19_file/15053539917860160.png",
      "imageWidth": 890,
      "title": "4k孙燕姿壁纸|舞台演唱剪影背景图片- 蓝色氛围「哲风壁纸」"
    }
  ],
  "searchParameters": {
    "engine": "google",
    "gl": "cn",
    "hl": "zh-cn",
    "num": 10,
    "q": "孙燕姿 蓝色海边 夜色 黑色斗篷 短发 壁纸 高清",
    "type": "images"
  }
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。

使用该工具的指南

看看真实工作流里怎么用这个工具