# Bulk File Downloader API 💰$1/1K: PDFs, Docs, Media, No Login (`spellzcode/bulk-file-downloader-api`) Actor

Download files in bulk from a list of links or from web pages: PDFs, Word and Excel files, CSV, presentations, images, audio, video and archives. Each file is checked by its real type and saved with a download link. Failed links are free. $0.001 per file.

- **URL**: https://apify.com/spellzcode/bulk-file-downloader-api.md
- **Developed by:** [Mårten Fitzback](https://apify.com/spellzcode) (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 $0.70 / 1,000 file saveds

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 API 💰$1/1K: PDFs, Docs, Media, No Login

Download **any number of files** from a list of links, or **collect every file linked from web pages** (a reports page, a downloads page, a document library), and get a permanent download link for each one.

- **PDFs, Word, Excel, CSV, JSON, XML, PowerPoint, EPUB, images, MP3, WAV, MP4, WebM, ZIP** and more
- **Checked by real type**: the file's first bytes decide what it is, so a link that opens an error page or a login page is reported, not saved as a fake "PDF"
- **From pages**: pick the file types (for example only PDFs) and the actor follows every matching link on the pages you give
- **Download links** in your run's storage, plus file name, type, MIME type and size for each file
- **No login, no API key, no setup**

**$0.001 per file saved ($1 per 1,000).** Failed links, wrong-type files and files over your size limit are reported and **not charged**.

### Use it for

- Grabbing all annual reports, tenders, manuals or datasheets linked from a site
- Feeding PDFs and documents into an AI or RAG pipeline (pair it with a PDF-to-text actor)
- Archiving a list of media files or attachments
- Moving files from public links into your own storage in one run

### Input

| Field | What it does |
|---|---|
| File links | Direct links to files of any type |
| Web pages to collect files from | Pages whose file links should be downloaded |
| File types to collect from pages | PDF, documents, spreadsheets, presentations, images, audio, video, archives (default: PDF) |
| Maximum files | Stop after this many files (also caps the cost) |
| Maximum file size (MB) | Larger files are skipped for free (up to 500 MB) |

### Output (one item per file)

```json
{
  "url": "https://example.org/reports/annual-report-2025.pdf",
  "status": "ok",
  "sourcePage": "https://example.org/investors",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/.../records/0001-annual-report-2025.pdf",
  "fileName": "0001-annual-report-2025.pdf",
  "type": "pdf",
  "mimeType": "application/pdf",
  "bytes": 2483021
}
```

### Notes

- Only public http and https links are downloaded. Pages behind a login or bot protection are reported as failed.
- Links added to a page by JavaScript after it loads are not seen. Give the direct file links instead.
- Download only files you have the right to copy.

# Actor input Schema

## `fileUrls` (type: `array`):

Direct links to files (any type). Each is downloaded once.

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

Pages whose links to files (PDF, documents, media...) should be downloaded, for example a reports or downloads page. Files added by scripts after loading are not seen.

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

Which links on the pages count. Leave empty for all types. Direct file links are always downloaded.

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

Stop after this many files. You pay per file, so this also caps the cost.

## `maxMegabytes` (type: `integer`):

Larger files are skipped for free. Up to 500 MB.

## Actor input object example

```json
{
  "fileUrls": [
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  ],
  "fileTypes": [
    "pdf"
  ],
  "maxFiles": 100,
  "maxMegabytes": 100
}
```

# Actor output Schema

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

One item per file: its download link, type and size, or why it failed.

# 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 = {
    "fileUrls": [
        "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("spellzcode/bulk-file-downloader-api").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 = { "fileUrls": ["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("spellzcode/bulk-file-downloader-api").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 '{
  "fileUrls": [
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  ]
}' |
apify call spellzcode/bulk-file-downloader-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,spellzcode/bulk-file-downloader-api"
        }
    }
}
```

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/VeNNAnnsa6axgcAqR/builds/WRBlqhY8Rj256ga7d/openapi.json
