# 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
- **Features:** Limited permissions
- **Stats:** 638 total users, 5 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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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
