# Website Screenshot API: Full-Page, Bulk, Mobile (`siddharth_r/website-screenshot`) Actor

Website screenshot API to capture any number of URLs in a real Chromium browser. Full-page or viewport, PNG or JPEG, desktop, tablet or mobile, dark mode, cookie banners hidden. Every screenshot gets a direct image link. $0.85 per 1,000.

- **URL**: https://apify.com/siddharth_r/website-screenshot.md
- **Developed by:** [Siddharth Rajagopalan](https://apify.com/siddharth_r) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 screenshot takens

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

**Website Screenshot API** captures **any number of web pages in a real Chromium browser**: full page or viewport, **desktop, tablet or mobile**, PNG or JPEG, with cookie banners hidden. Every screenshot gets a direct image link. Try it with a few URLs.

Developers use it as a bulk screenshot generator and a URL to image service.

### Website screenshot use cases

- Agencies adding prospects' sites to pitch decks
- QA teams checking pages after a release
- Marketers archiving competitors' landing pages
- Developers adding page thumbnails to an app

### Website screenshot API quick start

**No code:** press **Start**. The form is pre-filled with a working example, and you can download the results as Excel, CSV or JSON.

**From your code:** copy your API token from **Settings > API & Integrations** in Apify Console, then run:

```bash
curl -X POST "https://api.apify.com/v2/acts/siddharth_r~website-screenshot/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com"], "device": "mobile", "fullPage": false}'
```

```python
import requests

rows = requests.post(
    "https://api.apify.com/v2/acts/siddharth_r~website-screenshot/run-sync-get-dataset-items",
    params={"token": "YOUR_API_TOKEN"},
    json={
        "urls": [
            "https://apify.com"
        ],
        "device": "mobile",
        "fullPage": false
    },
    timeout=300,
).json()

for row in rows:
    print(row.get("url"), row.get("screenshotUrl"))
```

The call waits for the run to finish and returns the rows as JSON. It can wait up to 5 minutes, so for bigger runs use the **API** tab to start a run and fetch the results later.

### Example response

This is real output, shortened. Long text and lists are trimmed here, and empty fields are hidden.

```json
[
  {
    "url": "https://apify.com",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/1T1VATM96xX7LnmdL/records/apify-com-eaa380a93b.png?signature=1uiD...",
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "statusCode": 200,
    "width": 390,
    "height": 844,
    "fullPage": false,
    "format": "png"
  }
]
```

### Why use it

- **$0.85 per 1,000 screenshots**, with no start fee. Pages that fail to load are never charged.
- **Cleaner shots.** Cookie and consent banners are hidden before the screenshot is taken.
- **Bulk.** Paste a list of URLs; several pages are captured at once.
- **Real rendering.** JavaScript-heavy sites load as they would for a visitor.

### How to use it

1. Fill in the input fields below. They're pre-filled with an example, so you can also just press **Start**.
2. Wait for the run to finish.
3. Open the **Output** tab, and download the results as Excel, CSV or JSON.
4. Schedule the run if you want fresh results automatically.

### Input

```json
{
  "urls": ["https://apify.com", "https://www.python.org"],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "waitMs": 1500
}
```

`device` can be `desktop` (1280×800), `laptop` (1440×900), `tablet` or `mobile`. You can also set an exact `width` and `height`, `quality` for JPEG, `darkMode`, and `hideCookieBanners`.

### Pricing

**$0.00085 per screenshot**, which is $0.85 per 1,000.

Apify's free plan includes $5 of usage every month, which covers about 5,800 screenshots with this tool. Higher Apify plans pay less per result.

### Limits

Pages behind logins or strong bot protection may show a challenge page instead of the content. Very long pages are captured in full, but extremely tall ones can be slow.

### Website screenshot FAQ

#### Are failed pages charged?

No. Pages that fail to load aren't charged.

#### Can I see the mobile version?

Yes. Set **Device** to *mobile* or *tablet*, or set your own width and height.

#### How long are image links available?

They follow your Apify account's data retention, so download anything you want to keep.

#### Is it legal to use this tool?

It reads only public pages and public APIs, without logging in or bypassing blocks. Rules on using data, especially personal data, differ by country and purpose, so check the ones that apply to you. This isn't legal advice.

### Support

Found a bug or want a feature? Open an issue on the **Issues** tab. If this tool saved you time, a short review helps others find it.

### Run it on Apify

Running this tool on Apify also gives you:

- **Scheduling:** run it daily or weekly with no setup
- **API access:** start runs and fetch results from your own code
- **Integrations:** connect to Make, Zapier, n8n, Google Sheets and more
- **AI agents:** call it through the Apify MCP server
- **Exports:** download results as Excel, CSV, JSON or HTML
- **Monitoring:** get alerted if a run fails

### Related tools

- [SEO Audit Crawler](https://apify.com/siddharth_r/seo-audit-crawler): on-page SEO issues and broken links across a whole site.
- [Local Business Leads](https://apify.com/siddharth_r/local-business-leads): find local businesses by type and city, with contacts and website problems to pitch.
- [Website to Markdown Crawler](https://apify.com/siddharth_r/website-markdown-crawler): clean page text for LLM and RAG pipelines.

# Actor input Schema

## `urls` (type: `array`):

Pages to screenshot.

## `device` (type: `string`):

Screen size and mobile mode. Width and height below override it.

## `fullPage` (type: `boolean`):

Capture the whole scrolling page instead of just the visible screen.

## `format` (type: `string`):

PNG is sharper; JPEG is smaller.

## `quality` (type: `integer`):

1 to 100. Ignored for PNG.

## `width` (type: `integer`):

Viewport width in pixels. 0 uses the device's width.

## `height` (type: `integer`):

Viewport height in pixels. 0 uses the device's height.

## `waitMs` (type: `integer`):

Wait this long after the page loads, for animations and late content.

## `hideCookieBanners` (type: `boolean`):

Hide common cookie and consent pop-ups before the screenshot.

## `darkMode` (type: `boolean`):

Ask the page for its dark theme.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.python.org"
  ],
  "device": "desktop",
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "width": 0,
  "height": 0,
  "waitMs": 1500,
  "hideCookieBanners": true,
  "darkMode": false
}
```

# Actor output Schema

## `results` (type: `string`):

One record per page with a direct link to its image.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://apify.com",
        "https://www.python.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("siddharth_r/website-screenshot").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://apify.com",
        "https://www.python.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("siddharth_r/website-screenshot").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://apify.com",
    "https://www.python.org"
  ]
}' |
apify call siddharth_r/website-screenshot --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,siddharth_r/website-screenshot"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8sUGEMGkrb9L7LMlR/builds/p2ewSuP7eejDcKrzH/openapi.json
