Bulk File Downloader: URLs or Dataset Fields to Files & ZIP avatar

Bulk File Downloader: URLs or Dataset Fields to Files & ZIP

Pricing

from $1.40 / 1,000 downloaded files

Go to Apify Store
Bulk File Downloader: URLs or Dataset Fields to Files & ZIP

Bulk File Downloader: URLs or Dataset Fields to Files & ZIP

Bulk file downloader: download images, PDFs, audio, video and other files from direct links or from a URL field of your datasets into one key-value store, with a ZIP link for all files. Same-content files saved once. From $0.002 per file; failed downloads free.

Pricing

from $1.40 / 1,000 downloaded files

Rating

0.0

(0)

Developer

Klarto

Klarto

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

13 hours ago

Last modified

Features

Limited permissions

Share

Bulk file downloader for Apify. Give it direct links, or pick datasets whose rows hold file links, and it saves every file into one key-value store, with one ZIP link for all of them. $0.002 per file (files up to 10 MB), $0.0015 per extra 10 MB. Failed, skipped and duplicate files are free.

Why use it:

  • Links from your datasets. Pick the output of another Actor and name the field: imageUrl, media.url, images.*.url. Lists of links and objects with a url, src or href key work too.
  • One ZIP for everything. zipUrl in the run's OUTPUT downloads all saved files as one archive, with no Apify token needed.
  • Identical files saved once. The same content from two links (SHA-256) is stored once. The second link gets status duplicate and is free.
  • Honest per-file results. Each link gets a row with its status, HTTP status, type, size, SHA-256 and a reason when it failed.
  • Safe by design. Only public addresses, every redirect re-checked, no cookies kept, and size and time limits per file that also hold for compressed answers.

What it does

  • Input: direct file links (any type: images, PDF, Office files, audio, video, archives) and/or datasets plus the fields that hold the links.
  • Output:
    • The files in the run's key-value store, as file-00001-<name>, file-00002-<name> and so on.
    • One dataset row per unique link.
    • An OUTPUT summary with zipUrl.
  • A link that opens a web page saves that page's HTML. It does not save the images or files on the page. Use a direct file link.

How it works

  1. Collect links. It reads URLs, then the picked datasets, page by page. It keeps the unique links in input order, up to Max files.
  2. Check each address. The host must resolve to a public IP address; private and reserved networks are refused. The connection is pinned to the checked IP, and every redirect hop is checked again.
  3. Download. The file streams to disk with the size limit applied while reading. The Actor asks for gzip or deflate compression only and decodes it in small steps, so a small compressed answer cannot expand past the limit; other encodings (br, zstd, nested) give an error row. At most 2 downloads at once go to the same site. HTTP 408, 425, 429, 500, 502, 503 and 504 answers, connect or read timeouts, dropped connections and compressed answers cut before their end are tried 2 more times (a download that reaches fileTimeoutSecs is not). For 429 and 503 a Retry-After in seconds is followed, up to 30 s. A try is not started when the run is close to its timeout, so every link still gets a row.
  4. Check the content. The File types filter is applied from the server's Content-Type before the body is read. SHA-256 is computed while downloading, and identical content is stored once.
  5. Save, then charge. The file is streamed from disk to the key-value store, the row is written, and only then is the file charged.

The User-Agent is KlartoDownloader/0.1 (+https://apify.com/klarto). Your files are not sent to any outside service.

Input

FieldDefaultWhat it does
urls—Direct file links, one per line. A bare host such as example.com/file.pdf gets https://.
datasets—Datasets whose rows hold links. Picking one gives the Actor read access to it (limited permissions).
urlFields["url"]Fields with links: url, media.url, images.0, images.*.url.
fileTypesanyany, images, documents, audio, video or archives. Other files get status skipped, are free and their body is not downloaded.
maxFiles1000Unique links per run, up to 10,000.
maxFileSizeMb100Bigger files are not downloaded and are free. A file must also fit on the run's disk, which Apify sizes at twice the run memory.
skipDuplicateFilestrueSave the same content once.
fileTimeoutSecs120Time limit per download.
maxConcurrency8Downloads at once (at most 2 per site).
respectRobotsTxtfalseCheck each site's robots.txt first, also for the target of every redirect. Disallowed links get status blocked and are free.

Minimal input:

{ "urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf", "https://images-assets.nasa.gov/image/as11-37-5505/as11-37-5505~small.jpg"] }

From another Actor's dataset:

{ "datasets": ["<datasetId>"], "urlFields": ["imageUrl", "images.*.url"], "fileTypes": "images" }

Output

A real row from a platform run (2026-11-19):

{
"fileIndex": 2,
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"status": "ok",
"error": null,
"finalUrl": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"httpStatus": 200,
"contentType": "application/pdf",
"fileName": "fw9.pdf",
"key": "file-00003-fw9.pdf",
"bytes": 140815,
"sha256": "2d420cbb4123dcf1fb82595b2359cfbb5d81f00b9df9d359fcc7af361d093f53",
"fileUrl": "https://api.apify.com/v2/key-value-stores/UGSuxcm8BefAWfSoa/records/file-00003-fw9.pdf?signature=1jemUJkNe9pAkB3sFzDMR",
"duplicateOf": null,
"sources": ["input"],
"occurrences": 1,
"charged": true,
"ms": 27,
"downloadedAt": "2026-11-19T00:04:10Z"
}
FieldTypeMeaning
fileIndexnumberPosition among the unique links (from 0): a repeated link gets no second row. A value in urls that is not an http(s) link gets an error row; such values inside datasets are only counted (invalidLinks in OUTPUT). Rows are written as downloads finish, so sort by this field to get the input order.
statustextOne of ok, duplicate, error, skipped or blocked.
errortextWhy the link was not saved; null when ok or duplicate.
httpStatus, finalUrlnumber, textThe final answer after redirects.
contentType, fileName, bytes, sha256text, text, number, textWhat was downloaded. fileName is the file's own name in any script (отчет.pdf); the record key keeps only the characters Apify allows.
key, fileUrltextRecord key and a signed link that opens without a token.
duplicateOftextFor duplicate: the link whose file has the same content. key and fileUrl point to that file.
sources, occurrenceslist, numberWhere the link came from: input or <datasetId>#<row> (first 20), and how many times it appeared.
chargedbooleanWhether this row was charged.

