Google Images (via Apify)

io.github.retracnv1.0.0更新于 Oct 5, 2026

Google Images for AI agents: full-size image URLs, sizes and source pages, with filters.

已验证Streamable HTTP可网页运行Web Search & ScrapingMedia & Design

概览

AI 生成的概览

让助手通过 Apify 搜索 Google 图片,并返回原图链接、尺寸、缩略图和来源页面。

功能
这个远程 MCP 服务器封装了一个 Apify actor,用于执行 Google 图片搜索,每张图片返回一行数据:原图链接、宽度、高度、文件大小、缩略图、标题、页面链接和站点。它支持按尺寸、颜色、类型(照片、剪贴画、线条画、人脸、动图)、时间和使用权限筛选,据称每次搜索可在数秒内返回 100 张图片。
适用场景
当助手需要以结构化数据获取图片搜索结果时使用,例如为设计或内容任务收集候选图片,或采集图片元数据与来源页面。它不是通用网页搜索工具,而是专门针对 Google 图片结果。
运行要求
远程 MCP 端点位于 mcp.apify.com,需要网络访问。需要 Apify API 令牌,通过 Authorization 请求头以 Bearer 形式发送;免费 Apify 账户即可获取。按图片数量计费,并提到有每月免费额度。
安装前请注意
Authorization 请求头携带 Apify API 令牌,应视为机密。服务按图片计费,搜索会消耗账户额度。返回的图片链接和来源页面指向第三方网站,复用前需在来源页面核对授权许可。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Images (via Apify),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "google-images": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=automationnation/google-images-scraper"
    }
  }
}

README

Google Images Scraper & API: full-size image URLs

[Run on Apify]

Google Images Scraper is an Apify Actor that returns Google Images results for any search: the full-size image URL, width, height and file size, thumbnail, title, source page and site, with filters for size, color, type, time and Creative Commons license, 100 images per search in seconds, at $0.25 per 1,000 images.

Price: $0.25 per 1,000 images ($0.20 on Gold and above) · Run it: https://apify.com/automationnation/google-images-scraper · Guide: https://retracn.github.io/automationnation-actors/google-images-scraper/

Quick facts

  • One row per image: full-size URL, width, height, file size, thumbnail, title, page URL and site.
  • Filters: size, color, type (photo, clip art, line drawing, face, animated), time and usage rights.
  • 100 images per search in seconds, plain HTTP.
  • Price: $0.25 per 1,000 images; the free $5 monthly credit covers 20,000 images.

Example input

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

Run it from code

REST API

bash
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 — see examples/python_example.py

python
# pip install apify-clientfrom 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 — see examples/node_example.mjs

js
// npm install apify-clientimport { 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);

Use it with AI agents (MCP)

Hosted MCP server URL (Claude, ChatGPT, Cursor and other clients with remote MCP support):

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

Local config for Claude Desktop / Cursor — mcp/claude_desktop_config.json:

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

FAQ

Is there a Google Images API? Google's Custom Search JSON API can search images but caps at 100 queries a day free and $5 per 1,000 after, with limited filters. Google Images Scraper on Apify returns the full results page as data, pay per image.

Can I filter for Creative Commons images? Yes: set Usage rights to Creative Commons. Always check the license on the source page.

More from AutomationNation


This repository holds usage examples. The scraper itself runs on the Apify platform; you need a free Apify account and API token. Examples are MIT licensed.

来源:README.md,提交 5fa5a2c

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.0.0最新Oct 5, 2026