# Bulk File Downloader: Download Files, Images & PDFs from URLs (`datadesk-io/bulk-file-downloader`) Actor

Download thousands of files from a URL list (images, PDFs, CSV, ZIP, audio, video) into Apify storage with public download links, size, content type and SHA-256. Optional ZIP of all files. File-type filter, size limit, custom headers. $2 per 1,000 files (per 10 MB).

- **URL**: https://apify.com/datadesk-io/bulk-file-downloader.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (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.60 / 1,000 files

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 File Downloader: Download Files, Images & PDFs from a URL List

Download **thousands of files from a list of URLs**: **images, PDFs, CSV and Excel, ZIP, audio and video**. Each file is saved to Apify storage with a **public download link**, plus **file name, size, content type, SHA-256 checksum, HTTP status and final URL**. Optionally get **one ZIP with everything**, keep only certain **file types**, set a **size limit** and send **custom headers** for your own private files. Works from Make, Zapier, n8n, the API and AI agents (MCP). **$2 per 1,000 files** (per started 10 MB).

### Try it now (one click)

1. Click **Start**. The prefilled input downloads 2 small demo files (an icon and a PDF). In our latest check (Nov 22, 2026) it returned **3 files in about 2 seconds**. An empty input runs a small demo too.
2. Paste your file URLs (one per line), optionally pick file types, size limit and ZIP.
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 files = **$0.205**, 1,000 files = **$2.005** ($2.00 per 1,000 files + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per file. Apify's free plan includes $5 of usage every month, enough for about 2,497 files. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 22, 2026 (some columns). Each file also includes the other fields listed below.*

| File | Size (MB) | Type | Saved | Error |
|---|---|---|---|---|
| dummy.pdf | 0.013 | application/pdf | True | — |
| robots.txt | 0.012 | text/plain | True | — |
| favicon.ico | 0.014 | image/x-icon | True | — |
| favicon.ico | 0.014 | image/x-icon | True | — |

### What you get

| Field group | Fields |
|---|---|
| File | file name, store key, public download link, content type, size in bytes and MB, SHA-256 |
| Request | URL, final URL after redirects, HTTP status |
| Billing & errors | charged units (1 per started 10 MB), error message for skipped files |
| Extras | optional all-files.zip in the key-value store |

### Why this Actor

- **Public download links** for every file: hand them to Make, Zapier, n8n, a spreadsheet or an AI agent.
- **One ZIP** with all files when you need a single download.
- **SHA-256 checksums** to deduplicate and verify files.
- **Failed, skipped or too-big files are free**: you pay only for saved files.
- **$2 per 1,000 files** up to 10 MB each, no start fee per GB of memory.

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Paste your file URLs (one per line), optionally pick file types, size limit and ZIP.
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Demo files (prefill):**

```json
{"urls": ["https://apify.com/favicon.ico", "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"]}
```

**Only PDFs, with a ZIP:**

```json
{"urls": ["https://example.com/a.pdf", "https://example.com/b.pdf", "https://example.com/c.jpg"], "allowedExtensions": ["pdf"], "createZip": true}
```

**Product images from a scraper:**

```json
{"urls": ["https://cdn.shopify.com/s/files/1/0001/image1.jpg", "https://cdn.shopify.com/s/files/1/0001/image2.jpg"], "concurrency": 5, "maxFileSizeMb": 20}
```

**Your private files with a token:**

```json
{"urls": ["https://files.mycompany.com/export.csv"], "headers": {"Authorization": "Bearer YOUR_TOKEN"}}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `urls` | array | Direct links to files: images, PDFs, CSV/Excel, ZIP, audio, video... One per line. Empty = 3 small demo files. |
| `allowedExtensions` | array | Optional extensions to keep, e.g. pdf, jpg, png. Others are skipped (not charged). Empty = all. |
| `createZip` | boolean | Pack all downloaded files into all-files.zip in the key-value store (up to 300 MB of files). |
| `maxFileSizeMb` | integer | Bigger files are skipped and not charged. |
| `concurrency` | integer | Files downloaded at the same time. |
| `timeoutSecs` | integer | Seconds before a download is abandoned. |
| `maxFiles` | integer | Hard cap for the run (cost control). |
| `headers` | object | Optional headers sent with every request, e.g. {"Authorization": "Bearer ..."} for your own private files. |

### Output example

*Example record from a local test run (long lists shortened).*

```json
{
  "index": 1,
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  "success": true,
  "fileName": "dummy.pdf",
  "fileKey": "00001-dummy.pdf",
  "downloadUrl": "file:///tmp/lt-bulk-file-downloader-1795389457239/key_value_stores/default/00001-dummy.pdf",
  "contentType": "application/pdf",
  "sizeBytes": 13264,
  "sizeMb": 0.013,
  "sha256": "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4",
  "httpStatus": 200,
  "finalUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  "chargedUnits": 1,
  "error": null,
  "scrapedAt": "2026-11-22T23:17:37.782966+00:00"
}
```

#### Output fields

| Field | Description |
|---|---|
| `index` | Position in the input list |
| `url` | URL you submitted |
| `success` | True when the file was saved (only saved files are charged) |
| `fileName` | File name taken from the URL |
| `fileKey` | Key of the file in the run key-value store |
| `downloadUrl` | Public link to download the saved file |
| `contentType` | MIME type reported by the server |
| `sizeBytes` | File size in bytes |
| `sizeMb` | File size in MB |
| `sha256` | Checksum of the file |
| `httpStatus` | Status code of the download |
| `finalUrl` | URL after redirects |
| `chargedUnits` | Billing units: 1 per started 10 MB |
| `error` | Why the file was skipped or failed |
| `scrapedAt` | When the row was saved (UTC) |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.002 per file** ($2.00 / 1,000). Runs that save nothing are not charged.

| Files saved | Approx. cost |
|---|---|
| 20 | $0.045 |
| 100 | $0.205 |
| 1,000 | $2.005 |
| 10,000 | $20.005 |

### Use cases

- Save product images or PDFs found by other scrapers (chain it after any Actor)
- Archive invoices, reports and documents from a list of links
- Build image datasets for AI training or computer vision
- Back up media from a CMS or CDN export
- Give AI agents a tool to fetch and store files

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~bulk-file-downloader/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com/favicon.ico", "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"]}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/bulk-file-downloader").call(run_input={"urls": ["https://apify.com/favicon.ico", "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/bulk-file-downloader`).

