# Brave Images Scraper (`searchapi/brave-images-scraper`) Actor

Scrapes image search results from Brave Search (search.brave.com/images). Extracts the full canonical image-vertical schema: title, alt text, full image URL, thumbnail, dimensions, aspect ratio, file format, dominant color, NSFW flag, source attribution, creator, license, and more.

- **URL**: https://apify.com/searchapi/brave-images-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** Developer tools, Automation, AI
- **Stats:** 2 total users, 1 monthly users, 96.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 brave images scraper results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## Brave Images Scraper

Scrapes image search results from Brave Search (search.brave.com/images). Extracts the full canonical image-vertical schema: title, alt text, full image URL, thumbnail, dimensions, aspect ratio, file format, dominant color, NSFW flag, source attribution, creator, license, and more.

### What this Actor collects

Each dataset item represents one Brave Images result, with the full image, thumbnail, source page, dimensions, format, attribution, safety flags, and search context that Brave exposes.

- Uses the input limits and filters below to control the crawl.
- Stores source-backed fields defined by the 60-field dataset schema.
- Omits optional fields when the source does not expose a value instead of writing nulls or fabricated placeholders.

### Use cases

- Visual research
- Image-source discovery
- Media and asset enrichment

### Input

Provide input in JSON. Fields marked required must be supplied; source-specific alternatives and constraints are described in the field text.

| Field | Type | Required | Default | Description |
| --- | --- | :---: | --- | --- |
| `query` | string | Yes | — | The image search query. |
| `maxItems` | integer | No | `100` | Maximum number of images to scrape. |
| `country` | string | No | `"us"` | Brave country code (e.g. 'us', 'gb', 'in'). |
| `language` | string | No | `"en"` | Brave language code (e.g. 'en', 'de', 'fr'). |
| `safeSearch` | string | No | `"moderate"` | Safe search filter. Options: "off", "moderate", or "strict". |
| `size` | string | No | `""` | Image-size filter: `small`, `medium`, `large`, `wallpaper`, or empty for no filter. |
| `color` | string | No | `""` | Color filter: `color`, `bw`, a supported named color, or empty for no filter. |
| `type` | string | No | `""` | Image-type filter: `photo`, `clipart`, `gif`, `transparent`, `line`, or empty for no filter. |
| `layout` | string | No | `""` | Filter by image layout. Options: "square", "tall", "wide". |
| `license` | string | No | `""` | License filter: `creativecommon`, `commercial`, or empty for no filter. |
| `maxScrolls` | integer | No | `20` | Maximum page-bottom scrolls used to load additional image cards. |
| `navigationTimeoutSecs` | integer | No | `60` | Maximum seconds to wait for the search page navigation. |
| `maxRequestRetries` | integer | No | `3` | Retries temporary rate limits and server errors with progressive backoff. |
| `headless` | boolean | No | `true` | Disable only for local visual debugging. |
| `proxyConfiguration` | object | No | — | Proxy settings. Residential proxies recommended. |

#### Example input

```json
{
  "query": "nature photography",
  "maxItems": 100,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "safeSearch": "moderate"
}
```

### Output

The default dataset contains one item per image result. The following are the most useful fields; creator, license, dimensions, and safety fields appear only when Brave provides them.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `title` | string | Title |
| `imageUrl` | string | Image URL |
| `thumbnailUrl` | string | Thumbnail URL |
| `sourceDomain` | string | Source Domain |
| `creator` | string | Creator |
| `license` | string | License |
| `width` | integer | Width |
| `height` | integer | Height |
| `fileFormat` | string | File Format |
| `aspectRatio` | number | Aspect Ratio |
| `searchQuery` | string | Search Query |
| `country` | string | Country |
| `scrapedAt` | string | Scraped At |
| `type` | string | Record Type |
| `url` | string | URL |

<details>
<summary>All 60 declared dataset fields</summary>

