# ✨ Google Images Scraper (`damilo/google-images-scraper`) Actor

⚡️ Blazing-fast Google Images Scraper. Fetch image URLs, alt-text & titles by keyword in seconds. Delivers clean JSON for AI training, visual research, and automated content pipelines.

- **URL**: https://apify.com/damilo/google-images-scraper.md
- **Developed by:** [Imad](https://apify.com/damilo) (community)
- **Categories:** AI, Automation, SEO tools
- **Stats:** 561 total users, 67 monthly users, 99.4% runs succeeded, 11 bookmarks
- **User rating**: 4.66 out of 5 stars

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Images Scraper

✅ If this actor saved you time, a ⭐⭐⭐⭐⭐ review helps me keep improving!

Need to scrape Google Images fast and reliably? This **Google Images Scraper** is the perfect tool to extract image search results by keyword — optimized for speed, clean output, and SEO accuracy.

Whether you're training AI models, building content workflows, or doing research, this scraper gets you structured image data in seconds.

***

### Table of Contents

1. [Features](#features)
2. [Input Parameters](#input-parameters)
3. [Example Input](#example-input)
4. [Output](#output)
5. [Use Cases](#use-cases)
6. [Support](#support)

***

### Features

- ⚡ **Blazing Fast**: Scrapes Google Images in seconds.
- 🔍 **Keyword Search**: Input any keyword and get relevant images.
- 🌍 **Localized Results**: Supports country and language targeting.
- 📦 **Structured Output**: Clean JSON with all key image metadata.
- 🧠 **SEO-Ready**: Ideal for AI training, content enrichment, and image sourcing.

***

### Input Parameters

| Key          | Type    | Required | Default   | Description                                                      |
| ------------ | ------- | -------- | --------- | ---------------------------------------------------------------- |
| `query`      | string  | Yes      | –         | The search query you want to scrape from Google Images.          |
| `country`    | string  | No       | `us`      | Country code to localize results (e.g., `us`, `gb`, `fr`, etc.). |
| `language`   | string  | No       | `en`      | Language of the search interface.                                |
| `num`        | integer | No       | `10`      | Number of results per page.                                      |
| `max_pages`  | integer | Yes      | `1`       | Number of pages to scrape.                                       |
| `date_range` | string  | No       | `anytime` | Filter images by upload date.                                    |

***

### Example Input

```json
{
  "query": "futuristic city art",
  "country": "us",
  "language": "en",
  "num": "20",
  "max_pages": 2,
  "date_range": "anytime"
}
```

***

### Output

The scraper returns an array of image search results with the following structure:

```json
[
  {
    "title": "Futuristic City Wallpaper",
    "imageUrl": "https://images.example.com/image.jpg",
    "thumbnailUrl": "https://images.example.com/thumb.jpg",
    "link": "https://source-website.com/page.html",
    "googleUrl": "https://www.google.com/imgres?..."
  },
  ...
]
```

***

### Use Cases

- 🔎 AI/ML model training with real-world image data
- 🧩 Content automation and media enrichment
- 📊 Trend analysis for visual search
- 📰 Editorial or design inspiration sourcing
- 🎨 Art and concept dataset creation
- ...

***

### Support

Have questions or feature requests?

- Visit the Apify community forums.
- Submit an issue directly on the Apify platform.

***

### Why Use This Google Images Scraper?

This scraper is optimized for developers, marketers, researchers, and creators who need quick, clean access to Google Images. It's lightweight, powerful, and fully customizable to your search needs — with blazing-fast performance you can rely on.

***

Happy scraping!

# Actor input Schema

## `query` (type: `string`):

The query to search for.

## `country` (type: `string`):

The country to search in.

## `language` (type: `string`):

The language to search in.

## `num` (type: `string`):

Number of results per page to scrape.

## `max_pages` (type: `integer`):

The maximum number of pages to scrape.

## `date_range` (type: `string`):

The date range to search for.

## Actor input object example

```json
{
  "query": "dogs",
  "country": "us",
  "language": "en",
  "num": "10",
  "max_pages": 1,
  "date_range": "anytime"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "dogs",
    "country": "us",
    "language": "en",
    "num": "10",
    "max_pages": 1,
    "date_range": "anytime"
};

// Run the Actor and wait for it to finish
const run = await client.actor("damilo/google-images-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "dogs",
    "country": "us",
    "language": "en",
    "num": "10",
    "max_pages": 1,
    "date_range": "anytime",
}

# Run the Actor and wait for it to finish
run = client.actor("damilo/google-images-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "dogs",
  "country": "us",
  "language": "en",
  "num": "10",
  "max_pages": 1,
  "date_range": "anytime"
}' |
apify call damilo/google-images-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,damilo/google-images-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IOrPh0bOfzJiGxsvk/builds/tsq4CG5JIukvmbYj4/openapi.json
