# Website screenshots at an exact size (1200x630)

**Use case:** 

Every image at the same exact pixel size, for link previews, directory thumbnails or slides: a custom 1200x630 viewport, first screen only, one PNG per URL with the final URL, HTTP status and page title. Change the width and height to any size from 200 to 3840 px. URLs that fail are listed and not charged. $0.80 per 1,000 screenshots.

## Input

```json
{
  "urls": [
    "https://example.com",
    "https://apify.com",
    "https://news.ycombinator.com"
  ],
  "html": [
    "<!doctype html><html><head><title>Invoice</title></head><body><h1>Invoice #1001</h1><p>Total: $49.00</p></body></html>"
  ],
  "format": "png",
  "pageSize": "A4",
  "landscape": false,
  "margin": 0,
  "printBackground": true,
  "fullPage": false,
  "device": "custom",
  "viewportWidth": 1200,
  "viewportHeight": 630,
  "deviceScaleFactor": 1,
  "jpegQuality": 80,
  "waitUntil": "load",
  "delayMs": 1000,
  "hideCookieBanners": true,
  "hideSelectors": [],
  "darkMode": false,
  "blockAds": true,
  "timeoutSecs": 30,
  "maxConcurrency": 4
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "finalUrl": {
    "label": "Final URL",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "httpStatus": {
    "label": "HTTP",
    "format": "number"
  },
  "title": {
    "label": "Page title",
    "format": "string"
  },
  "imageUrl": {
    "label": "Image",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "bytes": {
    "label": "Bytes",
    "format": "number"
  },
  "error": {
    "label": "Error",
    "format": "string"
  },
  "width": {
    "label": "width",
    "format": "number"
  },
  "height": {
    "label": "height",
    "format": "number"
  },
  "pageHeight": {
    "label": "pageHeight",
    "format": "integer"
  },
  "imagesPending": {
    "label": "imagesPending",
    "format": "integer"
  },
  "truncatedAt": {
    "label": "truncatedAt",
    "format": "integer"
  },
  "captureTiles": {
    "label": "captureTiles",
    "format": "integer"
  },
  "captureSeconds": {
    "label": "captureSeconds",
    "format": "number"
  },
  "loadState": {
    "label": "Load state",
    "format": "string"
  },
  "navigationRetries": {
    "label": "Redirect retries",
    "format": "integer"
  },
  "source": {
    "label": "source",
    "format": "string"
  },
  "htmlIndex": {
    "label": "htmlIndex",
    "format": "integer"
  },
  "name": {
    "label": "name",
    "format": "string"
  },
  "pageSize": {
    "label": "pageSize",
    "format": "string"
  },
  "landscape": {
    "label": "landscape",
    "format": "boolean"
  },
  "pages": {
    "label": "pages",
    "format": "integer"
  }
}
```

## How it works

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

The Website Screenshot API: Screenshot URL to PNG, JPEG or PDF Actor is ready to run with the inputs already set for "Website screenshots at an exact size (1200x630)". [Sign up or log in](https://console.apify.com/create-task-from-example/udjXjdivaQOfrzt8m) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Website screenshots at an exact size (1200x630)" task

The Website Screenshot API: Screenshot URL to PNG, JPEG or PDF Actor will start running based on the input automatically. You can also change all the input fields, like URLs, HTML strings, and more, to match your specific use case.

### 3. Receive the "Website screenshots at an exact size (1200x630)" 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 URL, final url, status, 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 "Website screenshots at an exact size (1200x630)" task via API](https://apify.com/hiver/bulk-website-screenshots.md).

## About this Actor

This example demonstrates how to use [Website Screenshot API: Screenshot URL to PNG, JPEG or PDF](https://apify.com/hiver/bulk-website-screenshots.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/hiver/bulk-website-screenshots.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/hiver/bulk-website-screenshots.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`).
