# Save full-page PNG and PDF copies of web pages

**Use case:** 

A full-page PNG and an A4 PDF of three public web pages, with the page title, image size and download links for both files. Use it as a template for a visual archive: put your own pages in the list, schedule it weekly, and every run saves a dated picture of each page at the same width.

## Input

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Web_page",
    "https://en.wikipedia.org/wiki/Screenshot",
    "https://en.wikipedia.org/wiki/Responsive_web_design"
  ],
  "format": "png",
  "fullPage": true,
  "mobile": false,
  "deviceScaleFactor": 1,
  "quality": 80,
  "pdf": true,
  "delayMs": 0,
  "timeoutMs": 20000,
  "hideCookieBanners": true,
  "scrollToLoad": true,
  "maxItems": 0,
  "maxConcurrency": 2,
  "onlyNew": false,
  "stateName": "default",
  "notifyWhenEmpty": false,
  "requestIntervalMs": 1000
}
```

## Output

```json
{
  "screenshotUrl": {
    "label": "Download link of the image in the key-value store of the run",
    "format": "string"
  },
  "url": {
    "label": "Address captured (fragment removed)",
    "format": "string"
  },
  "title": {
    "label": "Title of the page (null when the page has none)",
    "format": "string"
  },
  "statusCode": {
    "label": "HTTP status of the page",
    "format": "integer"
  },
  "width": {
    "label": "Width of the image in pixels",
    "format": "integer"
  },
  "height": {
    "label": "Height of the image in pixels",
    "format": "integer"
  },
  "format": {
    "label": "Image format: png, jpeg or webp",
    "format": "string"
  },
  "bytes": {
    "label": "Size of the image file in bytes",
    "format": "integer"
  },
  "pdfUrl": {
    "label": "Download link of the PDF, or null when no PDF was asked for or it failed",
    "format": "string"
  },
  "tookMs": {
    "label": "Time the capture took in milliseconds, robots.txt and page load included",
    "format": "integer"
  }
}
```

## How it works

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

The Website Screenshot API: Full-Page PNG, JPEG and PDF Captures Actor is ready to run with the inputs already set for "Save full-page PNG and PDF copies of web pages". [Sign up or log in](https://console.apify.com/create-task-from-example/WK4l1VIitVNEblNeF) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Save full-page PNG and PDF copies of web pages" task

The Website Screenshot API: Full-Page PNG, JPEG and PDF Captures Actor will start running based on the input automatically. You can also change all the input fields, like website urls, image format, and more, to match your specific use case.

### 3. Receive the "Save full-page PNG and PDF copies of web pages" 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 download link of the image in the key-value store of the run, address captured (fragment removed), title of the page (null when the page has none), 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 "Save full-page PNG and PDF copies of web pages" task via API](https://apify.com/rowcraft/website-screenshot-api.md).

## About this Actor

This example demonstrates how to use [Website Screenshot API: Full-Page PNG, JPEG and PDF Captures](https://apify.com/rowcraft/website-screenshot-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rowcraft/website-screenshot-api.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/rowcraft/website-screenshot-api.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`).
