# Website Screenshot & Site Audit / Launch Checklist (`ondutylabs/website-launch-audit`) Actor

Website screenshot (full page, mobile, tablet) plus site audit / launch checklist: broken links, console errors, SEO tags, SSL and domain expiry, and a fix prompt to paste into Cursor or Lovable. Every check can be turned off for screenshot-only runs. Failed pages are never charged.

- **URL**: https://apify.com/ondutylabs/website-launch-audit.md
- **Developed by:** [kilde](https://apify.com/ondutylabs) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 screenshots

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/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 & Site Audit / Launch Checklist

**Website screenshot API plus a site audit / launch checklist in one Actor.** Give it URLs and it takes full-page screenshots (desktop, mobile, tablet) with one shared Chromium browser, then checks each page before you launch: console errors, failed requests, broken links, mobile horizontal overflow, SEO tags, missing image alt text, robots.txt / sitemap.xml / llms.txt, SSL and domain expiry, and optionally speed. Every problem comes with a plain-language fix, and the Actor writes a **fix prompt** you can paste into Cursor, Lovable, Bolt or any AI coding tool. Each run also saves one HTML report.

Every check can be switched off. Turn them all off and it is a plain website screenshot tool.

No AI is used inside the Actor. Problems, fixes and the fix prompt come from fixed rules and templates, so the same page gives the same result.

### Use cases

- **Pre-launch check for a site built with AI tools (Cursor, Lovable, Bolt, v0 and similar).** Run it on your staging or live URL, then paste the `fixPrompt` back into the tool. See [Example: check an AI-built site before launch](#example-check-an-ai-built-site-before-launch).
- **Website screenshots at scale.** Full-page, mobile and tablet captures, a region by CSS selector, a height limit, PNG / JPEG / WebP. See [Screenshot only](#screenshot-only-all-checks-off).
- **Agency or freelancer hand-over checks.** Run the same checklist on every client site and send the HTML report.
- **Visual and layout checks.** Compare desktop and mobile captures and catch pages that scroll sideways on a phone.
- **Link checks for AI-written pages.** See [Check source links in AI-written pages](#check-source-links-in-ai-written-pages).
- **Monitoring spot checks.** Schedule a run and watch SSL certificate and domain expiry dates.

### What it checks

| Check (input toggle) | What it reports |
|---|---|
| `checkConsoleErrors` | JavaScript errors in the browser console while the page loads |
| `checkFailedRequests` | Images, scripts and other files that fail to load (404, 500, blocked). Same-host failures are `critical`, except a 404 on a background `fetch` / XHR call, which is `warning`. Failures from other hosts (external services) are `warning` |
| `checkLinks` | Status of links on the page: `dead` (404, 410, DNS failure, connection refused) is `critical`, `soft_dead` (a 200 page that says "not found", or a redirect to another site's home page) is `warning`. Uses the same verdict logic as the [URL status checker](https://apify.com/ondutylabs/url-status-checker). Limit per page: `maxLinksPerPage` |
| `checkMobileOverflow` | Page content wider than a 390 px phone screen, with the elements that stick out |
| `checkSeo` | title, meta description, h1, canonical, og:title / og:description / og:image, viewport, html lang, robots meta (`noindex` is `critical` on the home page, path `/`, and `warning` on other pages). Also reads og:image, og:title and twitter:image from the [raw HTML](#link-preview-tags-raw-html-vs-javascript) |
| `checkImageAlt` | How many images have no `alt` attribute |
| `checkSiteFiles` | Whether `robots.txt`, `sitemap.xml` and `llms.txt` exist at the site root |
| `checkSsl` | HTTPS certificate expiry (expired = critical, 7 days or less = warning, 8-14 days = info, 15+ days = not reported, because auto-renewing certificates routinely sit in that range), plain-HTTP sites, untrusted certificates |
| `checkDomainExpiry` | Domain expiry date from public RDAP servers |
| `checkSpeed` | Google PageSpeed Insights mobile performance score. Slow, so **off by default** |

Severity: `critical` = fix before launch, `warning` = should fix, `info` = nice to have.

### Link preview tags: raw HTML vs JavaScript

Most link-preview crawlers do not run JavaScript. A tag that a single-page app adds in the browser looks fine in DevTools but is not seen when the link is shared. So with `checkSeo` on, the Actor makes one extra HTTP GET of the URL (following redirects) and compares the HTML the server sends with the rendered page:

| Situation | Reported as |
|---|---|
| `og:image`, `og:title` or `twitter:image` is only there after JavaScript runs | `warning`: "... added by JavaScript, most link-preview crawlers won't see it" |
| No `og:image` in the raw HTML, but `twitter:image` is there | `info` |
| `og:image` is nowhere | `warning`: "No og:image" |
| The GET fails (timeout, 403, 404, not HTML, too many redirects) | Not treated as "missing". `audit.rawHtml.checked` is `false` with a `reason`, and the tags are judged on the rendered page only |

The result is in `audit.rawHtml`: `checked`, `reason`, `httpStatus`, `finalUrl`, `ogImage`, `ogTitle`, `twitterImage`. The request uses a desktop browser User-Agent; a site that sends different HTML to specific preview crawlers can behave differently for them. No extra charge.

### How to turn checks off

Each check is a boolean input. Set the ones you do not want to `false`:

```json
{
  "urls": ["https://example.com"],
  "checkLinks": false,
  "checkSsl": false,
  "checkDomainExpiry": false
}
```

Those three are skipped; the other checks still run. Link checks are the slowest part of a run (requests to one host are 1 second apart), so turn `checkLinks` off or lower `maxLinksPerPage` for faster runs.

If **all ten** toggles are `false`, the Actor logs "screenshot-only mode" and does no audit work. The result rows then have `audit`, `issues` and `fixPrompt` set to `null`, and no audit charge is made.

### Screenshot only (all checks off)

```json
{
  "urls": ["https://example.com", "https://example.org"],
  "devices": ["desktop", "mobile"],
  "fullPage": true,
  "imageFormat": "webp",
  "quality": 80,
  "checkConsoleErrors": false,
  "checkFailedRequests": false,
  "checkLinks": false,
  "checkMobileOverflow": false,
  "checkSeo": false,
  "checkImageAlt": false,
  "checkSiteFiles": false,
  "checkSsl": false,
  "checkDomainExpiry": false,
  "checkSpeed": false
}
```

Screenshot features:

- Devices: `desktop` 1440x900, `mobile` 390x844 (touch, mobile user agent), `tablet` 820x1180. One image per device per URL.
- `fullPage`: the whole scrollable page, not just the first screen. Images are cut at 30,000 px and then marked `truncated: true`. Use `maxHeight` (max 30,000) for a lower limit. Long pages are billed per started 5,000 px of image height as one `screenshot` event (12,000 px = 3 events, minimum 1); the number charged is shown in `chargedScreenshots`.
- `selector`: capture only the first element that matches a CSS selector, for example `#pricing` or `header`. If nothing matches, that capture fails and is not charged.
- `waitUntil`: `load`, or `networkidle` (waits up to 15 s for traffic to settle; better for single-page apps). `extraDelaySecs` adds a fixed wait before the shot.
- `scrollToLoadLazyImages` (on by default): scrolls through the page once so lazy images appear, then returns to the top.
- `flattenFixedElements` (on by default): fixed and sticky elements such as menus and chat buttons appear once instead of repeating down a full-page image.
- `hideCookieBanners` (on by default): hides common cookie banners with CSS. **It only hides them; it never clicks a consent button.**
- `deviceScaleFactor`: 1 or 2 (retina).
- The Docker image installs Noto CJK and Noto Color Emoji fonts for Korean, Japanese, Chinese and emoji text.

### Example: check an AI-built site before launch

You built a site with Cursor or Lovable and want to know what is wrong before you share it. Run:

```json
{
  "urls": ["https://my-shop.example", "https://my-shop.example/pricing"],
  "devices": ["desktop", "mobile"],
  "fullPage": true,
  "maxLinksPerPage": 20
}
```

Then open the HTML report (link in the run log and in `reportUrl`) to see the screenshots next to the problem list. Copy the `fixPrompt` of each row into your AI tool. It asks the tool to fix only the listed items and to tell you which files it changed.

Typical findings on AI-built sites, all covered by the checks above: missing `og:image` (shared links show no preview), no viewport tag, `noindex` left on from a staging setup, images that return 404 after a deploy, content wider than a phone, no `sitemap.xml`.

#### Example `fixPrompt`

The text below is what the template produces for a page with these problems (values are illustrative):

```
Please fix these problems found by a pre-launch check of my website (https://my-shop.example). Change only what is needed for each item and do not redesign anything else.

1. [critical] Image failed to load (404): https://my-shop.example/images/hero.png. Check the file path and that the file is uploaded to your site. Fix the address or remove the reference.
2. [critical] No viewport meta tag. Add <meta name="viewport" content="width=device-width, initial-scale=1"> so the page works on phones.
3. [warning] No og:image. Add <meta property="og:image" content="https://your-site/preview.png"> (1200x630). Without it, shared links show no picture.
4. [warning] Page is wider than a phone screen (716px content in a 390px screen). Make wide elements responsive: use max-width: 100% and avoid fixed pixel widths. Visitors on phones must scroll sideways otherwise.

Optional improvements:
5. No llms.txt. Optional: add /llms.txt, a short plain-text summary of your site for AI assistants.

After the changes, list which files you edited.
```

Critical and warning items are numbered first; `info` items go under "Optional improvements". If a page has no problems, `fixPrompt` is `null`.

### Check source links in AI-written pages

AI assistants and research agents add source links to what they write, and some of those links do not work. A 2026 study of commercial LLMs and deep research agents found that 5–18% of their citation URLs did not resolve ([Rao et al., 2026](https://arxiv.org/abs/2604.03173)). The same figure is quoted in the [URL status checker](https://apify.com/ondutylabs/url-status-checker) README; this README did not re-verify it.

If a page on your site was written or filled in by an AI tool, point this Actor at the page with `checkLinks` on and a high `maxLinksPerPage` (up to 200). Then read the `links` part of `audit` (or the "Broken link" lines in `issues`):

| Link result | What it usually means | What to do |
|---|---|---|
| `dead` | 404, 410, DNS failure or refused connection | The page is gone or never existed. Replace the link or remove the claim. |
| `soft_dead` | The page answers 200 but says "not found", or redirects to another site's home page | Open it yourself, then update or remove it. |
| other verdicts (`alive`, `bot_blocked`, `unknown`) | Working, refusing automated requests, or undecided | Not turned into problems. They stay in `audit.links.results` for you to read. |

Limits: only the first `maxLinksPerPage` links in page order are checked, and the Actor does not read what the linked page says, so it cannot tell whether a source supports the claim. There is no Wayback Machine lookup here; use the [URL status checker](https://apify.com/ondutylabs/url-status-checker) with `checkWayback` for that.

#### Let an AI agent run the audit (MCP)

Through the Apify MCP server, an agent can call this Actor as a tool. Add this server to your MCP client. On first use, a browser window opens so you can sign in to Apify:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=ondutylabs/website-launch-audit"
    }
  }
}
```

The tool appears as `ondutylabs--website-launch-audit`. Ask the agent to run it on your staging URL and apply the returned `fixPrompt`.

### Input

All fields except `urls` are optional.

| Field | Default | Description |
|---|---|---|
| `urls` | required | Pages to process. `https://` is added if missing. Login pages are not supported. |
| `devices` | `["desktop"]` | `desktop`, `mobile`, `tablet`. One screenshot per device. |
| `fullPage` | `false` | Capture the whole scrollable page. |
| `selector` | empty | CSS selector of a region to capture. |
| `maxHeight` | `0` | Cut images at this height in px (0 = no limit; the 30,000 px cap still applies, which is also the maximum value). |
| `imageFormat` | `png` | `png`, `jpeg` or `webp`. |
| `quality` | `80` | 1–100 for JPEG / WebP. |
| `deviceScaleFactor` | `1` | 1 or 2. |
| `waitUntil` | `load` | `load` or `networkidle`. |
| `extraDelaySecs` | `0` | Extra wait before the shot (0–30). |
| `scrollToLoadLazyImages` | `true` | Scroll once to trigger lazy images, then return to the top. |
| `flattenFixedElements` | `true` | Show fixed / sticky elements once. |
| `hideCookieBanners` | `true` | Hide cookie banners with CSS. Never clicks. |
| `timeoutSecs` | `45` | Page timeout (10–180). Timed-out pages are not charged. |
| `requestIntervalSecs` | `1` | Minimum pause between page loads on the same host. Values below 1 are raised to 1. |
| `engine` | `playwright` | Capture engine. Only Playwright Chromium is available. |
| `checkConsoleErrors`, `checkFailedRequests`, `checkLinks`, `checkMobileOverflow`, `checkSeo`, `checkImageAlt`, `checkSiteFiles`, `checkSsl`, `checkDomainExpiry` | `true` | Audit toggles, see [What it checks](#what-it-checks). |
| `checkSpeed` | `false` | PageSpeed Insights mobile test. Slow (up to a minute per page). |
| `maxLinksPerPage` | `20` | Links to check per page (1–200). |
| `googleApiKey` | empty | Optional PageSpeed Insights API key for a higher quota. Only used when `checkSpeed` is on. |

If `checkMobileOverflow` is on and `mobile` is not in `devices`, one extra mobile page load is made (no screenshot is taken and nothing extra is charged).

### Output

One dataset row per input URL, plus the screenshots and an HTML report in the run's key-value store. Example row (values are illustrative; the structure follows the Actor's output):

```json
{
  "url": "https://my-shop.example",
  "status": "ok",
  "finalUrl": "https://my-shop.example/",
  "httpStatus": 200,
  "title": "My Shop",
  "error": null,
  "screenshots": [
    {
      "device": "mobile",
      "viewport": "390x844",
      "key": "001-my-shop-example-mobile.png",
      "url": "https://api.apify.com/v2/key-value-stores/<storeId>/records/001-my-shop-example-mobile.png",
      "format": "png",
      "imageWidth": 390,
      "imageHeight": 5120,
      "bytes": 912345,
      "truncated": false,
      "charged": true
    }
  ],
  "chargedScreenshots": 1,
  "capturedAt": "2026-11-30T08:11:41+00:00",
  "audit": {
    "consoleErrors": { "count": 0, "items": [] },
    "seo": { "title": "My Shop", "description": null, "h1Count": 1, "canonical": null, "ogImage": null, "viewport": "width=device-width, initial-scale=1", "lang": "en", "robotsMeta": null },
    "images": { "total": 12, "missingAlt": 3 },
    "ssl": { "checked": true, "valid": true, "daysUntilExpiry": 84 }
  },
  "issues": [
    {
      "severity": "warning",
      "check": "seo",
      "title": "No og:image",
      "detail": null,
      "fix": "Add <meta property=\"og:image\" content=\"https://your-site/preview.png\"> (1200x630). Without it, shared links show no picture."
    }
  ],
  "issueCounts": { "critical": 0, "warning": 1, "info": 0 },
  "fixPrompt": "Please fix these problems found by a pre-launch check of my website (https://my-shop.example). ...",
  "auditedPage": true,
  "reportUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/report.html"
}
```

(`audit` is shortened here. Full runs also contain `failedRequests`, `links`, `mobileOverflow`, `siteFiles`, `domain` and, if turned on, `speed`.)

| Field | Description |
|---|---|
| `url`, `finalUrl` | The URL you gave and where it ended up after redirects |
| `status` | `ok`, `failed`, `timeout`, `bot_blocked`, `login_required` or `invalid_url` |
| `httpStatus`, `title` | HTTP status of the page and its `<title>` |
| `error` | What went wrong when `status` is not `ok`, otherwise `null` |
| `screenshots[]` | One entry per device: `device`, `viewport`, `key`, `url` (image link), `format`, `imageWidth`, `imageHeight`, `bytes`, `truncated`, `charged` |
| `chargedScreenshots` | Number of screenshots charged for this URL |
| `failedDevices[]` | Devices whose capture failed while at least one other device worked (empty `[]` when every device succeeded). Each entry has `device`, `status` and `error`. See below |
| `capturedAt` | Time of capture, ISO 8601 UTC |
| `audit` | Raw result of each check (`consoleErrors`, `failedRequests`, `links`, `mobileOverflow`, `seo` (rendered page, includes `twitterImage`), `rawHtml` (preview tags before JavaScript), `images`, `siteFiles`, `ssl`, `domain`, `speed`), plus `pageUrl`, the address of the audited page. A check that was off is missing or `null`; a check that could not run has `checked: false` and a `skipped` reason. `null` in screenshot-only mode |
| `issues[]` | Problem list: `severity` (`critical` / `warning` / `info`), `check`, `title`, `detail`, `fix` (plain-language solution) |
| `issueCounts` | Count of problems per severity |
| `fixPrompt` | Paste-ready request for Cursor / Lovable built from the problems. `null` if there are none |
| `auditedPage` | `true` if the page was audited (and so counts for the audited-page event) |
| `reportUrl` | Link to `report.html` in the key-value store: screenshots plus problem list for the whole run |

**`failedDevices` (partial failure).** If you ask for several devices (for example `desktop` and `mobile`) and one of them fails or times out, the URL is not thrown away: the other device's screenshot is kept, the page is still audited, and the row has `status: "ok"`. The device that failed is listed in `failedDevices` and summarized in `error`. A failed capture is never charged; you pay only for the screenshots that were delivered (`chargedScreenshots`) and the audited page. If every device fails, `status` is the first failure reason and no audit is run. Example:

```json
{
  "url": "https://example.com/",
  "status": "ok",
  "error": "desktop capture failed (timeout): Timed out: Page.screenshot: Timeout 120000ms exceeded",
  "failedDevices": [
    { "device": "desktop", "status": "timeout", "error": "Timed out: Page.screenshot: Timeout 120000ms exceeded" }
  ],
  "screenshots": [ { "device": "mobile", "viewport": "390x844", "imageHeight": 898, "charged": 1 } ],
  "chargedScreenshots": 1,
  "auditedPage": true
}
```

Full-page screenshots keep first-screen sections at their real size: elements sized in `vh` (100vh hero banners, Tailwind `h-screen` / `min-h-screen`) are frozen to the device's screen height (900 px desktop, 844 px mobile) before long pages are captured in strips, so a hero banner is not stretched.

Failed and blocked URLs also get a row with the same keys, `status` set to the reason and `error` filled in.

### Pricing

Pay per event, two separate events:

- **Screenshot**: one successfully captured image of up to 5,000 px height. A taller image is charged **per started 5,000 px** (rounded up, minimum 1): 900 px = 1 event, 5,000 px = 1, 5,001 px = 2, 12,000 px = 3, 30,000 px = 6. Each device (desktop, mobile, tablet) is its own image.
- **Audited page**: one page that loaded successfully and was checked with at least one audit toggle on. Charged once per URL, no matter how many devices you capture or how tall the page is.

`maxHeight` is capped at 30,000 px, so one image is never charged more than 6 screenshot events. The number charged is in `chargedScreenshots` (per row, per image as `charged`, and in the run's `OUTPUT`) and in the run log. If your maximum cost per run is too low for the full image, only the affordable events are charged and a warning is logged.

Example cost per URL, with the screenshot price S and the audited-page price A (see the Pricing tab for current prices):

| Case | Screenshot events | Audited-page events | Cost |
|---|---|---|---|
| Short page (900 px), desktop + mobile, all checks on | 2 | 1 | 2 × S + A |
| Long page (12,000 px), desktop only, all checks on | 3 | 1 | 3 × S + A |
| Long page (12,000 px), desktop + mobile, all checks on | 6 | 1 | 6 × S + A |
| Very long page (cut at 30,000 px), desktop only | 6 | 1 | 6 × S + A |
| Long page (12,000 px), desktop only, all checks off | 3 | 0 | 3 × S |

A local run is not billed; `chargedScreenshots` then shows the number that would be charged on the platform.

**Never charged:** failed pages, timeouts, `bot_blocked`, `login_required`, invalid URLs, selectors that match nothing. Set a maximum cost per run in the Apify Console and the run stops when it is reached.

### Limitations

- **No login, no bot-protection bypass.** Pages behind a login are not captured (`login_required`). If a site shows a bot check or refuses automated browsers, the row gets `status: "bot_blocked"` and is free. The Actor does not solve captchas or try to get around blocking. Detection of blocked and login pages uses simple rules, so an unusual page may be classified wrongly.
- **Cookie banners are only hidden** with CSS. The Actor never clicks "accept". A banner that CSS rules do not recognise will still show.
- **Pages are captured one at a time per host, at least 1 second apart.** In local tests, ordinary pages took about 1–3 seconds per screenshot. Very long pages with lazy-loaded images took 18–39 seconds. Link checks add about 1 second per link on the same host, so 20 links add 20 seconds or more. A run of 50 URLs with link checks took over 9 minutes locally, so **about 25 URLs per run is recommended**. These timings are local measurements; platform times can differ.
- **Single page only.** The Actor does not crawl; it processes the URLs you give. Links are checked, not followed further.
- **Mobile overflow** compares the page width with a 390 px screen. A page that is meant to scroll sideways as a whole can be flagged.
- **og tags** are recognised in the standard `property="og:..."` form and also in the non-standard `name="og:..."` form (reported as an info note, not as missing).
- **Domain expiry** comes from public RDAP servers. Some domain endings have no RDAP data, and for large sites an expiry warning can come from a short registration period that is renewed automatically.
- **Speed (PageSpeed Insights)** uses Google's free API. Without your own key the shared quota may refuse requests.
- **Failed requests** ignore two kinds of normal responses: 401/403 on fetch/XHR calls (login checks such as `/api/me`) and 404 from third-party favicon services. Cloudflare bot-check requests (`challenges.cloudflare.com` and `/cdn-cgi/challenge-platform/`) stay in `audit.failedRequests` but are not reported as problems. Other failures still count. A stylesheet, script or image shown as "blocked by the browser" means the server sent an error page instead of the file (for example a Google Fonts URL for a font family that does not exist), so it is also broken for real visitors.
- **SSL** check uses the system trust store and retries once with the current certifi CA bundle. Certificate verification is never turned off.
- **Image size:** screenshots are cut at 30,000 px height (marked `truncated`), or at your lower `maxHeight`.
- **No AI** is used: the fix wording is a fixed template, so it is generic and cannot see your source code.

### FAQ

**Can I use only the screenshot part?** Yes. Set all ten `check*` toggles to `false`. See [Screenshot only](#screenshot-only-all-checks-off).

**Why is my site marked `bot_blocked`?** The site answered the browser with a block or bot-check page. The Actor does not bypass this, and you are not charged.

**Does it log in to my staging site?** No. Use a public staging URL.

**Where do I find the images?** Each `screenshots[].url` is a link to the image in the run's key-value store. The `report.html` record shows them all with the problem list.

**Is it legal to check any site?** Check that you are allowed to request the sites you submit.

# Actor input Schema

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

Pages to capture. One browser handles all of them. Plain URLs; 'https://' is added if missing. Login pages are not supported.

## `devices` (type: `array`):

One screenshot is taken per device. desktop = 1440x900, mobile = 390x844 (touch, mobile user agent), tablet = 820x1180.

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

Capture the whole scrollable page instead of only the first screen.

## `selector` (type: `string`):

Capture only the first element matching this CSS selector, e.g. '#pricing' or 'header'. Leave empty to capture the page. If nothing matches, the capture fails and is not charged.

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

Cut very long pages/regions at this height. 0 = no limit (an internal cap of 30000 px still applies). Maximum 30000. Truncated images are flagged with 'truncated: true'. Billing: every started 5,000 px of image height counts as one screenshot (12,000 px = 3 screenshots; minimum 1).

## `imageFormat` (type: `string`):

File format of the screenshot.

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

Compression quality 1-100. Ignored for PNG.

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

1 = normal, 2 = retina (twice as many pixels, larger files).

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

'load' waits for the page load event. 'networkidle' also waits (max 15 s) until network traffic settles, which is better for single-page apps but slower.

## `extraDelaySecs` (type: `number`):

Additional wait after loading and scrolling, before the screenshot. Useful for animations.

## `scrollToLoadLazyImages` (type: `boolean`):

Scrolls through the page once so lazy-loaded images appear, then returns to the top before capturing.

## `flattenFixedElements` (type: `boolean`):

For full-page and region captures: fixed and sticky elements (menus, chat widgets) are pinned at their top-of-page position so they appear once instead of repeating or covering content.

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

Hides common cookie/consent banners with CSS. The Actor never clicks consent buttons.

## `timeoutSecs` (type: `integer`):

Maximum time to load one page. Timed-out pages are not charged.

## `requestIntervalSecs` (type: `number`):

Minimum pause between two page loads on the same host. Values below 1 are raised to 1.

## `engine` (type: `string`):

Browser engine used for capturing. Currently only 'playwright' (Chromium inside the Actor).

## `checkConsoleErrors` (type: `boolean`):

Reports JavaScript errors shown in the browser console while the page loads. Turn every check off to run screenshot-only.

## `checkFailedRequests` (type: `boolean`):

Reports images, scripts and other files that fail to load (404, 500, blocked).

## `checkLinks` (type: `boolean`):

Checks the status of links found on the page (broken, dead end, ok). Requests to one host are at least 1 second apart.

## `maxLinksPerPage` (type: `integer`):

How many links of each page to check (the first ones in page order). More links means a slower run, because requests to the same host wait 1 second each.

## `checkMobileOverflow` (type: `boolean`):

Detects pages that are wider than a phone screen (390 px). Uses the mobile device; if 'mobile' is not selected, an extra mobile load without screenshot is made.

## `checkSeo` (type: `boolean`):

Title, description, h1, canonical, og tags (including og:image), viewport, lang and robots meta.

## `checkImageAlt` (type: `boolean`):

Counts images that have no alt attribute.

## `checkSiteFiles` (type: `boolean`):

Checks whether these files exist at the site root.

## `checkSsl` (type: `boolean`):

Reads the HTTPS certificate expiry date. Certificate verification is never disabled; on a trust error the check retries once with the current certifi CA bundle.

## `checkDomainExpiry` (type: `boolean`):

Looks up the domain expiry date through public RDAP servers.

## `checkSpeed` (type: `boolean`):

Runs a Google PageSpeed Insights mobile test. Slow (up to a minute per page), so it is off by default.

## `googleApiKey` (type: `string`):

Optional PageSpeed Insights API key for a higher quota. Only used when 'Check speed' is on.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "devices": [
    "desktop",
    "mobile"
  ],
  "fullPage": false,
  "maxHeight": 0,
  "imageFormat": "png",
  "quality": 80,
  "deviceScaleFactor": 1,
  "waitUntil": "load",
  "extraDelaySecs": 0,
  "scrollToLoadLazyImages": true,
  "flattenFixedElements": true,
  "hideCookieBanners": true,
  "timeoutSecs": 45,
  "requestIntervalSecs": 1,
  "engine": "playwright",
  "checkConsoleErrors": true,
  "checkFailedRequests": true,
  "checkLinks": true,
  "maxLinksPerPage": 20,
  "checkMobileOverflow": true,
  "checkSeo": true,
  "checkImageAlt": true,
  "checkSiteFiles": true,
  "checkSsl": true,
  "checkDomainExpiry": true,
  "checkSpeed": false
}
```

# Actor output Schema

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

No description

## `screenshots` (type: `string`):

No description

# 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"
    ],
    "devices": [
        "desktop",
        "mobile"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ondutylabs/website-launch-audit").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"],
    "devices": [
        "desktop",
        "mobile",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("ondutylabs/website-launch-audit").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"
  ],
  "devices": [
    "desktop",
    "mobile"
  ]
}' |
apify call ondutylabs/website-launch-audit --silent --output-dataset

```

## MCP server setup

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

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/JwRScbhiAfLLiRb47/builds/pH1IyTHWzB7Mc6bK5/openapi.json
