# Bulk Image Downloader - URLs, Pages, Datasets to Files (`rel8ble/bulk-image-downloader`) Actor

Bulk image downloader: image URLs, web pages or an Apify dataset in; image files saved to a key-value store out, with public file URL, width, height, format, bytes and SHA-256. Resize, JPEG / PNG / WebP / AVIF, size filters, dedupe. $0.50 per 1,000 images.

- **URL**: https://apify.com/rel8ble/bulk-image-downloader.md
- **Developed by:** [Giovanni Rich](https://apify.com/rel8ble) (community)
- **Categories:** Developer tools, E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 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/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

## Bulk Image Downloader - Image URLs, Web Pages & Datasets to Files

**Bulk image downloader**, **image scraper** and **image converter** in one actor: paste image URLs (one or 100,000), web page URLs, or the ID of a dataset from any other Apify scraper, and every image is saved as a **file** in an Apify key-value store. Each image also gets one dataset row with a **ready-to-share file link**, **width**, **height**, **format**, **file size**, **SHA-256**, the page it came from and its **alt text**, as JSON, CSV or Excel.

Optional on the way: **resize** (max width / height), **convert to JPEG, PNG, WebP or AVIF**, skip **small images** (icons, tracking pixels), keep **only some file types**, and **remove duplicates** by content. It runs over plain HTTP with no headless browser, so it is fast and cheap: **1,000 images from 50 pages in 4.5 seconds** in a local test on 1 Dec 2026, and **$0.50 per 1,000 saved images, no start fee**. Failed, filtered and duplicate images are free.

### What you get

- **The files**: saved in the run's key-value store, or in a **named store** you pick (kept across runs). Keys are stable: a hash of the URL by default, or the original file name, the content hash, or a sequence number, with an optional prefix.
- **A link for every file** (`fileUrl`): a signed Apify link that opens the image without an API token, ready for a spreadsheet, a CMS import, a product feed or an AI pipeline.
- **Image facts**: format detected from the bytes (not the URL), width, height, file size, animated / transparent flags, SHA-256, plus the original format, size and dimensions when you convert.
- **Where it came from**: source URL, final URL after redirects, the page URL and title, the image's alt text, and where on the page it was found (`img`, `meta` og:image, `json-ld`, `picture`, `link`, `background`).
- **Three inputs in one**: direct image URLs; web pages (every `<img>` with lazy-load attributes and the largest `srcset` candidate, `<picture>` sources, og:image / twitter:image, JSON-LD `image` / `logo`, links to image files, inline background images); or an **Apify dataset** (field paths like `images` or `details[0].images`, or auto-detection).
- **Status on every URL**: `saved`, `failed` (with the HTTP code), `not_image`, `too_large`, plus optional free rows for `duplicate`, `skipped_small`, `skipped_type` and `already_downloaded`. Only `saved` rows are charged.

### Sample output

Real rows from the default input in the Apify cloud on 1 Dec 2026 (3 Wikimedia Commons images, 512 MB, 3.2 s):

| format | width | height | sizeBytes | fileKey | url |
|---|---|---|---|---|---|
| jpeg | 500 | 333 | 22,803 | a210b3bb607a54f5.jpg | .../500px-Camponotus_flavomarginatus_ant.jpg |
| png | 500 | 375 | 120,581 | aaa6a61e05d96ae7.png | .../500px-PNG_transparency_demonstration_1.png |
| jpeg | 500 | 225 | 39,881 | 90934bfa02aad642.jpg | .../500px-Fronalpstock_big.jpg |

Local test runs (home connection, 1 Dec 2026):

| Input | Result | Time |
|---|---|---|
| 50 catalogue pages of books.toscrape.com, original files | 1,000 / 1,000 covers saved, 9.2 MB, 0 failed | 4.5 s |
| 20 catalogue pages + 2 Wikipedia articles + 1 docs site, WebP, max width 400, min width 50 | 493 images saved (24.9 MB in, 3.8 MB out), 7 small icons skipped free | 6.6 s |
| A 3-item product dataset, `datasetFields: ["images", "details[0].images"]`, JPEG, max width 200 | 3 images, keys like `shop-2026-500px-Fronalpstock_big-90934bfa.jpg` | 0.2 s |

One row (shortened):

```json
{
  "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/500px-Camponotus_flavomarginatus_ant.jpg",
  "status": "saved",
  "fileKey": "a210b3bb607a54f5.jpg",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/a210b3bb607a54f5.jpg?signature=...",
  "contentType": "image/jpeg",
  "format": "jpeg",
  "width": 500,
  "height": 333,
  "sizeBytes": 22803,
  "originalFormat": "jpeg",
  "converted": false,
  "animated": false,
  "hasAlpha": false,
  "sha256": "d625c2f1a8d22ac846db94a2d368d6e67dd5cfc469d9385ce41cd59d4ae695d1",
  "pageUrl": null,
  "altText": null,
  "foundIn": "input",
  "httpStatus": 200,
  "downloadMs": 115
}
```

### How to use

1. Paste **Image URLs**, or **Web pages** to take images from, or the **dataset ID** of another scraper's run (Storage tab of that run). An empty input runs a 3-image demo.
2. Optional: pick **Save as** (WebP / AVIF / JPEG / PNG) and a **max width / height**, set **min width** to drop icons, and give a **key-value store name** to keep the files.
3. Run. Files are in the **Image files** output tab (the key-value store), rows with links in the **Images** tab; download the rows as CSV / Excel / JSON or read them through the API. `RUN_SUMMARY` lists every page and counter.

Product photos from a scraper's dataset, as WebP, max 1,200 px, kept in a named store:

```json
{
  "datasetId": "YOUR_DATASET_ID",
  "datasetFields": ["images", "variants.*.image"],
  "outputFormat": "webp",
  "maxWidth": 1200,
  "minWidth": 200,
  "keyValueStoreName": "product-photos",
  "fileNaming": "original"
}
```

All images on a list of pages, only JPEG / PNG, at least 300 px wide:

```json
{
  "pageUrls": ["https://books.toscrape.com/catalogue/page-1.html", "https://books.toscrape.com/catalogue/page-2.html"],
  "allowedTypes": ["jpeg", "png"],
  "minWidth": 300,
  "maxImagesPerPage": 200
}
```

### Pricing

Pay per result: **$0.0005 per saved image = $0.50 per 1,000 images**, conversion and resizing included. No start fee, no monthly fee. Free: failed downloads, web pages that are not images, files over the size limit, images skipped by your filters, duplicates and URLs already in your named store. Set **Max images saved** or the run's maximum cost to cap spend.

### Price compared (Apify Store, checked 30 Nov / 1 Dec 2026)

| Actor | Users (total / 30 d) | Price per 1,000 images | Start fee |
|---|---|---|---|
| **This actor** | new | **$0.50** (resize + convert included) | none |
| lukaskrivka/images-download-upload | 2,613 / 448 | free actor, you pay the platform compute | - |
| onescales/bulk-image-downloader | 2,174 / 92 | $70.00 ($0.07 per URL) | $0.00005 |
| hipersoft/bulk-image-downloader | 162 / 52 | $56.00 ($0.056 per URL) | $0.00005 |
| getascraper/bulk-image-downloader | 125 / 29 | $0.89 | $0.00005 |
| cybermax/bulk-image-downloader | 67 / 28 | $0.80 + $0.10 per 1,000 MB | none |

Prices are the Store's list prices on those dates; rivals may change them. With pay-per-result the compute is on us, so the $0.50 is the whole bill; with the free lukaskrivka actor you pay the compute and get S3 upload, custom JavaScript transforms and a dataset re-export, which this actor does not do. Rival speed was not measured; ours is the local figure above (the image host's speed usually dominates).

