# Website Screenshot API: Full Page, Clip, PDF (`greyridge-signals/website-screenshot-api`) Actor

Website screenshot API. Send URLs, get PNG, JPEG or PDF files back: full page, viewport, clip box, hidden elements, sticky headers pinned once, emoji and CJK fonts. Failed captures are free; you pay only for a stored image. $1.50/1,000.

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

## Pricing

$1.50 / 1,000 screenshot captureds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Full Page, Clip, PDF

Send a list of URLs, get back PNG, JPEG or PDF files plus one dataset row per page. You pay **$0.0015 per stored image**. Pages that time out, return an HTTP error or fail to load come back as an error row with the cause, and cost nothing.

### Use it as a screenshot API

```bash
curl -X POST "https://api.apify.com/v2/acts/greyridge-signals~website-screenshot-api/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com"],"fullPage":true}'
```

Each row has `imageUrl` (a link to the file in the run's key-value store), `status`, `finalUrl` after redirects, `width`, `height`, `bytes`, `elapsedMs` and `error`.

### What it handles

| Problem | Behaviour |
|---|---|
| Fixed or sticky header repeats in full-page shots | Fixed bars are pinned once at the top before capture |
| Lazy images missing | Page is scrolled once, then returned to the top |
| Endless-scroll pages | Height capped at `maxHeight` (default 16,000 px); row says `truncatedHeight: true` |
| Slow trackers causing timeouts | Default `load` plus up to 8 s for network quiet, not a full network-idle wait |
| Timeout | One retry, then an error row naming the timeout and the setting to change |
| Wrong crop | `clip` box returns exactly that rectangle; `width`/`height` in the row match |
| Emoji and CJK text as empty boxes | Noto Color Emoji and Noto CJK fonts are in the image |
| Cookie banners | `hideSelectors` hides any CSS selector before capture |
| Need a document | `format: "pdf"` (A4, backgrounds printed) |

### Input

Only `urls` is required. Everything else has a default: 1280x800 viewport, PNG, 45 s timeout, 4 pages in parallel. See the input form for each option.

### Limits

- Public pages only. No login, no CAPTCHA solving. Sites that block datacenter IPs return an error row and are not charged.
- Page content is whatever the site serves; this actor does not alter it beyond the hide/unstick options above.
- Check the target site's terms before capturing it at volume.

### Cost

`screenshot` event, $0.0015 per stored file. 1,000 captures = $1.50. Failed captures: $0.

# Actor input Schema

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

Pages to capture. Plain strings or objects with a "url" field. A missing https:// is added.

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

png (lossless), jpeg (smaller) or pdf (print layout, A4, backgrounds on).

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

Capture the whole scrollable page. The page is scrolled once first so lazy images load, then fixed and sticky bars are pinned so they do not repeat or float mid-image. Height is capped by Max height.

## `viewport` (type: `object`):

Browser window size in CSS pixels. Default {"width":1280,"height":800}. Width 200-3840, height 200-4000.

## `clip` (type: `object`):

Capture only this rectangle, e.g. {"x":0,"y":0,"width":600,"height":400}. Overrides fullPage.

## `waitUntil` (type: `string`):

When navigation counts as done. load (default) then waits up to 8 seconds for the network to go quiet, so slow trackers do not cause timeouts. networkidle waits for the whole timeout.

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

Extra pause after load, for animations or late widgets. 0-30000.

## `hideSelectors` (type: `array`):

CSS selectors to hide before capture, such as cookie banners ("#cookie-banner", ".chat-widget").

## `timeoutSec` (type: `integer`):

Per-page limit. A timed-out page is retried once, then returned as an error row with the cause and no charge.

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

1-100, jpeg only.

## `maxHeight` (type: `integer`):

Full-page cap so endless-scroll pages do not produce a huge file. Row says truncatedHeight: true when hit.

## `deviceScaleFactor` (type: `integer`):

1 standard, 2 retina-sharp, 3 maximum.

## `concurrency` (type: `integer`):

How many pages are captured at once, 1-8.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://news.ycombinator.com"
  ],
  "format": "png",
  "fullPage": false,
  "viewport": {
    "width": 1280,
    "height": 800
  },
  "waitUntil": "load",
  "waitMs": 0,
  "timeoutSec": 45,
  "quality": 80,
  "maxHeight": 16000,
  "deviceScaleFactor": 1,
  "concurrency": 4
}
```

# Actor output Schema

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

One row per URL (file link on success, cause on failure), in the default dataset.

## `overview` (type: `string`):

Open the run results in the Apify Console.

# 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://example.com",
        "https://news.ycombinator.com"
    ],
    "viewport": {
        "width": 1280,
        "height": 800
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("greyridge-signals/website-screenshot-api").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://example.com",
        "https://news.ycombinator.com",
    ],
    "viewport": {
        "width": 1280,
        "height": 800,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("greyridge-signals/website-screenshot-api").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://example.com",
    "https://news.ycombinator.com"
  ],
  "viewport": {
    "width": 1280,
    "height": 800
  }
}' |
apify call greyridge-signals/website-screenshot-api --silent --output-dataset

```

## MCP server setup

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

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/jSwXLsvSBac2xCfCG/builds/c3wjbQZTbhGxXbup0/openapi.json
