mcpField
G
Google Images (via Apify)

Google Images (via Apify)

远程服务
apify.com搜索与检索03 周前更新

关于 Google Images (via Apify)

Google Images (via Apify) 是 Apify Actor,可用于图片研究和发现工作流,获取 Google 图片搜索结果。它返回原图详情,并支持包括使用权在内的筛选条件。

主要功能

  1. 01原图网址与图片尺寸
  2. 02标题、缩略图和来源页面
  3. 03按尺寸、颜色、类型和时间筛选
  4. 04Creative Commons 使用权筛选
  5. 05监测新出现的搜索结果

适用场景

  1. 01查找符合视觉条件的图片
  2. 02追踪产品或标志的新图片结果
  3. 03查找来源页面与使用权信息

MCP 相关

托管的 Apify MCP 服务向 MCP 客户端提供该 Actor 的图片搜索工具,也提供使用 @apify/actors-mcp-server 的本地配置说明。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apify.com/?tools=automationnation/google-images-scraper
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.apify.com/?tools=automationnation/google-images-scraper需要授权

工具

详细介绍

Google Images Scraper 与 API:原图 URL

在 Apify 上运行

Google Images Scraper 是一个 Apify Actor,可返回任意搜索的 Google 图片结果,包括原图 URL、宽度、高度和文件大小、缩略图、标题、来源页面和网站,并支持按尺寸、颜色、类型、时间和 Creative Commons 许可筛选。几秒钟内即可获取每次搜索的 100 张图片,价格为每 1,000 张图片 $0.25。

**价格:**每 1,000 张图片 $0.25(Gold 及以上套餐为 $0.20) · 运行: https://apify.com/automationnation/google-images-scraper · 指南: https://retracn.github.io/automationnation-actors/google-images-scraper/

快速了解

  • 每张图片对应一行:原图 URL、宽度、高度、文件大小、缩略图、标题、页面 URL 和网站。
  • 筛选条件:尺寸、颜色、类型(照片、剪贴画、线描、人脸、动画)、时间和使用权限。
  • 使用纯 HTTP,几秒钟内即可获取每次搜索的 100 张图片。
  • 监控:开启 Only new results 后,定时运行只会返回之前运行中没有的图片,例如,用于发现你的产品或徽标出现在新网站上。
  • 价格:每 1,000 张图片 $0.25;每月 $5 的免费额度可获取 20,000 张图片。

输入示例

{
  "queries": [
    "modern kitchen"
  ],
  "maxResultsPerQuery": 100
}

通过代码运行

REST API

curl -X POST "https://api.apify.com/v2/acts/automationnation~google-images-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["modern kitchen"], "maxResultsPerQuery": 100}'

Python — 参见 examples/python_example.py

# pip install apify-client
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automationnation/google-images-scraper").call(run_input={
  "queries": [
    "modern kitchen"
  ],
  "maxResultsPerQuery": 100
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("imageUrl"), item.get("imageWidth"), item.get("pageUrl"))

JavaScript — 参见 examples/node_example.mjs

// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automationnation/google-images-scraper').call({
  "queries": [
    "modern kitchen"
  ],
  "maxResultsPerQuery": 100
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.title, item.imageUrl, item.imageWidth, item.pageUrl);

与 AI Agent 配合使用(MCP)

托管的 MCP 服务 URL(适用于 Claude、ChatGPT、Cursor 及其他支持远程 MCP 的客户端):

https://mcp.apify.com?tools=automationnation/google-images-scraper

Claude Desktop / Cursor 的本地配置 — mcp/claude_desktop_config.json:

{
  "mcpServers": {
    "google-images-scraper": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--tools",
        "automationnation/google-images-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}

常见问题

有 Google 图片 API 吗? Google Custom Search JSON API 已停止接受新客户,并将于 2027 年 1 月 1 日停用,而且每次请求只返回 10 张图片。Apify 上的 Google Images Scraper 可将每次搜索最多 100 张图片作为数据返回,按图片付费。

可以筛选 Creative Commons 图片吗? 可以:将 Usage rights 设为 Creative Commons。请务必在来源页面核实许可。

更多 AutomationNation 内容


此仓库包含使用示例。爬虫本身运行在 Apify 平台 上;你需要一个免费的 Apify 账户和 API 令牌。示例采用 MIT 许可证。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。