# Bulk Image Downloader from URL List – Files & ZIP (`justaduck/bulk-image-file-downloader`) Actor

Bulk download images and files from a list of URLs (or a URL field of any dataset). Every file is saved to the key-value store and packed into one ZIP; one row per URL with status, file name, type, size, SHA-256 and a download link. Filter by file type. Skipped files are free.

- **URL**: https://apify.com/justaduck/bulk-image-file-downloader.md
- **Developed by:** [Justaduck](https://apify.com/justaduck) (community)
- **Categories:** Developer tools, Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 files downloaded

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/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 from URL List – Files & ZIP

**Bulk image downloader from a URL list: paste the URLs of images or files (or point it at a dataset field) and get every file saved, one ZIP with all of them, and one result row per URL.**

**Only download files you have the right to use.** This Actor downloads exactly the URLs you give, one file per URL. It does not crawl websites, follow links on pages, log in, or get around paywalls or access controls; you are responsible for having the right to download and use each file.

- **What you get:** every file in the run's key-value store under a clean file name, `all-files.zip` with all of them, and a dataset row per URL with `status` (`downloaded`, `skipped` or `failed`), `reason`, `fileName`, `contentType`, `sizeBytes`, `sha256` and `fileUrl` (a direct download link).
- **What it costs:** US$0.002 per file downloaded + US$0.0002 per MB, plus US$0.0005 per run start. Skipped and failed URLs are free. Apify's free plan (US$5 of usage a month) covers about 2,200 images under 1 MB.
- **Try it:** Click **Start** on the prefilled form: it downloads two public-domain images from Wikimedia Commons and one IRS form, and returns 3 rows plus the ZIP (US$0.0066) in a few seconds.

Bulk download files from a list of URLs: product photos, PDFs, documents, audio or video. Give direct links (one per line), or pick the dataset of another Actor run and the field that holds the URLs (for example `imageUrl`, or a list such as `images`). Filter by file type, name files by their original name or by number, and download them all at once as one ZIP.

### What you can use it for

- Bulk download images from a URL list exported from a spreadsheet (copy the URL column into **URLs**; the Excel or CSV file itself is not read).
- Download all product images that another scraper found: pick its dataset and the image field (`images`, `imageUrls`, `images.src`…).
- Download multiple files from a URL list for an archive or a backup, with a SHA-256 checksum for every file.
- Collect public-domain or openly licensed media (for example Wikimedia Commons or government documents) into one ZIP.

### How to use the bulk image and file downloader

1. Open [this Actor on Apify Store](https://apify.com/justaduck/bulk-image-file-downloader) and try it in Apify Console. A free Apify account is enough; no credit card is needed.
2. The form is prefilled with three public-domain files. Click **Start**; the run finishes in a few seconds.
3. Replace **URLs** with your own direct file links (one per line, each starting with `https://`), or fill **Dataset with URLs** and **URL field in the dataset**. Optionally choose **File types**, **File names**, **Max file size (MB)** and **Max files**.
4. When the run finishes, the status line has the ZIP link. The **Output** tab lists every URL with its status and a download link; the **Image preview** view shows the images. Every file is also in **Storage → Key-value store**.
5. To automate it, save the input as a task and **schedule** it, call the Actor through the **Apify API**, or start it from another Actor with an **integration** (`datasetId`: `{{resource.defaultDatasetId}}`).

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | array of strings | — | Direct links to files, `https://` only. One URL = one file. Repeated URLs are downloaded once. |
| `datasetId` | string | — | Optional dataset whose items contain file URLs (ID, `username~dataset-name` or dataset URL). With limited permissions the Actor can read only this dataset. `urls`, `datasetId` or both must be given. |
| `urlField` | string | `url` | Field of each dataset item with the URL. A list of URLs is fine; nested fields use dots (`images.src`). |
| `fileTypes` | array | all types | Any of `images`, `pdf`, `documents`, `audio`, `video`, `archives`. Judged by the `Content-Type` the server sends; when it only says `application/octet-stream`, by the first bytes of the file, then by the URL extension. |
| `fileNameFrom` | string | `original` | `original`: the name from the server's `Content-Disposition` header, else the last part of the URL. `sequence`: `00001.jpg`, `00002.pdf`… in URL order. |
| `createZip` | boolean | `true` | Also pack all files into `all-files.zip`. |
| `maxFileSizeMb` | integer | `50` | Files larger than this (1–50 MB) are skipped and not charged. |
| `maxItems` | integer | no limit | Maximum number of files to download (1–50,000). Later URLs are not downloaded and not charged. |

Example input:

```json
{
    "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
        "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
    ],
    "fileTypes": ["images", "pdf"],
    "fileNameFrom": "original",
    "createZip": true,
    "maxFileSizeMb": 50
}
```

The prefilled files are in the public domain: `Example.jpg` and `Example.png` are marked "Public domain" on Wikimedia Commons, and Form W-9 is a work of the US federal government (17 U.S.C. §105).

### Output

A real row from the prefilled run on 2026-12-02 (the download link is shortened with `…`):

```json
{
    "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
    "status": "downloaded",
    "reason": null,
    "fileName": "fw9.pdf",
    "contentType": "application/pdf",
    "sizeBytes": 140815,
    "sha256": "2d420cbb4123dcf1fb82595b2359cfbb5d81f00b9df9d359fcc7af361d093f53",
    "fileUrl": "https://api.apify.com/v2/key-value-stores/…/records/fw9.pdf?signature=…",
    "sourceUrl": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
}
```

A skipped row looks like this (not charged):

```json
{
    "url": "https://www.example.com/gallery",
    "status": "skipped",
    "reason": "This URL returns a web page, not a file. Web pages are not crawled and links on them are not followed; give direct links to files.",
    "fileName": null,
    "contentType": "text/html",
    "sizeBytes": null,
    "sha256": null,
    "fileUrl": null,
    "sourceUrl": "https://www.example.com/gallery"
}
```

#### Fields

| Field | Type | Description |
|---|---|---|
| `url` | string | The URL you gave (without a `#fragment`). |
| `status` | string | `downloaded`, `skipped` (not downloaded on purpose: HTTP 4xx, web page, wrong type, too large, empty, repeated URL, not an https URL, cost limit reached) or `failed` (server errors or timeouts after 3 tries). |
| `reason` | string or null | Why the URL was skipped or failed; `null` when downloaded. |
| `fileName` | string or null | File name in the key-value store and in the ZIP. Only the characters `a-z A-Z 0-9 ! - _ . ' ( )` are kept (others become `-`, accents are removed), an extension is added from the content type when missing, and repeated names get `-2`, `-3` (compared without case). |
| `contentType` | string or null | Media type, such as `image/jpeg`. |
| `sizeBytes` | integer or null | Size of the downloaded file in bytes. |
| `sha256` | string or null | SHA-256 checksum (hex) of the file. |
| `fileUrl` | string or null | Direct download link to the file in the run's key-value store. It works without logging in (signed link). |
| `sourceUrl` | string | Same as `url`: where the file came from. |

#### Key-value store and ZIP

- Every downloaded file is a record named `fileName`, with its original content type.
- `all-files.zip` holds all downloaded files (stored as they are, not recompressed). It can be as large as the run memory: 256 MB with the default 256 MB memory, up to 1 GB when you give the run 1 GB or more. Files that do not fit stay in the key-value store and the status line says so.
- `SUMMARY` lists every URL with its status, the totals (`downloads`) and the ZIP link (`zip`).

### Pricing

Pay per event: **US$0.002 per file downloaded + US$0.0002 per MB downloaded** (every started MB of 1,048,576 bytes counts, so a 300 KB image is 1 MB) **+ US$0.0005 per run start**.

| Run | Files | Cost |
|---|---|---|
| Prefilled example (3 small files) | 3 | US$0.0066 + US$0.0005 |
| 1,000 product images of about 300 KB | 1,000 | US$2.20 |
| 100 PDFs of about 4 MB | 100 | US$0.28 |
| 20 videos of about 45 MB | 20 | US$0.22 |

Discounts by Apify plan (per file): Free $0.002, Bronze $0.0018, Silver $0.0016, Gold $0.0014; the per-MB price is US$0.0002 on every plan.

**Free plan:** Apify's free plan includes US$5 of prepaid usage every month (no credit card needed), enough for about 2,200 images under 1 MB, or about 1,600 photos of 5 MB, a month with this Actor.

**You are not charged for URLs that give no file:** HTTP 4xx, web pages, files of a type you did not select, files over the size limit, empty files, repeated URLs, invalid URLs and server errors are free. Each has a dataset row with the reason. Use **Max files** or Apify's "maximum cost per run" to cap a run: the Actor checks the limit before saving each file.

### Limits and behaviour

- **One URL = one file, no crawling.** A URL must return the file itself. A web page (HTML) is skipped and the links on it are not followed. Redirects to another `https://` address with a domain name are followed; redirects to an IP address or a non-https address are not.
- **Allowed URLs:** `https://` with a public domain name. URLs with an IP address, `localhost`, a name without a dot, a user name or password, or an `@` are not downloaded. `http://` URLs and IP addresses get a skipped row; URLs with a password and text that is not a URL are listed in `SUMMARY` only.
- **Size:** files up to 50 MB (lower it with **Max file size**).
- **Speed:** files are downloaded one after another, at most 2 requests per second per website. Measured on Apify on 2026-12-02: 3 files (149 KB) in about 3 seconds; 2 photos of 4.8 and 6.5 MB in about 4 seconds. A run lasts at most about 55 minutes; URLs not reached are listed as `not-run` in `SUMMARY`.
- **Errors:** server errors (HTTP 5xx), timeouts and HTTP 429 are retried up to 3 times; a website that keeps failing is skipped for the rest of the run while other websites continue. A server must start answering within 15 seconds, and a file must finish downloading within 60 seconds (50 MB needs about 0.9 MB/s).
- **Slow or failing servers (cost protection):** failed and skipped URLs are free for you, so the Actor only keeps trying slow or failing servers while the run start fee and the files it has already downloaded pay for the time. If no file can be downloaded in the first seconds of a run, or the remaining servers are too slow, the run stops early, says why in the status line and the log, and the URLs not tried get a `skipped` row with that reason (they are also listed in `SUMMARY`). Every URL gets one row; only in a run where no file at all is downloaded and more than about 20 URLs are skipped or failed, the rows after that are listed in `SUMMARY` only. Split very slow servers into their own run.
- **Dataset input:** up to 50,000 URLs per run. Values that are not URLs are counted in `SUMMARY`.
- **Storage:** the files live in the run's own storage in your Apify account, kept for your plan's data retention period. Download the ZIP or the files before then.
- **Memory:** 256 MB by default (measured on Apify on 2026-12-02: 3 photos of 47, 19 and 15 MB peaked at 154 MB). Raise it to 1 GB in the run options if you want a ZIP larger than 256 MB.

### Use with AI agents (MCP)

AI agents can run this Actor through the [Apify MCP server](https://docs.apify.com/mcp) (Model Context Protocol). There are two ways to connect:

- **Load this Actor as its own tool:** add `https://mcp.apify.com?tools=justaduck/bulk-image-file-downloader` to your MCP client. The server exposes it as the tool `justaduck--bulk-image-file-downloader`.
- **Let the agent find it:** connect to `https://mcp.apify.com` (default tools). The agent can find this Actor with `search-actors`, read its input schema with `fetch-actor-details` and start it with `call-actor`.

On first connection you sign in to Apify with OAuth (or send your Apify API token as a Bearer header). The agent passes the same fields as in the Input section. A run returns its dataset ID, and the agent reads the rows with `get-dataset-items`. Runs started this way run on your Apify account and are charged as in the Pricing section; `call-actor` also accepts `maxTotalChargeUsd` in `callOptions` to cap what one run can spend.

### FAQ

**How do I bulk download images from a URL list?**
Paste the image URLs into **URLs**, one per line, and click **Start**. Each image is saved to the key-value store, and the status line links to `all-files.zip` with all of them.

**Can I bulk download images from a URL list in Excel?**
Yes: copy the column of URLs from Excel or Google Sheets and paste it into **URLs** (one per line). The Actor does not open the spreadsheet itself.

**How do I download all files from a list of URLs another scraper found?**
Pick that run's dataset in **Dataset with URLs** and type the field with the URLs in **URL field in the dataset**, for example `imageUrl` or `images`. In an integration use `{{resource.defaultDatasetId}}`.

**Why was a URL skipped?**
The `reason` field says why, for example `Download failed with HTTP 404` or `This URL returns a web page, not a file`. Skipped URLs are not charged.

**Can it download files that need a login, or from behind a paywall?**
No. It downloads only what a plain request to the URL returns, without cookies or logins. A login page or paywall page is a web page, so it is skipped.

**Is it legal to download these files?**
Only download files you have the right to use, for example your own files, public-domain works or files whose license allows it. You are responsible for the files you download and how you use them.

**Is this related to the websites I download from?**
No. This Actor is not affiliated with or endorsed by Wikimedia, the IRS or any website you download from.

### What this Actor does not do

- No crawling, no link following, no search: only the URLs you list (or the URLs in the dataset field you pick).
- No logins, cookies, proxies, CAPTCHA solving or paywall workarounds.
- No changes to the files: each file is saved exactly as downloaded, and the SHA-256 lets you check it.

### Related Actors

Actors by the same author:

- **[PDF to Text Extractor – Page Text & Metadata](https://apify.com/justaduck/pdf-to-text-extractor)**: get the text of every page of a list of PDF URLs.
- **[Merge & Dedup Datasets – Keep Only New Items](https://apify.com/justaduck/dedup-datasets-new-items)**: merge the datasets of several runs and remove duplicate URLs before downloading.

# Actor input Schema

## `urls` (type: `array`):

Direct links to the files, one per line, starting with https://. Each URL is downloaded once (one URL = one file); links on web pages are not followed and nothing is crawled. A web page instead of a file is skipped. Only download files you own or have permission to use.

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

Optional: a dataset from another Actor run whose items contain file URLs, for example image URLs from a product or social media scraper. Pick it from your account or give its ID (in an integration: {{resource.defaultDatasetId}}). With limited permissions this Actor can read only this dataset. Can be used together with URLs.

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

The field of each dataset item that holds the URL, for example url, imageUrl or images (a list of URLs is fine). Nested fields use dots, for example images.src.

## `fileTypes` (type: `array`):

Download only these types, judged by the Content-Type the server sends (or the file header when the server does not say). Leave empty to download every type. Other files are skipped and not charged.

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

Original: the file name the server sends, or the last part of the URL. Numbered: 00001, 00002… in the order of the URLs. Characters that are not allowed are replaced with -, and duplicate names get -2, -3.

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

Pack every downloaded file into all-files.zip in the key-value store (the ZIP can be as large as the run memory: 256 MB by default, 1 GB at most; files that do not fit stay in the key-value store only). The link is in the run status and the SUMMARY record.

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

Files larger than this are skipped and not charged. 50 MB at most.

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

Maximum number of files to download. Leave empty for no limit. URLs after the limit are not downloaded and not charged.

## Actor input object example

```json
{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
  ],
  "urlField": "url",
  "fileNameFrom": "original",
  "createZip": true,
  "maxFileSizeMb": 50
}
```

# Actor output Schema

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

One dataset row per URL: status (downloaded, skipped or failed) with the reason, file name, type, size, SHA-256 and a download link.

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

all-files.zip in the run's key-value store (only when Also create one ZIP is on and at least one file was downloaded).

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

SUMMARY record: the status of every URL, download totals and the ZIP link.

# 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 = {
    "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
        "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("justaduck/bulk-image-file-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 = { "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
        "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
        "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("justaduck/bulk-image-file-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 '{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png",
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
  ]
}' |
apify call justaduck/bulk-image-file-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,justaduck/bulk-image-file-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/gjS91zqglywtBvl64/builds/HdSAh5s0IAjjgzJvS/openapi.json
