Bulk File Downloader [USD 1/1K files]
Pricing
from $1.00 / 1,000 files
Bulk File Downloader [USD 1/1K files]
Download files in bulk from a list of links: PDF, Office, ZIP, CSV, images, audio, video. Real type read from the first bytes (an HTML error page served as .pdf is caught), size cap, optional SHA-256 check, retries, every file saved with a ready ZIP link.
Pricing
from $1.00 / 1,000 files
Rating
0.0
(0)
Developer
Useful API
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Bulk File Downloader
Download files in bulk from a list of links: PDFs, Word, Excel and PowerPoint files, ZIP and other archives, CSV, JSON,
images, audio and video. Every file is checked by its real type, read from its first bytes, so an HTML error page
or login page served at a .pdf link is reported as wrong_type instead of being saved as a broken PDF. You get one
row per link, every file in a store of its own, and a ready ZIP link to download them all at once.
What it does
- Type from the bytes: PDF, DOCX, XLSX, PPTX, ODT/ODS/ODP, EPUB, legacy Office, ZIP, GZ, BZ2, XZ, ZST, 7Z, RAR, TAR,
JPEG, PNG, GIF, WebP, AVIF, HEIC, SVG, BMP, TIFF, ICO, MP3, AAC, M4A, WAV, FLAC, OGG, MP4, MOV, WebM, AVI, CSV, TSV,
JSON, XML, TXT, HTML and more. The type is compared with what the link promises (its extension, the name in
Content-Disposition, or a fileContent-Typesuch asapplication/pdf). - HTML pages are not files: unless you allow them, an HTML answer is
wrong_type, not saved and not billed as a file. - Size cap checked from
Content-Lengthbefore the download, and enforced while downloading when the server does not say (or says wrong). Up to 1,000 MB per file. - Optional SHA-256 check per file, and SHA-256 of every file in its row. Duplicates (same bytes) are saved once.
- File names from your own
filename, elseContent-Disposition, else the link; the right extension is added when it is missing; a taken name gets part of the SHA-256. - Retries with backoff after no answer, a server error, a 429 or a too slow transfer (not after a 404 or 403).
- One row per link, never a failed run because of one bad link.
- ZIP of everything: Apify serves the saved files as one ZIP from the link in the run's OUTPUT (and in every row).
Input examples
Plain list:
{ "urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf", "https://calibre-ebook.com/downloads/demos/demo.docx"] }
With names, a checksum and an expected type:
{"files": [{ "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf", "filename": "irs-form-w9.pdf" },{ "url": "https://go.microsoft.com/fwlink/?LinkID=521962", "type": "xlsx" },{ "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", "sha256": "3df79d34abbca99308e79cb94461c1893582604d68329a41fd4bec1885e6adb4" }],"allowedTypes": ["documents", "archives"],"maxFileSizeMb": 200}
allowedTypes takes types (pdf, docx, csv, jpeg ...) or groups: documents, office, archives, images,
audio, video, data. allowedExtensions and allowedContentTypes (application/pdf, image/*) are checked before
the download starts. Turn storeFiles off to check links (type, size, SHA-256, headers) without saving anything.
Output
One row per link (dataset views "Files" and "All fields"):
{"status": "ok","url": "https://www.irs.gov/pub/irs-pdf/f1040s3.pdf","fileName": "f1040s3.pdf","key": "files__f1040s3.pdf","fileUrl": "https://api.apify.com/v2/key-value-stores/Lw0wiXfc1e2xhqz7u/records/files__f1040s3.pdf?signature=...","detectedType": "pdf","detectedMime": "application/pdf","expectedType": "pdf","contentTypeHeader": "application/pdf","contentTypeMatches": true,"bytes": 69852,"sha256": "008cfd3fe3ebd0860452069b90fd0a3d53dda6dd8a5d870278370aa899a63f82","lastModified": "Fri, 02 Jan 2026 17:10:40 GMT","redirects": 0,"attempts": 1,"billedAs": { "event": "file", "megabytes": 0 },"filesStoreId": "Lw0wiXfc1e2xhqz7u","zipUrl": "https://api.apify.com/v2/key-value-stores/Lw0wiXfc1e2xhqz7u/records?prefix=files__&signature=..."}
Statuses: ok, not_found, forbidden, rate_limited, server_error, http_error, wrong_type, too_large,
too_slow, timeout, unreachable, dns_not_found, checksum_mismatch, duplicate, empty, private_address,
blocked_port, invalid_input, store_failed, cost_limit.
The run's OUTPUT record has the totals, filesStoreId and zipUrl.
Where the files are, and for how long
Files are saved in a key-value store created for your run (not the run's default store, so the links never expose your
input). Each row's fileUrl and the zipUrl are signed: they open without an API token. The ZIP link is valid for 7
days. The store is unnamed, so Apify deletes it after your plan's data retention period (7 days on most plans):
download the ZIP or copy the files before then.
Pricing (pay per event)
| Event | Price |
|---|---|
| Run start | USD 0.005 |
| File saved (or checked, with saving off) | USD 0.001 (USD 1 per 1,000) |
| Each started MB beyond a file's first MB | USD 0.0002 (USD 0.20 per GB) |
| Link without a new file (404, wrong type, too large, duplicate, no answer ...) | USD 0.0002 |
The megabyte event counts every byte received for a link, including retries and downloads stopped part way (too slow,
over your size cap, your cost limit), so one link bills at most (retries + 1) x your size cap in megabytes. A download
stopped by the per-file time cap (maxSecondsPerFile) is not retried.
Measured on Apify: 80 IRS PDFs (29 MB) took 29 seconds. Set a maximum cost per run and the Actor stops cleanly before it, keeping every row it saved.
Good to know
- Links are fetched as you give them (no robots.txt check for direct file links). Redirects are followed, at most 5.
- Private, loopback and cloud metadata addresses are refused on every hop, also after a redirect. Ports other than 80, 443, 8080 and 8443 are followed only when your own link names them.
- At most 2 downloads at a time go to one host, with a short pause between them. A host that fails 3 times in a row is skipped for the rest of the run.
- Speed rule: after a 15 s allowance a server must keep sending at least 200 KB per second on average, or the file stops
as
too_slow(and is retried). A file stopped by the per-file time cap is not retried. - User agent:
Mozilla/5.0 (compatible; UsefulApiBot/1.0; +https://apify.com/usefulapi)for every request. Hosts that refuse bots are reported in the row's status, not worked around. - Only download files you have the right to download and keep.