# Capture mobile screenshots of websites on iPhone

**Use case:** 

Shows how pages look on a phone: renders each URL as an iPhone 15 Pro (mobile viewport, retina, iPhone user agent) and saves a JPEG of the first screen. Use it for mobile QA, app-store style previews or checking competitors' mobile pages. Switch the device to Pixel 8 or iPad in the input.

## Input

```json
{
  "urls": [
    "https://github.com",
    "https://www.bbc.com/news"
  ],
  "format": "jpeg",
  "fullPage": false,
  "device": "iphone-15-pro",
  "quality": 80,
  "hideCookieBanners": true,
  "hidePopups": true,
  "blockAds": true,
  "blockVideo": true,
  "waitUntil": "networkidle2",
  "delayMs": 500,
  "scrollToBottom": true,
  "darkMode": false,
  "maxHeight": 20000,
  "pdfFormat": "A4",
  "pdfLandscape": false,
  "pdfPrintBackground": true,
  "timeoutSecs": 60,
  "retries": 1,
  "failOnHttpError": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "Page",
    "format": "string"
  },
  "fileUrl": {
    "label": "File",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "device": {
    "label": "Device",
    "format": "string"
  },
  "chargedEvent": {
    "label": "Charged event",
    "format": "string"
  },
  "width": {
    "label": "Width",
    "format": "integer"
  },
  "height": {
    "label": "Height",
    "format": "integer"
  },
  "statusCode": {
    "label": "Status code",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "loadMs": {
    "label": "Load ms",
    "format": "integer"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

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

The Website Screenshot & PDF: Full-Page, Mobile, No Cookie Banners Actor is ready to run with the inputs already set for "Capture mobile screenshots of websites on iPhone". [Sign up or log in](https://console.apify.com/create-task-from-example/CcrmeBVKMyuuEv5TG) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Capture mobile screenshots of websites on iPhone" task

The Website Screenshot & PDF: Full-Page, Mobile, No Cookie Banners Actor will start running based on the input automatically. You can also change all the input fields, like URLs, output format, and more, to match your specific use case.

### 3. Receive the "Capture mobile screenshots of websites on iPhone" 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 page, file, format, 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 "Capture mobile screenshots of websites on iPhone" task via API](https://apify.com/datapipelabs/website-screenshot-pdf.md).

## FAQ

### What does the mobile screenshot task show?

The mobile screenshot task loads each URL as an iPhone 15 Pro would, with a mobile viewport, retina pixel ratio and iPhone user agent, and saves the first screen as a JPEG.

### How much does a mobile screenshot cost?

A mobile viewport screenshot costs $0.0025 ($2.50 per 1,000), plus a start fee of $0.00005 per GB of run memory. Switching to a full-page capture costs $0.004, and failures are not charged.

### Can I use other phones or tablets?

Yes. The mobile screenshot task's device field also offers Pixel 8, Galaxy S9+, iPad Pro 11 and desktop presets, or a custom width and height.

### Can I capture the full mobile page?

Yes. Turn on fullPage in the mobile screenshot task to capture the whole scrollable page. Full-page captures are billed at $0.004 each instead of $0.0025.

### Are cookie banners removed on mobile screenshots?

The mobile screenshot task hides common cookie consent banners and pop-ups with CSS and never clicks Accept. Some unusual banners may still appear.

### Which image formats are available?

The mobile screenshot task saves JPEG by default with adjustable quality, and can also save PNG or WebP.

## About this Actor

This example demonstrates how to use [Website Screenshot & PDF: Full-Page, Mobile, No Cookie Banners](https://apify.com/datapipelabs/website-screenshot-pdf.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/datapipelabs/website-screenshot-pdf.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/datapipelabs/website-screenshot-pdf.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`).
