Bulk File Downloader: URL List to Storage or ZIP
Pricing
Pay per event
Bulk File Downloader: URL List to Storage or ZIP
Bulk file downloader for a list of direct URLs (PDF, CSV, ZIP, images, …): saves each file to Apify storage with content type, size and SHA-256, plus an optional free archive.zip. HTML pages, duplicates and failures free. Respects robots.txt. $1 per 1,000 files. Plus $0.00005 start.
Pricing
Pay per event
Rating
0.0
(0)
Developer
fecklesspleb
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Bulk File Downloader
Download a list of direct file URLs into an Apify key-value store. Each saved file is stored under a content-hash key and listed in the dataset with URL, status, content type, size and SHA-256. Optionally write a single archive.zip of the saved files into the same store (zipping is free).
At a glance: $1.00 per 1,000 files saved ($0.001 per file), plus the Apify run-start event. Duplicates, filtered, failed and skipped URLs are free. Any response that is an HTML page (for example a login wall or a soft-404 page) is not saved and not charged.
Scheduled runs skip what was already saved (default). Runs started by an Apify Schedule skip files that an earlier scheduled run already saved, and skipped files are not charged. This creates a named key-value store bulk-file-downloader-skip-state in your Apify account (or the name you set in Skip state store name). To opt out, set Skip files downloaded by earlier runs (skipAlreadyDownloaded) to never. Manual, API, webhook and integration runs are not affected unless you set it to always.
robots.txt is respected (RFC 9309) on every request and redirect hop. Private, loopback and link-local addresses are refused on the Apify platform.
Use cases
- Archive a list of PDFs, CSVs, ZIPs or images you have the right to fetch.
- Feed another workflow that expects files in a key-value store.
- Bundle a small set of public assets into one zip for hand-off.
Input
{"urls": [{"url": "https://www.python.org/static/img/python-logo.png"},{"url": "https://www.python.org/static/favicon.ico"}],"maxFileSizeMb": 50,"createZip": false}
Empty urls (and {}) uses the same sample pair as the schema default/prefill. A URL without a scheme gets https://.
Output example
{"url": "https://www.python.org/static/img/python-logo.png","status": "downloaded","reason": null,"kvKey": "9c121e619bfe02eaba582d70.png","fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/...","finalUrl": "https://www.python.org/static/img/python-logo.png","contentType": "image/png","bytes": 15770,"sha256": "9c121e619bfe02eaba582d7080eea46fd53ec0b50717e6794a948fada4ae8f3c","charged": true,"downloadedAt": "2026-11-05T16:00:00+00:00"}
Failed and skipped URLs get a free dataset row with status failed or skipped and a reason. If no file is saved, the run adds one free status row that explains why. Run counts are saved in the RUN_SUMMARY record (plus alreadyDownloaded and skipState when the cross-run skip is on, preset with a preset, and inputSources with a dataset or CSV source).
Pricing
Pay-per-event:
apify-actor-start: $0.00005, the standard Apify start event (one per GB of memory, minimum 1).file: $0.001 per file saved to the key-value store ($1.00 per 1,000 files).
Duplicates, files an earlier run already saved (cross-run skip), size filters, robots blocks, timeouts, HTTP errors, private-address blocks, HTML pages and the optional zip are free. Set Maximum cost per run and the Actor stops cleanly when it is reached; a file that cannot be charged is not kept in the store.
Recurring runs: skip files you already have
skipAlreadyDownloaded | What happens |
|---|---|
auto (default) | On only for runs started by an Apify Schedule. Manual, API, webhook, MCP and integration (n8n, Make, Zapier) runs process every URL, as before. |
always | On for every run. Use it for n8n, Make, Zapier or API jobs that repeat. |
never | Off. Every run saves and charges every file. |
When it is on, every URL is still fetched and hashed. A file whose SHA-256 an earlier run already saved and was charged for is not saved again. It gets a free row with status skipped and a reason that starts already downloaded by an earlier run, and is not charged. With createZip, archive.zip holds only the new files. RUN_SUMMARY counts them and shows the store in skipState; the log and status message say how many were skipped. If nothing new was found, the run also adds the usual free status row, which then starts Not charged: no new file.
The history is kept in a named key-value store in your account, Skip state store name (skipStateStoreName, default bulk-file-downloader-skip-state). Use one name per job if separate schedules should not share history. Named stores are kept until you delete them; this one holds about 67 bytes per remembered file (a 64-character hash in a JSON list), so 10,000 files is under 1 MB. Storage is billed by Apify under your plan; we have not measured the cost of such a small store. Delete the store, or pick a new name, to start over. Do not run two runs on the same store at the same moment: one of them may forget the other's newest entries, which only means those files are charged once more later.
Only files that were saved and charged are remembered; failed, filtered and cost-capped URLs are tried again next time.
Other URL sources (dataset, CSV, Google Sheet)
Next to URLs you can add:
- Dataset with URLs (
datasetId): an Apify dataset, for example the output of a scraper run. Each item'surlis used, or the first offileUrl,imageUrl,src,linkorhrefthat holds a URL. SetdatasetUrlFieldfor another field (dots for nested fields, for exampleattachment.url). Lists of URLs in a field are read too. - CSV URL or Google Sheet URL (
csvUrl): a public CSV file, or a Google Sheet shared as Anyone with the link (no Google sign-in). A normal sheet link such ashttps://docs.google.com/spreadsheets/d/<ID>/edit#gid=0is turned into its CSV export URL. The column namedurlis used, or the first column that holds URLs; setcsvUrlColumnto pick a header. Max 5 MB.
Up to 5,000 URLs are taken from the dataset and CSV together, and they are added to the URL list without duplicates. If the URL list is still the default sample (the two python.org sample files), the sample is ignored when a dataset or CSV is set. If a source cannot be read (not found, no access, an HTML sign-in page instead of CSV), its reason is in the status row and RUN_SUMMARY.inputSources, and nothing is charged for it. The CSV is fetched like any other URL: robots.txt is obeyed and private addresses are blocked.
Run it after another Actor: in that Actor's Integrations tab, start this Actor when a run succeeds and pass {"datasetId": "{{resource.defaultDatasetId}}"} as the input.
Presets
preset fills fields you left at their default. A field you changed keeps your value. Each preset caps maxFiles, so a preset run costs at most $0.01: start event $0.00005 + files × $0.001.
preset | Sets | Max cost of a preset run |
|---|---|---|
none (default) | nothing | (your own limits) |
quickSample | maxFiles 5 | $0.00005 + 5 × $0.001 = $0.00505 |
smallFilesOnly | maxFileSizeMb 5, maxFiles 9 | $0.00005 + 9 × $0.001 = $0.00905 |
newFilesOnly | skipAlreadyDownloaded always, maxFiles 9 | $0.00005 + 9 × $0.001 = $0.00905 |
Raise maxFiles yourself when you need more; your value wins over the preset.
Run it on a schedule
Use this when you want the same file list fetched on a regular cadence, then handed to another workflow.
Scheduled runs skip what was already saved (default). Runs started by an Apify Schedule skip files that an earlier scheduled run already saved, and skipped files are not charged. This creates a named key-value store bulk-file-downloader-skip-state in your Apify account (or the name you set in Skip state store name). To opt out, set Skip files downloaded by earlier runs (skipAlreadyDownloaded) to never. Manual, API, webhook and integration runs are not affected unless you set it to always.
Example. Keep a list of direct file URLs (PDFs, CSVs, images or other public files you have the right to fetch) in the urls field and run it daily or weekly. Each saved file is written to the key-value store and listed in the dataset with fileUrl and SHA-256. Runs started by an Apify Schedule skip files that an earlier run already saved (same SHA-256), so only new files are saved and charged; see Recurring runs. Optionally set createZip to true to also write archive.zip into the same store (zipping is free, subject to the zip size cap in Limits). Set Key-value store name for a named store that is kept indefinitely. Charges are unchanged; see Pricing.
Apify Schedules
You must have run the Actor at least once before you can schedule it. In Apify Console, open Schedules and click Create new. Set a name (3–63 characters) and a timezone (daylight saving is supported). Under Schedule setup, use the visual builder or a cron expression. For example, 0 8 * * * runs every day at 08:00 in that timezone. Click Add, choose this Actor or a saved task, and optionally override the input, build, timeout or memory. If you leave the input empty, the Actor's default input is used. New schedules are created disabled; check the Next runs preview, then click Enable. One schedule can include at most 10 Actors and 10 tasks.
Webhook or dataset hand-off
On the Actor or a task, add a webhook for the event ACTOR.RUN.SUCCEEDED (you can also listen for ACTOR.RUN.FAILED). The event data includes actorRunId. Fetch that run's dataset items:
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \"https://api.apify.com/v2/actor-runs/<RUN_ID>/dataset/items?format=json"
Keep the token in a credential or secret, never in a URL you share publicly. The API also accepts ?token=, but the Authorization header is the recommended, more secure method. format may be json (the default), jsonl, csv, xlsx, xml or rss.
Each saved file is also in the run's key-value store; use the row's fileUrl, or download from Storage → Key-value store in Console. If createZip was enabled and the archive fitted the cap, archive.zip is in the same store.
n8n
- Install the Apify node: on self-hosted n8n, go to Settings → Community Nodes and install
@apify/n8n-nodes-apify; on n8n Cloud, search for Apify and install the node. - Create an Apify API credential and store
<YOUR_APIFY_TOKEN>there (OAuth2 is also available on n8n Cloud). Do not put the token in a node URL. - Add an Apify Run an Actor node, select this Actor, and set the input JSON below. To get rows in the same step, use Run an Actor and get dataset instead, which waits for the run to finish and returns the dataset items.
- If an Apify Schedule starts the run, use the On new Apify Event trigger (event type Succeeded), then Get Dataset Items with the run's default dataset id.
- Send the items to a sheet, folder or the next node.
Works with Apify's native n8n, Make and Zapier integrations. For a scheduled run, start it from an Apify Schedule or a Schedule Trigger in n8n, then read the run's default dataset in the next node.
Example input for a scheduled run:
{"urls": [{"url": "https://www.python.org/static/img/python-logo.png"},{"url": "https://www.python.org/static/favicon.ico"}],"maxFileSizeMb": 50,"createZip": false,"skipAlreadyDownloaded": "always","skipStateStoreName": "n8n-daily-files"}
n8n starts runs through the API, so skipAlreadyDownloaded is set to always above; the auto default applies only to runs started by an Apify Schedule.
Make
- In a Make scenario, add the Apify app and connect with OAuth or an API token (store the token in the connection).
- Add Run an Actor, select this Actor, and paste the same input JSON. Set Run synchronously to Yes only if the run will finish inside Make's synchronous timeout (Make's Apify app page states a 120-second maximum; Apify's Make docs say the timeout varies by plan). For longer runs, let an Apify Schedule start the Actor and use Watch Actor Runs, then Get Dataset Items with that run's default dataset id.
- Map the items to Google Sheets, Drive, or the next module.
Limits
- Direct file URLs only (no page crawl).
- HTML pages cannot be downloaded: any HTML response is skipped and free.
- No JavaScript rendering, no login, no cookie/header injection, no Cloudflare bypass.
- Max file size default 50 MB (schema maximum 100 MB).
- Concurrency is capped at 30 and lowered automatically so parallel downloads fit in about half of the Actor's memory (2 at the 256 MB default with a 50 MB max file size). Requests to one host are spaced at least 0.25 s apart, or longer if robots.txt sets a crawl-delay.
archive.zipis capped at 30% of Actor memory (between 5 MB and 100 MB). Files that do not fit are left out of the zip and listed in free rows and inRUN_SUMMARY.- On the Apify platform, private/loopback/link-local addresses (also after a redirect) are not fetched and are free.
- A file URL that redirects to a login page is not saved and is free (tested locally).
What happens with invalid input? If the input is not a JSON object, or a field has the wrong type, the run fetches nothing and ends with one free status row: Invalid input, nothing was fetched and no results were charged: <reason>. The standard Apify start event still applies.
FAQ
Can I download .html / HTML pages?
No. This Actor is for direct file URLs (PDF, images, ZIP, CSV, etc.). Any response that is an HTML page is skipped and not charged. That includes soft-404 HTML bodies and login walls. The check is by Content-Type (text/html / application/xhtml+xml) or by sniffing the body as HTML (<!doctype html, <html>, …) — so a URL that ends in .html and returns an HTML document is rejected the same way. (A non-HTML body such as a PDF is still accepted even if a server mis-labels Content-Type as HTML.)
Why do only about two downloads run at once on the default settings?
Max concurrency defaults to 10, but the Actor lowers it automatically so that concurrency × maxFileSizeMb fits in about half of Actor memory. With the defaults (256 MB memory, 50 MB max file size) that budget is floor((256 × 0.5) / 50) = 2, so effective concurrency is 2. Raise memory and/or lower Max file size (MB) to allow more parallel downloads (hard cap 30). Separately, requests to the same host are spaced at least 0.25 s apart (or longer if robots.txt sets a crawl-delay), which further serialises same-host URLs even when the global concurrency is higher.
Is this legal?
The Actor downloads only public files from URLs you give it and obeys robots.txt. Files are often protected by copyright: make sure you have the right to download and use them, and follow each site's terms.