# Website Screenshot API — Full-Page PNG, JPEG & PDF

**Use case:** 

Capture full-page or viewport screenshots and PDFs of any URL. Smart waiting, cookie-banner removal, device presets. You only pay for successful captures.

## Input

```json
{
  "url": "https://example.com",
  "format": "png",
  "fullPage": true,
  "device": "desktop_1920",
  "waitUntil": "load",
  "delayMs": 0,
  "dismissCookieBanners": true,
  "jpegQuality": 80,
  "maxFullPageHeightPx": 20000,
  "failOnHttpError": false
}
```

## Output

```json
{
  "type": {
    "label": "Record",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "format": {
    "label": "Format",
    "format": "text"
  },
  "assetUrl": {
    "label": "Asset",
    "format": "link"
  },
  "widthPx": {
    "label": "Width",
    "format": "number"
  },
  "heightPx": {
    "label": "Height",
    "format": "number"
  },
  "bytes": {
    "label": "Bytes",
    "format": "number"
  },
  "durationMs": {
    "label": "Duration (ms)",
    "format": "number"
  },
  "code": {
    "label": "Error code",
    "format": "text"
  },
  "message": {
    "label": "Message",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Website Screenshot & PDF - Reliable Capture](https://apify.com/amazing_wizdom/web-screenshot-capture) with a specific input configuration. Visit the [Actor detail page](https://apify.com/amazing_wizdom/web-screenshot-capture) to learn more, explore other use cases, and run it yourself.