# Google Images Scraper – Bulk Image Search API, $0.034/1K (`awsystems/image-search-api`) Actor

Google Images scraper and API: search Google Images in bulk and get clean JSON with image URL, size, orientation, source page and thumbnail. From $0.034 per 1,000 images plus $0.0005 per search; cached repeats are free. Filter by size, shape and domain, remove duplicates, skip dead links.

- **URL**: https://apify.com/awsystems/image-search-api.md
- **Developed by:** [Manuel Rodriguez](https://apify.com/awsystems) (community)
- **Categories:** Developer tools, SEO tools, AI
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.03 / 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 – Bulk Image Search API, $0.034/1K

Search images by keyword in bulk and get clean, structured results: the image address, its size and orientation, the page that shows it and a thumbnail. Filter by size, shape and domain, drop duplicates across queries and, if you want, skip image links that no longer work.

You pay a small fee per search and a price per image delivered. Images that your filters leave out are never charged, and repeated searches served from your cache pay no search fee.

### What you get

- **Bulk search.** Up to 1,000 queries per run, up to 100 images per query.
- **Filters that save you money.** Minimum width and height, orientation (landscape, portrait, square), and domains to keep or to skip. Filtered-out images are not delivered and not charged.
- **No duplicates.** An image found by several queries is delivered once per run. You can turn this off.
- **Dead-link check (optional).** Leaves out images whose file is gone, so you do not pay for links that fail when you download them.
- **Pay for what you get.** A search fee plus exactly the images delivered, with no rounding up. The more images per search, the lower the cost per image.
- **Instant repeats.** A search you repeat within the time you choose is served from your own cache in a fraction of a second.
- **Country and language.** Run each search as seen from a country and in a language of your choice.
- **Spending limit respected.** The run stops cleanly at the limit you set and tells you which queries were left.

### How it works

The Actor sends each query to a structured image search API and tidies the answer. It does not drive a browser, so a run takes seconds and results come in a stable format.

It returns addresses and metadata only. It does not download, store or redistribute image files.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `queries` | array of strings | required | One search per item. Repeated queries are searched once. |
| `maxResultsPerQuery` | integer, 1–100 | `100` | The most images delivered for each query. |
| `gl` | string | `us` | Country code of the search, such as `us`, `gb`, `es`. |
| `hl` | string | `en` | Language code of the search, such as `en`, `es`, `pt-br`. |
| `minWidth` | integer | `0` | Minimum width in pixels. `0` means any. |
| `minHeight` | integer | `0` | Minimum height in pixels. `0` means any. |
| `orientation` | string | `any` | `any`, `landscape`, `portrait` or `square`. |
| `includeDomains` | array of strings | empty | Keep only images shown on, or hosted by, these domains. |
| `excludeDomains` | array of strings | empty | Leave out images shown on, or hosted by, these domains. |
| `dedupeAcrossQueries` | boolean | `true` | Deliver each image once per run. |
| `checkImageUrls` | boolean | `false` | Leave out images whose file no longer answers. Slower. |
| `cacheMaxAgeHours` | integer, 0–168 | `24` | Reuse the answer of an identical earlier search of yours up to this many hours old. `0` turns the cache off. |

Example:

```json
{
    "queries": ["golden gate bridge at sunset", "tokyo skyline at night"],
    "maxResultsPerQuery": 50,
    "minWidth": 1200,
    "orientation": "landscape",
    "excludeDomains": ["pinterest.com"]
}
```

### Output

One dataset item per image:

```json
{
    "query": "golden gate bridge at sunset",
    "position": 1,
    "title": "Golden Gate Bridge at sunset",
    "imageUrl": "https://example.com/photos/golden-gate.jpg",
    "imageWidth": 2400,
    "imageHeight": 1600,
    "orientation": "landscape",
    "thumbnailUrl": "https://example.com/thumbs/golden-gate.jpg",
    "thumbnailWidth": 275,
    "thumbnailHeight": 183,
    "source": "Example Travel",
    "domain": "example.com",
    "link": "https://example.com/san-francisco/golden-gate",
    "googleUrl": null,
    "cached": false,
    "fetchedAt": "2026-01-15T10:30:00.000Z"
}
```

`position` is the place of the image in the original search results, before your filters. `fetchedAt` is when the search that found the image was made; for a `cached` image that is the earlier search. Fields the search does not provide are `null`.

The run also saves a `SUMMARY` record in its key-value store: how many images each query found and delivered, which came from the cache, and which queries were not searched or got no answer.

### Cache

Searching the same thing twice should not take twice as long. The Actor keeps the answers to your searches in a key-value store in **your own Apify account** and reuses them when you repeat a search (same query, country and language) within `cacheMaxAgeHours`.

- A query served from the cache answers in a fraction of a second. It pays no search fee; its images are charged as usual.
- Filters are applied after the cache, so you can change filters and still reuse the answer.
- Cached images are marked `"cached": true` and keep the date of the original search in `fetchedAt`.
- The cache is yours alone: other users never read or write it.
- Stores are named `image-search-cache-w…`, one per week, and the Actor removes those older than two weeks. They hold a few dozen kilobytes per distinct query, and their storage counts toward your Apify account like any other store. You can delete them at any time.
- Set `cacheMaxAgeHours` to `0` when you always need fresh results, for example for breaking news.

### How you are charged

This Actor uses pay-per-event pricing. The current prices are on the **Pricing** tab.

- **Image**: charged for each image delivered to the dataset.
- **Search query**: charged once for each search the service answers. Searches served from your cache and searches that fail are not charged.
- **Actor start**: a very small fixed fee per run, whatever the number of queries in it.

| Plan | Per 1,000 images | Per 1,000 searches |
|---|---|---|
| Free | $0.06 | $0.50 |
| Starter | $0.055 | $0.50 |
| Scale | $0.045 | $0.50 |
| Business | $0.034 | $0.50 |

Example on Business: 100 searches of 100 images each cost 100 × $0.0005 + 10,000 × $0.000034 = $0.39.

Not charged: images removed by your filters, duplicates, dead links when the check is on, and searches the service could not answer.

Set a maximum cost per run to cap your spending. When the limit is reached the run stops, keeps everything already delivered, and lists the queries it did not get to in `SUMMARY`.

### Limits

- Up to 1,000 queries per run and 100 images per query. Split larger jobs into several runs.
- With filters on, a query can deliver fewer images than you asked for: filters apply to one page of up to 100 results.
- The dead-link check drops an image only when its file is clearly gone (not found, or no answer within 5 seconds). Servers that refuse automated checks are kept.
- **Free plan:** runs started from a free Apify plan search the first 10 queries of the input. Any paid Apify plan removes this limit.

### Using the results responsibly

Search results point to images published by third parties. Most are protected by copyright, and some show identifiable people. This Actor gives you their addresses and metadata; it grants no rights over the images. Before you download, publish or otherwise use an image, make sure you have the right to do so, and follow the data protection rules that apply to you.

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Google. Google and Google Images are trademarks of Google LLC.

# Actor input Schema

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

One search per line, up to 1,000 per run. Repeated queries are searched once.

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

The most images to deliver for each query (1 to 100). You pay a small fee per search plus only the images delivered, so more images per search cost less per image.

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

Two-letter country code the search is made from, such as us, gb, es or de.

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

Language code of the search, such as en, es or pt-br.

## `minWidth` (type: `integer`):

Leave at 0 for any width. Images of unknown size are left out when this is set.

## `minHeight` (type: `integer`):

Leave at 0 for any height. Images of unknown size are left out when this is set.

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

Keep only images of one shape. Sides within 5% of each other count as square.

## `includeDomains` (type: `array`):

Keep only images shown on, or hosted by, these domains (subdomains included). Leave empty for any.

## `excludeDomains` (type: `array`):

Leave out images shown on, or hosted by, these domains (subdomains included).

## `dedupeAcrossQueries` (type: `boolean`):

Deliver each image once per run, even when several queries find it.

## `checkImageUrls` (type: `boolean`):

Check that every image file still answers and leave out those that are gone. Slower.

## `cacheMaxAgeHours` (type: `integer`):

How old a kept answer may be, from 1 to 168 hours. Set 0 to always search again and keep nothing.

## Actor input object example

```json
{
  "queries": [
    "golden gate bridge at sunset"
  ],
  "maxResultsPerQuery": 100,
  "gl": "us",
  "hl": "en",
  "minWidth": 0,
  "minHeight": 0,
  "orientation": "any",
  "dedupeAcrossQueries": true,
  "checkImageUrls": false,
  "cacheMaxAgeHours": 24
}
```

# Actor output Schema

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

One item per image: its address, size, orientation, thumbnail and the page that shows it.

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

How many images each query found and delivered, which queries came from the cache, and which were not searched or got no answer.

# 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": [
        "golden gate bridge at sunset"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("awsystems/image-search-api").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": ["golden gate bridge at sunset"] }

# Run the Actor and wait for it to finish
run = client.actor("awsystems/image-search-api").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": [
    "golden gate bridge at sunset"
  ]
}' |
apify call awsystems/image-search-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,awsystems/image-search-api"
        }
    }
}
```

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/opQt0OwAdSZwwZ9BE/builds/mJl8RE1dXahwxUYJm/openapi.json
