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

Powerful Google Images scraper collect up to 5000 image results per runn with flexible search options, language support. Perfect for visual content research, competitor analysis, and image SEO optimization. 🖼️🔍

- **URL**: https://apify.com/easyapi/google-images-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Integrations, Social media
- **Stats:** 628 total users, 17 monthly users, 100.0% runs succeeded, 12 bookmarks
- **User rating**: 4.59 out of 5 stars

## Pricing

from $5.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 🖼️🔍

Effortlessly scrape image data from Google with this powerful and flexible Actor! 🚀

### Features ✨

- 🎨 Scrape image results based on your search query
- 🔢 Retrieve up to 5000 results per run
- 🌐 Support for multiple countries and languages
- ⏳ Time-based filtering options
- 💾 Results saved directly to your Apify dataset
- 🎛️ Advanced image filtering options (color, size, type, usage rights)

### Use Cases 💡

- 🖼️ Visual content research and trend analysis
- 🎨 Competitor image strategy analysis
- 🔍 Brand monitoring and logo tracking
- 📊 Image SEO optimization
- 🎭 Specific image type searches (e.g., clipart, GIFs)
- 📏 Size-specific image searches
- 🖌️ Color-based image analysis

### How It Works 🛠️

1. Set your search parameters in the input
2. The Actor fetch Google Image search data
3. Results are processed and saved to your Apify dataset
4. Repeat until the desired number of results is reached or all available data is collected

### Input Parameters 📝

- `maxItems`: Maximum number of results to collect (100-5000)
- `query`: Your search term
- `images_page`: Specific page of image results to retrieve
- `images_color`: Filter images by color (e.g., "red", "blue", "black\_and\_white")
- `images_size`: Filter images by size ("large", "medium", "icon")
- `images_type`: Filter images by type ("clipart", "line\_drawing", "gif")
- `images_usage`: Filter images by usage rights
- `gl`: Google country code (e.g., "us" for United States)
- `hl`: Interface language (e.g., "en" for English)
- `lr`: Language of search results (e.g., "lang\_en" for English)
- `cr`: Country restriction for search results
- `time_period`: Time range for results (e.g., "last\_month")
- `nfpr`: No auto-correction of spelling (0 or 1)
- `filter`: Whether to filter similar results (0 or 1)

### Output 📊

The Actor provides detailed information about each image result, including:

- Title
- Source URL
- Image URL
- Thumbnail URL
- Original width and height
- File format
- And more!

Get started with Google Images Scraper today and unlock valuable insights into visual content across the web! 🚀🖼️

#### Input Example

A full explanation of an input example in JSON.

```
{
    "maxItems": 100,
    "query": "spacex" 
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
    {
        "position": 1,
        "title": "SpaceX - Mission",
        "link": "https://www.spacex.com/mission/",
        "domain": "www.spacex.com",
        "width": 275,
        "height": 183,
        "image": "https://www.spacex.com/static/images/locations/kennedy.jpg",
        "source": {
            "link": "https://SpaceX - Mission",
            "domain": "spacex",
            "name": "SpaceX - Mission"
        }
    },
    {
        "position": 2,
        "title": "Amazon taps SpaceX for satellite launch even though Jeff Bezos has his own  rocket company | CNN Business",
        "link": "https://www.cnn.com/2023/12/01/business/amazon-spacex-kuiper-launch-scn/index.html",
        "domain": "www.cnn.com",
        "width": 275,
        "height": 183,
        "image": "https://media.cnn.com/api/v1/images/stellar/prod/2023-05-22t004316z-2116487779-rc2831auwisd-rtrmadp-3-space-exploration-iss-axiom.jpg?c=original",
        "source": {
            "link": "https://Amazon taps SpaceX for satellite launch even though Jeff Bezos has his own rocket company | CNN Business",
            "domain": "amazon",
            "name": "Amazon taps SpaceX for satellite launch even though Jeff Bezos has his own rocket company | CNN Business"
        }
    },
    ...
]
```

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum number of image results to be extracted.

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

The search term to use

## `images_color` (type: `string`):

Filter images by color.

## `images_size` (type: `string`):

Filter images by size.

## `images_type` (type: `string`):

Filter images by type.

## `images_usage` (type: `string`):

Filter images by usage rights.

## `gl` (type: `string`):

The Google country to use for the query

## `hl` (type: `string`):

The Google UI language to return results

## `lr` (type: `string`):

Limit the results to a specific language

## `cr` (type: `string`):

Limit the results to a specific country

## `time_period` (type: `string`):

Time period for results

## `time_period_min` (type: `string`):

Minimum date for custom time period (MM/DD/YYYY)

## `time_period_max` (type: `string`):

Maximum date for custom time period (MM/DD/YYYY)

## `nfpr` (type: `integer`):

Exclude results from auto-corrected queries (0 or 1)

## `filter` (type: `integer`):

Enable/disable Similar Results and Omitted Results filters (0 or 1)

## Actor input object example

```json
{
  "maxItems": 1000,
  "query": "spacex"
}
```

# 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 = {
    "maxItems": 1000,
    "query": "spacex"
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {
    "maxItems": 1000,
    "query": "spacex",
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/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 '{
  "maxItems": 1000,
  "query": "spacex"
}' |
apify call easyapi/google-images-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/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/6t4j4D8G0mJarJfJx/builds/EeHi6lDEcLrFPRZyJ/openapi.json
