Bulk Image Downloader: Save Images from Web Pages or URLs
Pricing
Pay per event
Bulk Image Downloader: Save Images from Web Pages or URLs
Paste web page or image URLs and get the images saved as files, each with a download link, size, width and height, alt text and SHA-256. Optional linked PDFs, CSVs or ZIPs. $0.001 per file saved ($1 per 1,000); duplicates, filtered and failed files are free. Plus $0.00005 per run start.
Pricing
Pay per event
Rating
0.0
(0)
Developer
fecklesspleb
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Bulk Image and File Downloader
Download images and files in bulk. Give it direct file URLs, web page URLs, or a mix. Direct URLs are downloaded as they are; for page URLs the Actor collects images from img and source tags (srcset / data-srcset at the largest size, src, data-src, data-lazy-src) plus og:image / twitter:image, and, if you want, linked files such as PDF, CSV, ZIP or DOCX. Each file is saved to an Apify key-value store and listed in the dataset with a download link, content type, size, image width and height, alt text and SHA-256 hash.
At a glance: $1.00 per 1,000 files saved ($0.001 per file), plus the Actor start event. Pay per event with no subscription, set a maximum cost per run, export the dataset to JSON, CSV or Excel, or call it from the Apify API, Make, Zapier or n8n.
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-image-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.
Identical files are saved once (de-duplicated by SHA-256). Filters skip tiny images, narrow images and oversized files. robots.txt is checked on every request (RFC 9309).
Quick start (Try it)
- Keep the prefilled page
https://www.python.org/(or paste your own page or image URL). - Leave What to download on Images and Max files per page at 5 for a cheap first run.
- Click Start. You get dataset rows plus files in Storage → Key-value store.
- Open any
fileUrl, or download records from the run’s key-value store.
Empty input, the schema default/prefill, and the example input all use the sample page above. You are charged the start event plus $0.001 for each file actually saved.
Page URL vs direct file URL
| You paste… | What happens |
|---|---|
| A web page (for example a product page) | HTML is parsed; images (and optional linked files) on that page are downloaded, up to Max files per page. |
| A direct file (an address that returns an image, PDF or other file) | That response is saved as a file (not limited by Max files per page), subject to your size/type filters. |
| Both in one list | Mix freely; exact duplicate URLs in the input are fetched once. |
No scheme? An address without http:// or https:// gets https:// added. To read URLs from a CSV file, a public Google Sheet or another Actor's dataset, see Other URL sources.
For JavaScript-heavy pages where images appear only after scripts run, this Actor will not see them (it does not run a browser). Workaround: collect the image URLs another way, then paste those direct URLs here.
Use cases
- Archive product photos, press-kit images or logos from pages you have rights to.
- Collect linked PDFs (reports, manuals, filings) from a page (
fileTypes: "custom",extensions: ["pdf"]). - Build an image dataset for computer vision from openly licensed sources.
- Migrate media from an old CMS by downloading images from a list of pages (raise Max files per page).
- Check image sizes and dimensions across a site for performance work.
Input
Default-shaped page download:
{"urls": [{"url": "https://www.python.org/"}],"fileTypes": "images","maxFilesPerPage": 5}
Mix a page and a direct image, and skip tiny files:
{"urls": [{"url": "https://www.python.org/"},{"url": "https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg"}],"fileTypes": "images","minSizeKb": 2,"maxFileSizeMb": 10}
Linked PDFs from a page:
{"urls": [{"url": "https://www.python.org/downloads/"}],"fileTypes": "custom","extensions": ["pdf"],"maxFilesPerPage": 20}
Output example
Real output from a test run (the link is a signed Apify storage URL):
{"sourceUrl": "https://www.python.org/static/img/python-logo.png","pageUrl": "https://www.python.org/","finalUrl": "https://www.python.org/static/img/python-logo.png","fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/9c121e619bfe02eaba582d70.png?signature=...","key": "9c121e619bfe02eaba582d70.png","contentType": "image/png","sizeBytes": 15770,"width": 580,"height": 164,"sha256": "9c121e619bfe02eaba582d7080eea46fd53ec0b50717e6794a948fada4ae8f3c","altText": "python™","downloadedAt": "2026-10-28T04:05:00+00:00"}
How to download the files
- Each dataset row’s
fileUrlis a signed link to that file in the key-value store. - In Apify Console: open the run → Storage → Key-value store → download records individually or use the store’s bulk download.
- Optional: set Key-value store name to save into a named store (kept indefinitely) instead of the run’s default store.
- This Actor does not produce a ZIP archive. Use the key-value store download or each
fileUrl.
A RUN_SUMMARY record in the key-value store lists counts (saved, duplicates, filtered, failed, pages) and which store was used. When the cross-run skip is on it also has alreadyDownloaded and skipState; with a preset, preset; with a dataset or CSV source, inputSources.
Dataset fields (each saved file)
| Field | Meaning |
|---|---|
sourceUrl | The file URL that was requested (from your input or discovered on a page). |
pageUrl | The page it was found on, or null for a direct file URL. |
finalUrl | URL after redirects. |
fileUrl | Signed Apify key-value store link to the saved bytes. |
key | Key-value store record name (<sha256-prefix>.<ext>). |
contentType | Response Content-Type (may be missing/null). |
sizeBytes | Body length in bytes. |
width / height | Decoded pixel size for raster images; often null for SVG. |
sha256 | Hex SHA-256 of the body (also used for de-duplication). |
altText | alt from an <img> when discovered on a page; otherwise null. |
downloadedAt | UTC ISO timestamp when the row was written. |
RUN_SUMMARY in the key-value store repeats counts: saved, duplicates, filtered, failed, pages, plus inputUrls, keyValueStore, stoppedByCostLimit. A free status row (statusRow: true) appears only when no file was saved.
Pricing
Pay per saved file: $1.00 per 1,000 files ($0.001 per file event), plus the Actor start event (apify-actor-start). On the current listing the start event is $0.00005 (one event per GB of memory, minimum one event; the default run memory is 256 MB, so one start event).
| What | Charged? |
|---|---|
| Each file saved to the key-value store and listed in the dataset | Yes — $0.001 (file) |
| Actor start | Yes — start event (apify-actor-start) |
| Pages fetched, duplicate bodies, filtered/skipped files, failed downloads, status rows | Not charged as file events |
| Files skipped because an earlier run already saved them (cross-run skip) | Not charged |
Duplicates, filtered files and failed downloads are free per the file event description. Set Maximum cost per run and the Actor stops cleanly when that limit is reached.
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 download every file, 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 file is still fetched and hashed. A file whose SHA-256 an earlier run already saved and was charged for is not saved, not listed and not charged. The dataset lists only new files. RUN_SUMMARY.alreadyDownloaded counts the skipped ones, and the log and status message say N already downloaded in earlier runs (not charged). If nothing new was found, the dataset gets one free status row that starts Not charged: no new file. instead of being empty.
The history is kept in a named key-value store in your account, Skip state store name (skipStateStoreName, default bulk-image-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 files, which only means those files are saved and charged once more later.
Changed content at the same URL has a new SHA-256, so it counts as new. Only files saved and charged are remembered; failed, filtered and cost-capped files 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 exampleproduct.image). 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 (https://www.python.org/), 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.
How this was tested: the Google Sheet path is covered in two separate live runs, not one end-to-end Sheet run. One run checked that a public Sheet link is read and its URLs parsed; another downloaded 3 of 3 image files from a public CSV URL.
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, plus skipAlreadyDownloaded: "always" if the scraper sees the same images every time.
Presets
preset fills fields you left at their default. A field you changed keeps your value. Each preset caps the files saved, 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 | maxFilesPerPage 5, maxFiles 5 | $0.00005 + 5 × $0.001 = $0.00505 |
largeImages | minWidth 600, minSizeKb 20, maxFilesPerPage 20, maxFiles 9 | $0.00005 + 9 × $0.001 = $0.00905 |
pageDocuments | fileTypes custom, extensions pdf/csv/xlsx/docx/zip, maxFilesPerPage 20, maxFiles 9 | $0.00905 |
newFilesOnly | skipAlreadyDownloaded always, maxFiles 9 | $0.00905 |
Raise maxFiles yourself when you need more; your value wins over the preset.
Call it from an API or an AI agent
Replace <YOUR_APIFY_TOKEN> with your token and keep it in a secret or credential. maxTotalChargeUsd caps what one run can cost.
One request that starts a run, waits for it and returns the dataset items (if the run takes longer than 300 seconds, the response is HTTP 408 and the run keeps going):
curl -X POST \-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"urls": [{"url": "https://www.python.org/"}], "maxFilesPerPage": 5}' \"https://api.apify.com/v2/actors/fecklesspleb~bulk-image-downloader/run-sync-get-dataset-items?maxTotalChargeUsd=0.05&format=json"
Python (pip install apify-client, written against version 3.5):
from apify_client import ApifyClientclient = ApifyClient('<YOUR_APIFY_TOKEN>')run = client.actor('fecklesspleb/bulk-image-downloader').call(run_input={'urls': [{'url': 'https://www.python.org/'}], 'maxFilesPerPage': 5},max_total_charge_usd=0.05,)for item in client.dataset(run.default_dataset_id).iterate_items():print(item.get('fileUrl') or item.get('message'))
JavaScript (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });const run = await client.actor('fecklesspleb/bulk-image-downloader').call({ urls: [{ url: 'https://www.python.org/' }], maxFilesPerPage: 5 },{ maxTotalChargeUsd: 0.05 },);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((i) => i.fileUrl ?? i.message));
AI agents: the Apify MCP server can expose this Actor as a tool. Add https://mcp.apify.com?tools=fecklesspleb/bulk-image-downloader to an MCP client. Calling once per URL works, but each call is a separate run with its own start event, so batch URLs into one run when you can.
Run it on a schedule
Use this when you want the same download to happen every day or every week, then hand the results to a spreadsheet or 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-image-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 product or press-kit pages (and any direct image URLs) in the urls field and run it each morning. The Actor downloads files into the key-value store and writes a dataset row for each file saved in that run, with fileUrl, size, dimensions and SHA-256. Runs started by an Apify Schedule skip files that an earlier run already saved (same SHA-256), so a daily or weekly schedule saves and charges only new files; see Recurring runs. Set Key-value store name if you want a named store that is kept indefinitely (see Output). 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.
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. n8n starts runs through the API, so set skipAlreadyDownloaded to always to get only new files each time (the auto default applies only to runs started by an Apify Schedule):
{"urls": [{"url": "https://www.python.org/"}],"fileTypes": "images","maxFilesPerPage": 5,"skipAlreadyDownloaded": "always","skipStateStoreName": "n8n-weekly-images"}
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.
FAQ
Why did I only get 5 images from a busy page?
Max files per page defaults to 5 so Try-it stays cheap. Raise it (for example 50 or 200) for galleries. Direct file URLs are not limited by this field; use Max files for a global cap.
Can I download a whole site / follow links?
No. Each page URL is one HTML fetch. Paste a list of pages, or feed page URLs from another tool. Site-wide crawling is not built in.
Do I get a ZIP?
No. This Actor does not create a ZIP. Download from the key-value store in Console, or use each fileUrl.
Why was a URL not saved (and not charged as a file)?
Duplicate content (same SHA-256), files an earlier run already saved (when the cross-run skip is on), files outside your size/width filters, HTTP failures, robots.txt blocks, private/loopback addresses, and (when images are requested) responses whose bytes are not an image are not saved and do not raise a file charge. If nothing was saved, the dataset still gets one status row explaining why (that status row is not a file charge).
Does it run JavaScript / see CSS backgrounds?
No. It reads the HTML as delivered. Lazy-load attributes (data-src, data-lazy-src, data-srcset) and srcset work when present in that HTML. Script-injected images and CSS background-image are not collected — pass direct image URLs instead.
What if a direct file URL redirects to a login page?
If the URL path looks like a file you asked for (an image or a custom extension) and it redirects to an HTML login page, that URL is not scraped and nothing from the login page is saved or charged as a file. It counts as failed. Detection is local-tested: at least one redirect, and a login path segment (for example login, signin, wp-login) or a password input on the final page. Ordinary page URLs you paste are still read as pages.
What counts as “not an image”?
When What to download is Images (or Both), a candidate kept as an image (image/* type or an image extension) is checked by its bytes. Empty bodies, HTML, JSON, XML, plain text, PDF and ZIP are not saved and are not charged; the status/failed reason looks like not an image (content type …, the response is …), skipped. Real image bytes are accepted even with a missing or wrong Content-Type. Requested custom extensions (custom / both) skip this check.
Can a direct URL that returns HTML be saved as a file?
No. A response whose Content-Type is text/html or application/xhtml+xml is treated as a web page (parsed for images/links) when that is what the fetch returned as HTML, or fails with got an HTML page instead of a file if it appears in the file-save path. Soft-404 HTML bodies served under an image Content-Type are rejected by the non-image check above.
How do size and width filters work?
Min size (KB) and Max file size (MB) apply to the downloaded body. Too-small or too-large responses are filtered (not charged as a file) and counted in filtered. Min width skips images whose decoded width is below the threshold. Filtered URLs do not add a per-URL reason string to the status row (only the filtered count); failed URLs (robots, non-image, HTTP errors, login redirect) do.
What does robots.txt do here?
Every request and every redirect hop checks robots.txt (RFC 9309). If the URL is disallowed — or robots.txt returns 429/5xx / is unreachable (treated as disallow) — the URL is not fetched further, counts as failed, and is free. A free status row includes the reason (for example robots.txt disallows it) when nothing was saved.
Limits
- No JavaScript rendering, so images added by scripts after load are not found. Server-rendered pages, lazy-load attributes and srcset work.
- CSS background images are not collected.
- No login support.
- When images are requested, a response that is not an image (for example an HTML error page, JSON or an empty body at an image URL) is not saved and is not charged as a file. It counts as failed (
not an image ...). - On the Apify platform, pages and files whose address is private, loopback or link-local (also after a redirect) are not downloaded and are not charged as a file. They count as failed (
not fetched: private, loopback and link-local addresses are not allowed). - Default run memory is 256 MB (configurable from 128 MB to 4 GB).
- HTTP 429, 500, 502, 503 and 504 responses and timeouts (no response within 30 s) are retried up to 3 attempts; up to 10 redirects are followed, with robots.txt checked on each hop.
What happens with invalid input? If the input is not a JSON object, or a field has the wrong type (for example a number where a list of URLs is expected, or "abc" for a number), the run fetches nothing and ends with one status row: Invalid input, nothing was fetched and no results were charged: <reason>. No file events are charged for it; the Actor start event still applies.
Is this legal?
The Actor downloads only public files from URLs you give it and obeys robots.txt. Images and documents are usually protected by copyright: make sure you have the right to download and use them, and follow each site's terms.