### Use cases

- **E-commerce**: download product photos from any product scraper's dataset, shrink them to WebP and import them into Shopify, WooCommerce or a marketplace feed.
- **AI and ML datasets**: collect images with alt text and page context for training, captioning or RAG; SHA-256 removes duplicates.
- **Archiving and backups**: save every image of a site's pages or a CMS export before a migration, with stable keys.
- **Scheduled monitoring**: run on a schedule against the same pages with a named key-value store; only new image URLs are downloaded and charged, the rest are skipped free.
- **Real estate, cars, classifieds**: keep listing photos from a scraper run before the listings disappear.
- **SEO audits**: list every image on a set of pages with dimensions, file size, format and missing alt text.

### Integrations

Works with the Apify API, Zapier, Make, n8n, Google Sheets, Slack, webhooks and the Apify MCP server, so AI agents can call it as a tool: input is image URLs, page URLs or a dataset ID; output is one JSON row per image with a file link; cost is $0.0005 per saved image. Chain it after any scraper with a webhook that passes the run's `defaultDatasetId`.

### FAQ

**Where are the files?** In the run's default key-value store (Output tab "Image files"), or in the named store you set. Default run storage is deleted after your plan's data retention period; a named store stays until you delete it.

**Can I open the file links without logging in?** Yes, `fileUrl` is a signed Apify link that works without an API token. Anyone with the link can open that one file.

