# Take mobile screenshots of documentation websites

**Use case:** 

Full-page phone-width screenshots of the home pages of Python, Node.js and MDN Web Docs as small JPEG files: each row has the page title, the image size and a download link. Replace the addresses with your own pages to build a mobile preview set; turn on the PDF option to get a printable copy of each page as well.

## Input

```json
{
  "urls": [
    "https://www.python.org",
    "https://nodejs.org",
    "https://developer.mozilla.org"
  ],
  "format": "jpeg",
  "fullPage": true,
  "mobile": true,
  "deviceScaleFactor": 1,
  "quality": 70,
  "pdf": false,
  "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 "Take mobile screenshots of documentation websites". [Sign up or log in](https://console.apify.com/create-task-from-example/VqaLptdx2P91j7YTs) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Take mobile screenshots of documentation websites" 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 "Take mobile screenshots of documentation websites" 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 "Take mobile screenshots of documentation websites" 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`).
