# Bulk Image Downloader (`johto.data/bulk-image-downloader`) Actor

Download images from a list of URLs and save them as files or a ZIP archive, with file type and size per image.

- **URL**: https://apify.com/johto.data/bulk-image-downloader.md
- **Developed by:** [Johto Data](https://apify.com/johto.data) (community)
- **Categories:** Automation, 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 $1.40 / 1,000 image downloadeds

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

## Bulk Image Downloader

Paste a list of image URLs and get every image saved as a file, plus a table with the file link, real image type, width, height, size and SHA-256 for each one. Turn on **ZIP** to get one `images.zip` with everything.

Built for big batches: each image streams straight to disk and then to storage, so memory stays flat whether you download 10 images or 100,000. No "out of memory" crashes, no run that dies before it saves anything.

**Price: $0.002 per image downloaded on the Free plan. Failed, skipped and non-image URLs are free.** Paid Apify plans pay less: Starter 10% off, Scale 20% off, Business 30% off.

### What you get per image

| Field | Example |
|---|---|
| `inputUrl` | The URL you gave |
| `finalUrl` | Where it ended up after redirects |
| `recordUrl` | Direct link to the saved file |
| `key` | File name in the key-value store, for example `0001-photo.jpg` |
| `imageType`, `width`, `height` | `jpeg`, `1920`, `1080`, read from the file itself |
| `bytes`, `sha256` | Size and hash, handy for de-duplication |
| `error`, `charged` | Why a URL failed, and whether it was billed |

Supported formats: JPEG, PNG, GIF, WebP, AVIF, HEIC, BMP, TIFF, ICO and SVG. The file extension always matches the real format, even if the URL says otherwise.

### How to use it

1. Paste image URLs, one per line.
2. Tick **I have the right to download these images**.
3. Optional: turn on **Also create one ZIP file**.
4. Start. Download files from the **Saved files** tab or grab `images.zip`.

### Why it does not crash

- Files are written to disk in chunks, never held in memory as a batch.
- Parallel downloads are capped (10 by default, 20 max).
- Each image has a size cap and a timeout, so one huge or stuck URL can't take the run down.
- Every image is saved the moment it finishes, so a stopped run keeps what it already downloaded.
- Very large ZIPs are split into parts (`images-part-001.zip`, `images-part-002.zip` ...) sized to the run's disk, so the ZIP can't fill the disk either.
- Rate limits (HTTP 429 and 503) are retried up to 3 times, honoring the site's Retry-After header.

### What is free

You are only charged when an image is downloaded and saved. These are listed with `charged: false` and cost nothing: HTTP errors (404, 403, 500), timeouts, empty files, HTML pages or other non-images, files over your size cap, URLs blocked by robots.txt, and invalid URLs.

### Pricing examples (Free plan)

| Images | Cost |
|---|---|
| 1,000 | $2 |
| 10,000 | $20 |

### Rules this tool follows

- You confirm you have the right to download the images.
- robots.txt is always respected. The tool never logs in and never bypasses hotlink protection, paywalls or bot checks.
- Sites whose terms forbid automated downloads (for example Amazon, Instagram, Facebook, LinkedIn, TikTok, YouTube, X and Google) are refused.
- Private and local network addresses are refused.

### FAQ

**Can it find images on a web page for me?** This version downloads direct image URLs. Feed it the image links you already have.

**Does it use proxies?** No. It downloads directly, which works for most CDNs and your own servers.

**Can I call it from code or Zapier?** Yes, through the Apify API, the JavaScript and Python clients, Make, Zapier or n8n.

### Related Actors

- [Website to Markdown](https://apify.com/johto.data/url-to-markdown)
- [SEO Audit Crawler](https://apify.com/johto.data/seo-audit-crawler)

# Actor input Schema

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

Direct links to image files, one per line. Up to 100,000 per run. Duplicates are removed.

## `confirmPermission` (type: `boolean`):

Required. Only download images you own, have licensed or are otherwise allowed to download. robots.txt is always respected. Must be sent as true in API calls.

## `createZip` (type: `boolean`):

Pack all downloaded images into images.zip in the key-value store. Built on disk, so large batches do not run out of memory.

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

How saved files are named. The extension always matches the real image type.

## `maxImageSizeMb` (type: `integer`):

Bigger files are skipped for free.

## `minImageSizeBytes` (type: `integer`):

Skip tiny files such as tracking pixels. Skipped files are free.

## `allowSvg` (type: `boolean`):

Turn off to skip SVG vector images.

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

How many images download at once. Memory use stays flat because files stream to disk.

## `timeoutSecs` (type: `integer`):

Slow downloads past this are stopped and not charged.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
  ],
  "confirmPermission": true,
  "createZip": false,
  "fileNames": "original",
  "maxImageSizeMb": 25,
  "minImageSizeBytes": 0,
  "allowSvg": true,
  "maxConcurrency": 10,
  "timeoutSecs": 60
}
```

# Actor output Schema

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

No description

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

No description

## `zip` (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/4/47/PNG_transparency_demonstration_1.png"
    ],
    "confirmPermission": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("johto.data/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/4/47/PNG_transparency_demonstration_1.png"],
    "confirmPermission": True,
}

# Run the Actor and wait for it to finish
run = client.actor("johto.data/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/4/47/PNG_transparency_demonstration_1.png"
  ],
  "confirmPermission": true
}' |
apify call johto.data/bulk-image-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,johto.data/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/1bMZ7wfDLeOWvwM75/builds/eSaCKMJkebcHT904s/openapi.json
