# Bulk Image Downloader: Download Images from a URL List to ZIP (`atesen-software/bulk-image-downloader`) Actor

Download images in bulk from a list of URLs or web pages. Every file is saved to storage with a numbered name, with an optional ZIP, duplicate removal, resizing and conversion to JPG, PNG or WebP. One result row per image.

- **URL**: https://apify.com/atesen-software/bulk-image-downloader.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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: Download Images from a URL List to ZIP

Got a spreadsheet, product feed or CMS export full of image URLs and no good way to download them all? This Actor downloads images in bulk from a list of image URLs (or from the images on web pages), saves each one as a file with a clean numbered name, removes duplicates and can pack everything into a ZIP.

Resize and convert on the way to JPG, PNG or WebP. Every image gets one result row with its size, type, hash and a download link.

### Who uses it

- **E-commerce and marketplace teams** download product photos from a feed or CSV, shrink them to a width limit and convert them to WebP or JPG for a store or a listing.
- **Data and research teams** clean an image set before labeling or training: exact duplicates and the same picture saved at another size or compression are dropped.
- **Agencies and site owners** archive the images of a list of pages (gallery images, `og:image` share images) as ZIP files for a hand-over or a migration.

### Quick start

1. Open the **Input** tab and paste image URLs into **Image URLs**, one per line. The prefilled input has three sample images.
2. Click **Start**. Each image is saved as a file in the run's key-value store, and the dataset gets one row per image. The **Images** view in the Output tab shows a preview of every file.
3. Turn on **Also create a ZIP archive** to get `images-part-001.zip` in the key-value store as well.

### Input

| Field | What it does |
| --- | --- |
| `imageUrls` | Direct links to image files, one per line. Up to 10,000 per run. Only public links that open without a login work. |
| `pageUrls` | Optional. Public web pages to scan for images. Up to 200 per run. |
| `maxImagesPerPage` | Images taken from each page, in page order. Default 50, maximum 500. |
| `outputFormat` | `original` (default), `jpeg`, `png` or `webp`. |
| `maxWidth` / `maxHeight` | Shrink larger images, aspect ratio kept. `0` = no limit. Images are never enlarged. |
| `quality` | JPG and WebP quality, 1 to 100. Default 85. |
| `dedupe` | `exact` (default, SHA-256), `perceptual` (also near-duplicates) or `none`. |
| `perceptualThreshold` | Perceptual mode only: how many of the 64 hash bits may differ, 0 to 20. Default 5. |
| `fileNameTemplate` | Default `{index}-{name}`. Placeholders: `{index}`, `{name}`, `{hash}`, `{host}`. The extension is added for you. |
| `createZip` / `zipPartMaxMb` | Also pack the saved images into ZIP parts of at most this size (default 250 MB). |
| `maxImages`, `maxImageSizeMb`, `maxTotalSizeMb` | Run limits: images per run (default 1,000), size per image (default 25 MB), total size (default 2,000 MB). |
| `downloadTimeoutSecs` / `maxConcurrency` | Timeout per download (default 60 s) and parallel downloads (default 4, maximum 10). |

### Example input and output