`type`, `position`, `title`, `imageUrl`, `thumbnailUrl`, `sourceDomain`, `creator`, `license`, `width`, `height`
`fileFormat`, `format`, `aspectRatio`, `searchQuery`, `country`, `scrapedAt`, `resultType`, `page`, `altText`, `alt`
`url`, `link`, `thumbnail`, `previewImage`, `originalUrl`, `mimeType`, `fileSize`, `fileSizeFormatted`, `sizePixels`, `size`
`isAnimated`, `color`, `colorHex`, `dominantColor`, `orientation`, `isAdult`, `isAd`, `isSponsored`, `sourceUrl`, `hostPageUrl`
`domain`, `hostPageDomain`, `source`, `sourceName`, `favicon`, `photographer`, `creatorUrl`, `creatorAvatar`, `copyright`, `pageTitle`
`pageUrl`, `caption`, `tags`, `similarImages`, `engineId`, `engineData`, `query`, `searchUrl`, `language`, `searchMetadata`

</details>

#### Example dataset item

This compact example is taken from local Actor storage. Long text and nested collections are shortened for documentation only.

```json
{
  "position": 1,
  "title": "Beautiful Purple, graphy, purple, nature, forests, rivers, HD wallpaper",
  "imageUrl": "https://w0.peakpx.com/wallpaper/204/148/HD-wallpaper-beautiful-purple-graphy-purple-nature-forests-rivers-thumbnail.jpg",
  "thumbnailUrl": "https://imgs.search.brave.com/tlgHd0ijn2f-R2xnKVbtsQAvO4qVoFtAxU0U7S_7U-U/rs:fit:500:0:1:0/g:ce/aHR0cHM6Ly93MC5w/ZWFrcHguY29tL3dh/bGxwYXBlci8yMDQv/MTQ4L0hELXdhbGxw/YXBlci1iZWF1dGl…",
  "sourceDomain": "peakpx.com",
  "width": 338,
  "height": 255,
  "fileFormat": "jpg",
  "aspectRatio": 1.3255,
  "searchQuery": "nature photography",
  "country": "us",
  "scrapedAt": "2026-07-23T15:40:13.852Z"
}
```

### Related Actors

- [Brave AI Mode Scraper](https://apify.com/searchapi/brave-ai-mode-scraper)
- [Brave Autocomplete Scraper](https://apify.com/searchapi/brave-autocomplete-scraper)
- [Brave Discussions Scraper](https://apify.com/searchapi/brave-discussions-scraper)

# Actor input Schema

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

The image search query.

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

Maximum number of images to scrape.

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

Brave country code (e.g. 'us', 'gb', 'in').

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

Brave language code (e.g. 'en', 'de', 'fr').

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

Safe search filter. Options: "off", "moderate", or "strict".

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

Filter by image size. Options: "Small", "Medium", "Large", "Wallpaper".

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

Filter by image color. Options: "color", "gray", "transparent", or specific colors.

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

Filter by image type. Options: "photo", "clipart", "linedrawing", "animated".

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

Filter by image layout. Options: "square", "tall", "wide".

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

Filter by image license type. Options: "all", "free", "share", "modify".

## `maxScrolls` (type: `integer`):

Maximum page-bottom scrolls used to load additional image cards.

## `navigationTimeoutSecs` (type: `integer`):

Maximum seconds to wait for the search page navigation.

## `maxRequestRetries` (type: `integer`):

Retries temporary rate limits and server errors with progressive backoff.

## `headless` (type: `boolean`):

Disable only for local visual debugging.

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxies recommended.

## Actor input object example

```json
{
  "query": "nature photography",
  "maxItems": 100,
  "country": "us",
  "language": "en",
  "safeSearch": "moderate",
  "size": "",
  "color": "",
  "type": "",
  "layout": "",
  "license": "",
  "maxScrolls": 20,
  "navigationTimeoutSecs": 60,
  "maxRequestRetries": 3,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Image search results from Brave Images, conformant to the canonical images-vertical schema (\_canonical/schemas/images.schema.json).

# 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": "nature photography",
    "maxItems": 100,
    "country": "us",
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/brave-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": "nature photography",
    "maxItems": 100,
    "country": "us",
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "nature photography",
  "maxItems": 100,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call searchapi/brave-images-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=searchapi/brave-images-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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