**Does it render JavaScript?** No. Pages are read over plain HTTP, so images that a page adds later with JavaScript (infinite scroll, client-side galleries) are not found. Lazy-load attributes (`data-src`, `data-srcset`, `data-lazy-src` ...), `srcset`, og:image and JSON-LD are read. For JS-heavy sites, run a browser scraper first and pass its dataset here.

**A site answers 403.** The page URL is sent as Referer automatically for page images. If a host still blocks, turn on the Apify proxy and lower **Parallel downloads**. The row shows the HTTP code and costs nothing.

**Which formats can it read and write?** It reads JPEG, PNG, GIF, WebP, AVIF, HEIF, TIFF, BMP, SVG and ICO (detected from the bytes). It writes the original bytes, or converts to JPEG, PNG, WebP or AVIF; animated GIF / WebP stay animated when saved as WebP. ICO files are stored as they are.

**How big can images be?** Up to 200 MB each (`maxFileSizeMb`, default 25). For many large conversions give the run 1-2 GB of memory.

**Is it allowed?** It downloads exactly the URLs and pages you give it. Make sure you have the right to copy those images and follow each site's terms.

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

# Actor input Schema

## `imageUrls` (type: `array`):

Direct links to image files, one per line (up to 100,000). Duplicates are removed. Google Drive and Dropbox share links are turned into direct downloads. A link that returns a web page is reported as not_image and not charged.

## `pageUrls` (type: `array`):

Web page URLs. Every image on the page is downloaded: <img> src / lazy-load attributes / largest srcset candidate, <picture> sources, og:image and twitter:image, JSON-LD image / logo, links to image files and inline background images. The page URL is sent as Referer (gets past most hotlink protection). Pages are fetched over plain HTTP: images added later by JavaScript are not seen.

## `maxImagesPerPage` (type: `integer`):

Cap per web page (in page order: meta images first, then <img> tags).

## `includeIcons` (type: `boolean`):

Also download <link rel="icon"> and apple-touch-icon images from pages.

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

ID or name of an Apify dataset, e.g. the output of a product, real-estate or social scraper. Image URLs are read from the fields below, or auto-detected (any URL that looks like an image or sits in a field named image / photo / thumbnail / logo / cover).

## `datasetFields` (type: `array`):

Paths to the image fields, JavaScript style: "image", "images", "details\[0].images", "media.\*.url". A field may hold a string, an array of strings or objects with url / src. Empty = auto-detect.

## `datasetLimit` (type: `integer`):

Read at most this many items from the dataset. 0 = all.

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