A real run: three direct image URLs, original format, exact duplicate check. All other fields stayed at their defaults.

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://upload.wikimedia.org/wikipedia/commons/8/8f/Example.gif"
  ],
  "outputFormat": "original",
  "dedupe": "exact",
  "fileNameTemplate": "{index}-{name}",
  "createZip": false
}
```

First dataset row of that run (store ID and signature in `fileUrl` replaced by placeholders):

```json
{
  "index": 1,
  "sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
  "pageUrl": null,
  "finalUrl": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
  "status": "downloaded",
  "error": null,
  "contentType": "image/jpeg",
  "originalContentType": "image/jpeg",
  "width": 172,
  "height": 178,
  "bytes": 9022,
  "originalBytes": 9022,
  "sha256": "99bd915a3819b1fee3722328ae904dde5459e9b15d56abd98b903c770a2f582c",
  "phash": null,
  "fileKey": "00001-Example.jpg",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/00001-Example.jpg?signature=<signature>",
  "zipPart": null,
  "duplicateOf": null
}
```

To resize to 1,200 px wide, convert to WebP, drop near-duplicates and get a ZIP, change these fields:

```json
{
  "outputFormat": "webp",
  "maxWidth": 1200,
  "quality": 80,
  "dedupe": "perceptual",
  "createZip": true
}
```

The run's key-value store also holds `SUMMARY` (counts, total size, ZIP part links and why the run stopped) and the ZIP parts.

### What it does and what it does not

- Downloads JPG, PNG, WebP, GIF, AVIF, TIFF, BMP and HEIF. The real type is detected from the file bytes, not from the URL.
- Page mode (optional) reads `<img>` `src` and `srcset` (largest size), lazy-load `data-src`, `<picture>` sources, `og:image`, `twitter:image` and `<link rel="image_src">`. The Actor checks robots.txt before it opens a listed page and its redirect destinations.
- Resizes (EXIF rotation applied) and converts to JPG, PNG or WebP. An animated GIF stays animated when converted to WebP.
- Finds duplicates. `exact` skips byte-identical files. `perceptual` also skips the same picture at another size or compression level. Each duplicate row points to the first copy in `duplicateOf` and is not charged.
- Packs images into `images-part-001.zip`, `images-part-002.zip` and so on. Parts are written to disk one file at a time and uploaded when full, so large jobs do not run out of memory.
- Reports a status per URL: `downloaded`, `duplicate`, `failed` (with the reason: HTTP 403 or 404, too large, not an image, blocked address, robots.txt) or `no-images` for a page without images.
- Does not log in. Images or pages that need an account, cookies or a paid plan are not supported.
- Does not run JavaScript. Images a page only loads with scripts (infinite scroll, client-side galleries) are not found in page mode; pass their direct URLs instead.
- Does not get around bot protection and has no proxy setting. Sites that answer 403 or 429 to automated downloads give a `failed` row, and `maxConcurrency` can be lowered for a site that answers 429.
- Does not crawl whole sites. Page mode reads only the pages you list.
- Does not support SVG. An SVG gives an uncharged `failed` row; supply a raster image instead.

### Limits and safety

- Up to 10,000 image URLs and 200 page URLs per run, a size limit per image (default 25 MB, maximum 100 MB), a download timeout, a total size limit per run and a 50 megapixel decoding limit (larger images are refused, not half-processed).
- Only public `http` and `https` addresses are fetched. Private, loopback, link-local and cloud-metadata addresses are blocked, including host names that resolve to them and redirects that lead to them.
- The `fileUrl` links are unguessable, but anyone who has one can open the file. Keep them private if the images are.
- You are responsible for having the right to download and use the images you request (copyright, licenses, site terms). The Actor only fetches the URLs you give it.

### Run it from the API, n8n, Make or Zapier

**API.** One request starts the Actor, waits for it and returns one row per image as JSON, each with a `fileUrl`. Put the token in the `Authorization` header, never in a URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~bulk-image-downloader/run-sync-get-dataset-items?timeout=120" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg"], "outputFormat": "webp", "maxWidth": 1200 }'
```

The synchronous endpoint waits at most 300 seconds. For larger jobs start the run with `POST https://api.apify.com/v2/acts/atesen-software~bulk-image-downloader/runs`, wait for it (or use a webhook) and read the rows from `https://api.apify.com/v2/datasets/<datasetId>/items`. The run object has `defaultKeyValueStoreId`; with `createZip` on, download the archive from `https://api.apify.com/v2/key-value-stores/<defaultKeyValueStoreId>/records/images-part-001.zip` with the same `Authorization` header.