The OUTPUT record holds:

  • the counts (ok, duplicates, errors, skipped, blocked), bytes and the charged counts;
  • failures (the last 200 reasons);
  • zipUrl, a signed link that downloads all saved files as one ZIP.

Files follow Apify data retention. Copy them if you need permanent links.

Pricing

EventWhenPrice
file-downloadedA file saved to the key-value store (its first 10 MB included)$0.002
extra-10mbEach further started 10 MB (10,485,760 bytes) of a saved file$0.0015

Paid Apify plans pay less. Apify Store discounts apply automatically: Bronze 10% off, Silver 20% off, Gold and higher 30% off. The prices above are Free-plan prices; the Store card shows the lowest (Gold) price. The start event (apify-actor-start) has no discount.

These are free:

  • errors and HTTP 4xx/5xx answers;
  • files filtered out by fileTypes;
  • files over the size limit;
  • duplicates;
  • links blocked by robots.txt;
  • links not started.

Apify also charges its start event, apify-actor-start: $0.00005 per GB of run memory, which is $0.00005 per run at the default 1 GB.

Examples:

  • 3 small files: 3 × $0.002 = $0.006.
  • 1,000 images under 10 MB each: $2.00.
  • One 134 MB file: $0.002 + 13 × $0.0015 = $0.0215.

Set a maximum charge per run in Console or with maxTotalChargeUsd. The Actor stops cleanly when the limit is reached. Links it could not afford get status skipped.

Limits

  • Up to 10,000 unique links per run, each file up to 2,000 MB (maxFileSizeMb). Files are written to the run's disk and streamed from there to the key-value store, so memory stays low. The disk is twice the run memory: at the default 1 GB a file can be up to 1,843 MB, and fewer downloads run at once when the size limit is large.
  • Measured on the platform at 1 GB (2026-11-19):
    • 3 small files (JPEG, PDF, TIFF): a 4 s run.
    • A 134 MB archive: a 4 s run (build 0.1.3, streamed upload; 1 file + 13 extra-10mb events charged).
    • Speed depends on the source server.
  • Downloads that take longer than fileTimeoutSecs (default 120 s) are stopped and free.
  • Only http and https links to public addresses. Links with user:password@ are refused.
  • No login, cookies or proxies: links that need a sign-in fail with HTTP 401/403.
  • Web pages are saved as HTML. The Actor does not crawl pages for the files on them.

Use it from your stack

You need an Apify account and token. No third-party API keys are needed.

  • API (returns the dataset rows):
    curl -X POST "https://api.apify.com/v2/acts/klarto~bulk-file-downloader/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
    -H 'Content-Type: application/json' -d '{"urls":["https://www.irs.gov/pub/irs-pdf/fw9.pdf"]}'
  • Python (apify-client 3.x):
    from apify_client import ApifyClient
    client = ApifyClient("<APIFY_TOKEN>")
    run = client.actor("klarto/bulk-file-downloader").call(run_input={"urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"]})
    print(client.key_value_store(run.default_key_value_store_id).get_record("OUTPUT")["value"]["zipUrl"])
  • n8n: use the Apify node, choose Run an Actor with klarto/bulk-file-downloader, then read the dataset or the OUTPUT record.
  • Make / Zapier: use the Apify app with the same Actor.
  • MCP / AI agents: https://mcp.apify.com?tools=klarto/bulk-file-downloader.

FAQ

Can it download all images from a web page? No. It downloads the links you give. Collect the image links first, for example with a scraper, and pass its dataset with the field that holds them.

Google Drive or Dropbox links? Only direct download links work. A share page of a cloud drive is a web page, so the Actor saves its HTML. Links that need a sign-in fail with HTTP 401/403 and are free.

Which of two identical files is kept? The one that finishes first. The other gets status duplicate and points to it. Turn off skipDuplicateFiles to keep both.

Why is a file skipped? Its type did not match fileTypes, the run reached its maximum charge, or the run was close to its timeout. The reason is in error.

How do I get all files at once? Open zipUrl from the OUTPUT record. In Console, the run's Storage tab also lists the records.

Are failed downloads charged? No. Only files saved to the key-value store are charged.

Is my data kept? Files stay in your run's storage under Apify's data retention. Nothing is sent to other services.

Fair use and licences

  • Download only files you own or may download. Respect each site's terms.
  • The Actor does not crawl and does not bypass logins or blocks.
  • Turn on respectRobotsTxt to follow robots.txt.
  • Libraries: httpx (BSD-3-Clause), Protego (BSD-3-Clause), Apify SDK (Apache-2.0).

Ready-made examples

Saved inputs for common jobs: open one and run it as it is, or change the input first.

Support

Open an issue on the Actor page. We aim to answer within a week.