### FAQ

**How is a file billed?** One unit per started 10 MB: a 3 MB file is 1 unit ($0.002), a 25 MB file is 3 units. Failed, skipped and oversize files are free.

**Where are the files?** In the run's default key-value store. Each dataset row has a public download link; the ZIP (if enabled) is all-files.zip.

**Can it download from pages that need login?** Only if you can pass access with HTTP headers (for example an API token for your own files). It does not log in to websites.

**Can it download YouTube or social media videos?** No. It downloads direct file URLs only.

**Is there a size limit?** Default 50 MB per file, up to 200 MB. The ZIP includes up to 300 MB of files.

### Limitations

- Direct file URLs only (no web-page video extraction, no login flows).
- Max 200 MB per file; ZIP covers the first 300 MB of files.
- Files are kept as long as the run storage is retained by your Apify plan; copy them elsewhere for long-term storage.

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field or filter? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Descarga miles de archivos desde una lista de URLs (imágenes, PDF, CSV, ZIP, audio, video) a Apify con enlaces de descarga públicos, tamaño, tipo y SHA-256. ZIP opcional, filtro por tipo y límite de tamaño. $2 por 1.000 archivos.
**PT:** Baixe milhares de arquivos de uma lista de URLs (imagens, PDF, CSV, ZIP, áudio, vídeo) para o Apify com links públicos, tamanho, tipo e SHA-256. ZIP opcional, filtro por tipo e limite de tamanho. US$2 por 1.000 arquivos.

# Actor input Schema

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

Direct links to files: images, PDFs, CSV/Excel, ZIP, audio, video... One per line. Empty = 3 small demo files.

## `allowedExtensions` (type: `array`):

Optional extensions to keep, e.g. pdf, jpg, png. Others are skipped (not charged). Empty = all.

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

Pack all downloaded files into all-files.zip in the key-value store (up to 300 MB of files).

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

Bigger files are skipped and not charged.

## `concurrency` (type: `integer`):

Files downloaded at the same time.

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

Seconds before a download is abandoned.

## `maxFiles` (type: `integer`):

Hard cap for the run (cost control).

## `headers` (type: `object`):

Optional headers sent with every request, e.g. {"Authorization": "Bearer ..."} for your own private files.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/report.pdf",
    "https://example.com/photo.jpg"
  ],
  "allowedExtensions": [
    "pdf",
    "jpg",
    "png"
  ],
  "createZip": false,
  "maxFileSizeMb": 50,
  "concurrency": 3,
  "timeoutSecs": 120,
  "maxFiles": 1000,
  "headers": {
    "User-Agent": "MyDownloader/1.0"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "urls": [
        "https://apify.com/favicon.ico",
        "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/bulk-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://apify.com/favicon.ico",
        "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/bulk-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://apify.com/favicon.ico",
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  ]
}' |
apify call datadesk-io/bulk-file-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datadesk-io/bulk-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/5BbjBIYDF1adp2QaD/builds/ff9wParcF4EIhD3bG/openapi.json