**n8n.** Use the Apify node (*Run Actor and Get Dataset*), or an **HTTP Request** node with method `POST`, the URL above, a *Header Auth* credential (`Authorization`: `Bearer <your token>`) and the JSON input as body. [Apify n8n integration](https://docs.apify.com/integrations/n8n)

**Make.** Use the Apify modules *Run an Actor* and *Get Dataset Items*, or the **HTTP, Make a request** module with the same URL, header and body. [Apify Make integration](https://docs.apify.com/integrations/make)

**Zapier.** Use the Apify app to run this Actor or a saved task, trigger a Zap when a run finishes and fetch the dataset items. [Apify Zapier integration](https://docs.apify.com/integrations/zapier)

### FAQ

**Does it download images from Google Images, Instagram or Pinterest?** Only if you give direct public image file URLs. It does not search or log in to platforms.

**Why is an image `failed` with HTTP 403?** The site refuses automated downloads or requires a login. Nothing is charged for it.

**What counts as a duplicate?** In `exact` mode, the same downloaded bytes. In `perceptual` mode, also the same picture at a different size or compression level (threshold 0 to 20, default 5). Cropped or rotated copies are not matched.

**Can I get one ZIP file?** Yes. With `createZip` on, a job smaller than the part size (default 250 MB) is one ZIP file. Bigger jobs are split into several parts.

**How do I limit the cost?** Set **Max images per run**, or the maximum cost per run in the run options. The Actor stops cleanly when it is reached.

### Pricing

Pay per event: you are charged for an image that was saved and delivered. Failed, blocked and duplicate rows are free. Current prices are on the **Pricing** tab.

Built by Atesen Software.

# Actor input Schema

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

Direct links to raster image files (JPG, PNG, WebP, GIF, AVIF, TIFF, BMP, HEIF), one per line. Supported images are saved to the run's key-value store. SVG files are unsupported. Only public links that open without a login work. Up to 10,000 per run.

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

Public web pages to scan for images: <img> src and srcset (largest size), lazy-load data-src, <picture> sources, og:image and twitter:image. The Actor checks robots.txt for listed pages and their redirect destinations. JavaScript is not run, so images that a page adds with scripts are not found. Pages behind a login are not supported. Up to 200 pages per run.

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

How many image URLs to take from each page (in page order).

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

Keep the original raster image, or convert it to JPG, PNG or WebP.

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

Shrink images wider than this, keeping the aspect ratio. 0 = no limit. Images are never enlarged.

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

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

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

Compression quality for converted or resized JPG and WebP files, 1-100.

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

Exact: skip byte-identical files (SHA-256). Perceptual: also skip near-identical copies (same picture re-sized or re-compressed, 64-bit difference hash). Duplicates are listed in the dataset with a pointer to the first copy and are not charged.

## `perceptualThreshold` (type: `integer`):

Perceptual mode only: how many of the 64 hash bits may differ for two images to count as the same picture. 0 = nearly identical only, 5 = re-sized or re-compressed copies, 10+ = looser (more false matches).

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

Name of each saved file. Placeholders: {index} (position in the list, 00001), {name} (file name from the URL), {hash} (first 12 characters of the SHA-256), {host} (site host name). The extension is added automatically. Characters that key-value store keys do not allow are replaced with '-'.

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

Also pack all saved images into ZIP file(s) in the key-value store (images-part-001.zip, ...). Large jobs are split into parts so memory and disk stay small. The single files are saved too.

## `zipPartMaxMb` (type: `integer`):

A new ZIP part starts when the current one would grow past this size. Only the part being written sits on the run disk (twice the run memory), so keep it below that.

## `maxImages` (type: `integer`):

Upper limit on images downloaded in this run (direct URLs first, then images found on pages).

## `maxImageSizeMb` (type: `number`):

Larger files are skipped (free) without being fully downloaded.

## `maxTotalSizeMb` (type: `integer`):

The run stops cleanly when the saved images reach this total size.

## `downloadTimeoutSecs` (type: `integer`):

Each image or page download must finish within this time.

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

How many images are downloaded at the same time. Lower it if a site answers HTTP 429.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://upload.wikimedia.org/wikipedia/commons/8/8f/Example.gif"
  ],
  "maxImagesPerPage": 50,
  "outputFormat": "original",
  "maxWidth": 0,
  "maxHeight": 0,
  "quality": 85,
  "dedupe": "exact",
  "perceptualThreshold": 5,
  "fileNameTemplate": "{index}-{name}",
  "createZip": false,
  "zipPartMaxMb": 250,
  "maxImages": 1000,
  "maxImageSizeMb": 25,
  "maxTotalSizeMb": 2000,
  "downloadTimeoutSecs": 60,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

One row per image: source URL, status, size, SHA-256, file link, duplicate pointer

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

All saved image files and ZIP parts in the run's key-value store

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

Counts, total size, ZIP part links and why the run stopped

# 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/a/a9/Example.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
        "https://upload.wikimedia.org/wikipedia/commons/8/8f/Example.gif"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/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/a/a9/Example.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
        "https://upload.wikimedia.org/wikipedia/commons/8/8f/Example.gif",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/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/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://upload.wikimedia.org/wikipedia/commons/8/8f/Example.gif"
  ]
}' |
apify call atesen-software/bulk-image-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/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/bUTPArZjqQbkjMhwc/builds/zD1cGb3yA9fJiHhSg/openapi.json
