# Bulk File Downloader: PDFs, Video, Audio & Any File to ZIP (`northbell/bulk-file-downloader`) Actor

Download files of any kind from a list of links or from a dataset: PDF, Word, Excel, CSV, video, audio, images. Each file gets a public link, name, type and size, plus one ZIP. Later runs can return only changed files; unchanged ones are free. robots.txt respected. $2 per 1,000 files up to 5 MB.

- **URL**: https://apify.com/northbell/bulk-file-downloader.md
- **Developed by:** [Northbell](https://apify.com/northbell) (community)
- **Categories:** Developer tools, Automation
- **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: PDFs, Video, Audio & Any File to ZIP

Give it a list of **file links**, or the **ID of an Apify dataset** that holds them, and every file is **saved as it is with a public link**, its **name, type and size**, plus **one ZIP of everything**. PDF, Word, Excel, CSV, ZIP, video, audio, images: any kind. The same file under two links is saved and charged once. **$2 per 1,000 files** up to 5 MB each.

**Only the files that changed.** Turn on *Only files new or changed since the last run* and schedule it: price lists, terms, reports and catalogs you watch come back only when their content changed. A file that did not change has no row and costs nothing; when the site supports it, it is not even downloaded again.

**It follows each site's rules.** Before the first file from a site it reads that site's robots.txt and skips what it disallows; if a site refuses a request (HTTP 401, 403 or 429), no more requests go to that site in the run. Download only files you are allowed to use under the site's terms.

**Try it now. The input is already filled in.** Press **Start**: three public sample files (a PDF from W3C, a short MDN video, a speech clip) come back as three rows and one ZIP with all of them (2.3 MB), for about $0.006. The rows from our own run on 21 Nov 2026:

| `fileName` | `contentType` | `bytes` |
| --- | --- | --- |
| dummy.pdf | application/pdf | 13,264 |
| flower.mp4 | video/mp4 | 1,128,375 |
| jfk.flac | audio/flac | 1,152,693 |

Each row links to the saved file (`fileUrl`) and keeps the source address and a SHA-256 fingerprint.

### Run it after your scraper

If another Actor collects links to files (PDF reports, product videos, podcast episodes, attachments), this one can download them by itself after every run:

1. In Apify Console, open your scraper and go to **Integrations**.
2. Add **Run Actor** and pick this Actor.
3. Use this input:

```json
{
  "datasetId": "{{resource.defaultDatasetId}}",
  "onlyTypes": ["pdf"]
}
```

The links are read from the field you name in `urlField`, or found by themselves in the usual fields (`fileUrl`, `downloadUrl`, `url`, `link`, `href`, `src`, `mediaUrl`, `videoUrl`, `audioUrl`, `imageUrl`, `pdfUrl`, `documentUrl`). A field holding a list of links gives every link.

### What you get

| Row | Fields |
|---|---|
| `file` | `sourceUrl`, `fileUrl` (public link to the saved file), `fileName`, `extension`, `contentType`, `bytes`, `megabytes`, `zipName`, `duplicateOf`, `statusSinceLastRun` (`new` or `changed`, with the switch on), `finalUrl`, `sha256`, `key`, `charged` |
| `zip` | `fileUrl` (link to `files.zip`), `files`, `bytes` |
| `skipped` | `url`, `fileName`, `contentType`, `bytes`, `reason` (free: not in "Only these file types") |
| `error` | `url`, `message` (free) |

The file name comes from the server's `Content-Disposition` header, else from the link; when the server only says `application/octet-stream`, the type is read from the file's first bytes (PDF, ZIP, MP4, WebM, MP3, FLAC, OGG, PNG, JPEG, GIF, GZIP). Every file is stored in the run's key-value store under `key`, and `files.zip` holds them all under their own names (up to 250 MB in total; bigger runs keep every file's own link).

### Input

