# Google Images Scraper (Full-Size Image URLs) (`locaihost/google-images`) Actor

Google Images results by keyword: title, full-size image URL with width and height, thumbnail, source page and domain, for any country and language. One free summary row per query. Pay per image returned.

- **URL**: https://apify.com/locaihost/google-images.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.83 / 1,000 images

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 (Full-Size Image URLs)

Google Images results by keyword. Each image comes as one row with its full-size URL, width and height, thumbnail, and the page it was found on. Search from any of 43 countries in 31 languages, with SafeSearch and Google's image filters. No login. You pay per image returned.

### Input

```json
{
    "queries": ["modern kitchen design"],
    "maxResultsPerQuery": 50,
    "country": "us",
    "language": "",
    "safeSearch": true,
    "onlyNew": false
}
```

- **queries** (required): what to search images of, one per line. Up to 1,000 per run.
- **maxResultsPerQuery**: most images per query, 1 to 500. Default 50. Google itself lists about 300 to 450 images for one query, so very high values stop where Google stops.
- **country**: where the search comes from. Google shows different images in each country. Default us.
- **language**: Google's interface language. Leave on Country default for the country's main language.
- **safeSearch**: Google's adult-content filter, on by default.
- **onlyNew**: skip every image an earlier run already returned. For scheduled tracking. Default off.

Advanced filters (collapsed under their own heading, all optional): size (large, medium, icon), color, type (photo, clip art, line drawing, face, animated), time (past day, week, month, year) and usage rights (Creative Commons, commercial and other). They map straight onto Google's own filters, so results match what you would see in the browser.

### Output

One row per image:

| field | what it is |
|---|---|
| query | the query from your input |
| position | 1-based position among the query's images |
| title | the image's title as Google shows it, when shown |
| imageUrl | the original, full-size image file |
| imageWidth | width of the original in pixels, when Google reports it |
| imageHeight | height of the original in pixels, when Google reports it |
| thumbnailUrl | Google's small preview of the image |
| sourcePageUrl | the page the image was found on |
| sourceDomain | the source page's domain |
| sourceName | the site name Google shows, when shown |
| country | the country the search came from |
| language | the Google interface language used |
| scrapedAt | when the row was read |

Every row also carries an `id` (stable for the same query and image in the same country and language), `type` ("image") and `googleDomain`.

### Free rows, never charged

Every query ends with one free summary row (`type` "summary"): imagesFound, imagesReturned, skippedAsSeen, and a note on how the query ended. Nothing is ever charged for summary rows. Images you skip with onlyNew are never charged for again either. On the free Apify plan a run returns up to 500 rows and opens up to 25 Google pages per run; any paid plan removes both limits.

The Actor has one paid event, "image": $1.50 per 1,000 images on the Free and Starter plans (less on Scale and Business), and nothing else.

### How it reads Google

The Actor opens Google Images through Apify's Google SERP proxy, one results page per query plus more pages when you ask for more than one page of images. Pages that add nothing new end the query early, so you never pay for an empty page.

### FAQ

#### Do I get the full-size image or a thumbnail?

Both. `imageUrl` is the original, full-size file on its source site, with its width and height. `thumbnailUrl` is Google's small preview.

#### Can I download the image files?

Not with this Actor. It returns the URLs, sizes and sources. Point your own downloader at `imageUrl`.

#### What does a run cost?

$1.50 per 1,000 images, so 100 images cost $0.15. Summary rows, and images skipped by onlyNew, are never charged.

#### What happens when Google shows nothing for a query?

The run still ends SUCCEEDED and the query's summary row says so. Nothing is charged for an empty query.

#### How do I track only new images?

Turn on onlyNew and schedule the run. The Actor remembers every image URL per query in its own key-value store and skips the ones you already have. The summary rows tell you how many were skipped.

#### Are the usage-rights filters a licence?

No. They are Google's own filters, applied as Google applies them. Check the licence on the source page before reusing an image.

#### Which countries and languages can I pick?

43 countries and 31 languages, listed in the input. The country decides which Google domain is searched, so results match what a person there would see.

#### Why did my run end with fewer images than I asked for?

The summary rows say why: Google ran out of pages, the run hit its time limit, or the free plan hit its caps. Raise maxResultsPerQuery, raise the run timeout, or move to a paid plan.

# Changelog

This Actor's version history is a separate document: https://apify.com/locaihost/google-images/changelog.md

# Actor input Schema

## `queries` (type: `array`):

What to search images of, one per line. Paste up to 1,000.

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

Where the searches come from. Google shows different images in each country.

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

Google's interface language. Leave on Country default to use the country's main language.

## `maxResultsPerQuery` (type: `integer`):

Stops each query once this many images have been returned. More images means more Google pages read. Maximum 500.

## `safeSearch` (type: `boolean`):

Google's adult-content filter, on by default. Turn it off only if your use needs every kind of result.

## `onlyNew` (type: `boolean`):

Skip every image an earlier run with the same country and language already returned. Each query's free summary row says how many were skipped. For scheduled tracking.

## `size` (type: `string`):

Google's size filter. Any (the default) returns every size.

## `color` (type: `string`):

Google's color filter.

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

Google's content-type filter: photos, clip art, line drawings, faces or animated images.

## `time` (type: `string`):

Only images Google first saw within this period.

## `usageRights` (type: `string`):

Only images Google marks with one of these licences. Check the licence on the source page before reusing an image.

## Actor input object example

```json
{
  "queries": [
    "modern kitchen design",
    "wooden desk organizer",
    "mountain sunrise"
  ],
  "country": "us",
  "language": "",
  "maxResultsPerQuery": 50,
  "safeSearch": true,
  "onlyNew": false,
  "size": "any",
  "color": "any",
  "type": "any",
  "time": "any",
  "usageRights": "any"
}
```

# Actor output Schema

## `images` (type: `string`):

Every image: query, position, title, full-size image URL, width, height, thumbnail, source page, domain and site name.

## `summaries` (type: `string`):

One free row per query: images found, returned and skipped as seen, with a note on how it ended.

## `summary` (type: `string`):

Counts per query, anything that failed, and cost.

# 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 = {
    "queries": [
        "modern kitchen design"
    ],
    "maxResultsPerQuery": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/google-images").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 = {
    "queries": ["modern kitchen design"],
    "maxResultsPerQuery": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/google-images").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 '{
  "queries": [
    "modern kitchen design"
  ],
  "maxResultsPerQuery": 50
}' |
apify call locaihost/google-images --silent --output-dataset

```

## MCP server setup

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

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/TxdHuxtstqe1rfQfD/builds/dqGQkgtpKsCI2T0AH/openapi.json
