# Download all PDFs linked on a web page

**Use case:** 

Give it a page that links to documents, such as a reports, forms or investor-relations page, and it downloads every linked PDF for you. You get one ZIP link for all files plus a table with each file's name, size, SHA-256 hash and direct download URL. Filter by regex or same domain, and cap file sizes to stay in control.

## Input

```json
{
  "urls": [
    "https://www.irs.gov/forms-instructions-and-publications"
  ],
  "findFilesOnPages": true,
  "fileExtensions": [
    "pdf"
  ],
  "sameDomainOnly": false,
  "maxFilesPerPage": 25,
  "maxFiles": 1000,
  "maxFileSizeMb": 20,
  "respectRobotsTxt": true,
  "maxConcurrency": 5
}
```

## Output

```json
{
  "fileName": {
    "label": "File name",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "sizeMb": {
    "label": "Size (MB)",
    "format": "number"
  },
  "contentType": {
    "label": "Type",
    "format": "text"
  },
  "fileUrl": {
    "label": "Download",
    "format": "link"
  },
  "url": {
    "label": "Original URL",
    "format": "link"
  },
  "sourcePage": {
    "label": "Found on page",
    "format": "link"
  },
  "sha256": {
    "label": "SHA-256",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Bulk File Downloader - PDFs, Images & Docs from URLs or Pages Actor is ready to run with the inputs already set for "Download all PDFs linked on a web page". [Sign up or log in](https://console.apify.com/create-task-from-example/arAomsm05RgQ4gQ8T) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Download all PDFs linked on a web page" task

The Bulk File Downloader - PDFs, Images & Docs from URLs or Pages Actor will start running based on the input automatically. You can also change all the input fields, like URLs, find files on pages, and more, to match your specific use case.

### 3. Receive the "Download all PDFs linked on a web page" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as file name, status, size (mb), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Download all PDFs linked on a web page" task via API](https://apify.com/cuestadata/bulk-file-downloader.md).

## FAQ

### How do I download all PDFs from a page as a ZIP?

Run the task with your page URL. When it finishes, open the SUMMARY record in the key-value store and use zipDownloadUrl to download every file at once.

### How much does downloading PDFs cost?

It costs $0.002 per downloaded file up to 1 MB, plus $0.0005 for each extra MB of a file. Failed or skipped files are free.

### Does it download files behind a login?

No. It only downloads publicly reachable files. You are responsible for having the right to download and use them.

## About this Actor

This example demonstrates how to use [Bulk File Downloader - PDFs, Images & Docs from URLs or Pages](https://apify.com/cuestadata/bulk-file-downloader.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cuestadata/bulk-file-downloader.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cuestadata/bulk-file-downloader.md

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`).