| Field | Default | What it does |
|---|---|---|
| `urls` | none | Direct links to files. |
| `datasetId` | none | Read the links from this dataset (your scraper's results). |
| `urlField` | auto | The field holding the link; dots for nested fields (`media.url`). |
| `onlyChanged` | off | Only files new or changed since the last run (remembered per link in your storage `bulk-file-downloader-seen`). Every run remembers its files, switch on or off, so a file you already received is not returned or charged again when you turn it on later. |
| `onlyTypes` | all | Extensions (`pdf`), content types (`application/pdf`) or families (`video`). |
| `maxFiles` | 1000 | Links beyond this are not tried. |
| `maxFileMb` | 100 | Bigger files come back as a free error row. Over about 300 MB, raise the memory in Run options. |
| `zip` | on | One ZIP of everything, no extra charge. |

### Price

- **$0.002 per file** saved, up to 5 MB ($2 per 1,000).
- **$0.002 for each further 5 MB** (or part) of a bigger file: a 12 MB video is $0.002 + 2 × $0.002 = $0.006; a 141 MB file took 7 seconds and cost $0.058 in our test on 21 Nov 2026.
- Duplicates, skipped files, errors and the ZIP are free. A run start is $0.00005.

### Good to know

- **robots.txt is respected**: a link whose site disallows it is not fetched and comes back as a free error row. A site that refuses a request (HTTP 401, 403 or 429 after waiting) gets no more requests in that run; its other links come back as free error rows, so you can run them again later. Links to private or local networks are refused.
- It fetches the link as it is, without a browser or a login. Pages that only show a download button after JavaScript runs, and video sites (YouTube, TikTok, Instagram) are not supported: give the direct file link.
- To collect every image inside web pages, use our [Bulk Image Downloader](https://apify.com/northbell/bulk-image-downloader), which reads the page HTML for you.
- The saved files stay in the run's storage for your plan's data retention period; download the ZIP or copy the links you need.

# Actor input Schema

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

Direct links to files of any kind: PDF, Word, Excel, CSV, ZIP, images, video, audio. Each file is saved as it is, with a public link. Leave empty if you give a Dataset ID below.

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

Read the file links from this Apify dataset, for example the results of a scraper run. Use {{resource.defaultDatasetId}} when this Actor runs as an integration after another Actor.

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

Name of the field that holds the link (dots for nested fields, e.g. media.url). If empty, each item is checked for fileUrl, downloadUrl, url, link, href, src, mediaUrl, videoUrl, audioUrl, imageUrl, pdfUrl, documentUrl, in that order. Lists of links are all taken.

## `onlyTypes` (type: `array`):

Optional. Extensions (pdf, mp4), content types (application/pdf) or families (image, video, audio). Other files come back as a free 'skipped' row and are not saved.

## `onlyChanged` (type: `boolean`):

Remembers each link's file (SHA-256, ETag, Last-Modified) in your storage bulk-file-downloader-seen. On later runs a file whose content did not change is not saved, has no row and costs nothing; when the server supports it, it is not even downloaded. Rows say whether a file is new or changed. The first run with this on returns every file.

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

Links beyond this number are not tried.

## `maxFileMb` (type: `integer`):

Bigger files are not saved and come back as a free error row. Files over about 300 MB need more memory (Run options).

## `zip` (type: `boolean`):

One ZIP with every saved file under its own name, up to 250 MB in total. No extra charge.

## Actor input object example

```json
{
  "urls": [
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
    "https://raw.githubusercontent.com/openai/whisper/main/tests/jfk.flac"
  ],
  "onlyChanged": false,
  "maxFiles": 1000,
  "maxFileMb": 100,
  "zip": true
}
```

# Actor output Schema

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

Public link, name, type, size and source of every saved file.

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

files.zip in the run's key-value store.

# 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://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
        "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
        "https://raw.githubusercontent.com/openai/whisper/main/tests/jfk.flac"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("northbell/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://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
        "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
        "https://raw.githubusercontent.com/openai/whisper/main/tests/jfk.flac",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("northbell/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://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
    "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
    "https://raw.githubusercontent.com/openai/whisper/main/tests/jfk.flac"
  ]
}' |
apify call northbell/bulk-file-downloader --silent --output-dataset

```

## MCP server setup

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