original keeps the downloaded bytes unchanged (fastest). The others convert every image (EXIF orientation applied, metadata stripped; transparency becomes white for JPEG; animated GIF / WebP stay animated when saved as WebP).

## `maxWidth` (type: `integer`):

Shrink images wider than this, keeping the aspect ratio (never enlarges). 0 = no limit.

## `maxHeight` (type: `integer`):

Shrink images taller than this, keeping the aspect ratio. 0 = no limit.

## `quality` (type: `integer`):

Encoder quality when converting or resizing.

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

Skip images narrower than this (icons, tracking pixels, thumbnails). Skipped images are free.

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

Skip images shorter than this. Free.

## `minFileSizeKb` (type: `integer`):

Skip files smaller than this. Free.

## `maxFileSizeMb` (type: `integer`):

Files above this are not downloaded (status too_large, free).

## `allowedTypes` (type: `array`):

Keep only these source types, e.g. jpeg, png, webp. Detected from the file bytes, not the URL. Empty = all (jpeg, png, gif, webp, avif, heif, bmp, tiff, ico, svg).

## `dedupeByContent` (type: `boolean`):

Identical files (same SHA-256) found under different URLs are stored and charged once; the extra URLs are skipped free.

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

How the key-value store keys are built. The extension follows the saved format.

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

Optional prefix for every file key, e.g. "catalog-2026".

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

Save into this named key-value store (kept until you delete it, shared across runs) instead of the run's default store (deleted after the data retention period). With a named store, URLs downloaded in earlier runs are skipped free, so scheduled runs fetch only new images.

## `skipAlreadyDownloaded` (type: `boolean`):

Only with a key-value store name: keeps a DOWNLOADED_URLS record and skips URLs saved before (free).

## `includeFailedRows` (type: `boolean`):

Add a free row for every URL that failed (HTTP error, not an image, too large).

## `includeSkippedRows` (type: `boolean`):

Add a free row for images skipped as duplicates, too small, wrong type or already downloaded.

## `maxResults` (type: `integer`):

Stop after this many saved images. 0 = no limit.

## `maxConcurrency` (type: `integer`):

Lower it for a single small site; raise it for many hosts.

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

Retries on timeouts, 429 and 5xx.

## `requestTimeoutSecs` (type: `integer`):

Per download.

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

Off by default (image CDNs rarely block). Turn on the Apify proxy for sites that answer 403 / 429.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/500px-Camponotus_flavomarginatus_ant.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/500px-PNG_transparency_demonstration_1.png"
  ],
  "maxImagesPerPage": 100,
  "includeIcons": false,
  "datasetLimit": 0,
  "outputFormat": "original",
  "maxWidth": 0,
  "maxHeight": 0,
  "quality": 82,
  "minWidth": 0,
  "minHeight": 0,
  "minFileSizeKb": 0,
  "maxFileSizeMb": 25,
  "dedupeByContent": true,
  "fileNaming": "hash",
  "skipAlreadyDownloaded": true,
  "includeFailedRows": true,
  "includeSkippedRows": false,
  "maxResults": 0,
  "maxConcurrency": 10,
  "maxRequestRetries": 2,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

No description

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

No description

# 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 = {
    "imageUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/500px-Camponotus_flavomarginatus_ant.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/500px-PNG_transparency_demonstration_1.png"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rel8ble/bulk-image-downloader").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 = { "imageUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/500px-Camponotus_flavomarginatus_ant.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/500px-PNG_transparency_demonstration_1.png",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rel8ble/bulk-image-downloader").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 '{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/500px-Camponotus_flavomarginatus_ant.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/500px-PNG_transparency_demonstration_1.png"
  ]
}' |
apify call rel8ble/bulk-image-downloader --silent --output-dataset

```

## MCP server setup

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

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/Ip9uwEeoivb6ooWzO/builds/7fD1bgczj4Ms29cin/openapi.json
