# Lighthouse Bulk Auditor – Core Web Vitals & SEO (`plainwren/lighthouse-bulk-auditor`) Actor

Uses Google Lighthouse to audit the URLs you list (for your own or authorised sites): performance, accessibility, best practices and SEO scores, lab Core Web Vitals, mobile and desktop, change since last run. No crawling. Blocked pages are free. By Plainwren; not affiliated with Google.

- **URL**: https://apify.com/plainwren/lighthouse-bulk-auditor.md
- **Developed by:** [Plainwren Studio](https://apify.com/plainwren) (community)
- **Categories:** SEO tools, 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 $20.00 / 1,000 mobile audits

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

### What is Lighthouse Bulk Auditor?

**Lighthouse Bulk Auditor uses Google Lighthouse to audit a list of URLs** and gives you one row of scores per URL and device, for your own or authorised sites. It's built for site owners, SEO and dev teams, and agencies checking their clients' pages.

- **Four Lighthouse scores (0–100):** performance, accessibility, best practices and SEO. Pick any of the four.
- **Lab Core Web Vitals:** LCP, CLS and TBT (TBT is the lab stand-in for INP). Each is rated good / needs improvement / poor by the standard thresholds, plus a simple `cwvPass` yes/no.
- **More metrics:** First Contentful Paint, Speed Index, time to interactive, server response time, total page weight, request count and DOM element count.
- **What to fix:** up to 25 "audits that lost points" per row, worst first, with Lighthouse's own title and short value (for example "Est savings of 120 KiB").
- **Mobile, desktop or both** (Lighthouse's own presets). Both gives two rows per URL.
- **Compare with last run** (optional): a `delta` column shows what changed since the last run for the same URL and device. Pair it with an Apify schedule for weekly checks.
- **Up to 500 URLs per run** (1,000 audits with both devices).
- **No API key and no PageSpeed Insights quota.** Lighthouse 13.5.0 runs unmodified in the Actor's own Chrome.
- **Clean exports:** every row has the same columns, so CSV and Excel downloads line up.

Made by Plainwren. It uses the open-source Google Lighthouse and is not affiliated with Google.

Try it: leave the input empty and click **Start**. The Actor runs a free demo audit of <https://tools.plainwrenstudio.com/> (our own sample page).

### Who is it for?

- 🧑‍💻 **Developers and site owners** tracking speed and Core Web Vitals across their own pages.
- 📈 **SEO teams and agencies** reporting on their own or their clients' sites (with permission), mobile and desktop side by side.
- ♿ **Teams watching accessibility** scores over time (automated checks only; see Limits).
- 🤖 **Automations and AI agents** through the Apify API, schedules and integrations (Make, n8n, Zapier).

### Use cases

- Run Google Lighthouse on up to 500 of your own or authorised URLs and get performance, accessibility, best practices and SEO scores, plus lab LCP, CLS and TBT.
- Audit mobile, desktop or both, with no PageSpeed Insights API key and no crawl past the URLs you list. Failed and blocked pages are free.
- Turn on Compare with last run and an Apify schedule to see the `delta` since the last audit of the same URL and device.

### How to run a bulk Lighthouse audit

1. Open the **Input** tab and add your URLs, one per line.
2. Pick the **Device**: mobile, desktop, or mobile and desktop.
3. Optional: untick **Categories** you don't need, turn on **Compare with last run**, or give it a longer page timeout.
4. Click **Start**.
5. Open the **Output** tab. The **Scores** view shows one row per URL and device; the **Audits that lost points** view lists each issue on its own line. Download as CSV, Excel or JSON, or use the Apify API.

To monitor a site, turn on **Compare with last run** and add an Apify **schedule** (for example weekly).

#### Input example

```json
{
  "urls": ["https://your-site.example/", "https://your-site.example/pricing"],
  "device": "both",
  "categories": ["performance", "accessibility", "best-practices", "seo"],
  "compareWithLastRun": true,
  "historyStoreName": "client-a",
  "timeoutSecs": 45
}
```

| Field | Type | What it does |
|---|---|---|
| `urls` | array of strings | The pages to audit (max 500). Leave empty, or list exactly `https://tools.plainwrenstudio.com/`, for a free demo audit of that sample page. |
| `device` | `mobile` / `desktop` / `both` (default `mobile`) | Lighthouse's mobile preset, its desktop preset, or both (two rows per URL). |
| `categories` | array (default all four) | `performance`, `accessibility`, `best-practices`, `seo`. Core Web Vitals need `performance`. |
| `compareWithLastRun` | boolean (default `false`) | Adds the `delta` column. Numbers only are kept in a key-value store in your account. |
| `historyStoreName` | string (default `lighthouse-bulk-history`) | Store used for comparisons. Use one name per client or project (lower-case letters, digits, dashes). |
| `timeoutSecs` | integer 10–90 (default 45) | How long to wait for a page to load. Timed-out pages are free. |
| `perDomainDelayMs` | integer 2,000–60,000 (default 2,000) | Pause between audits on the same site. It can only be made longer. |

#### Output example

One row per URL and device. Sample of the output shape (shortened; not a measured result from a live run):

```json
{"index":0,"url":"https://your-site.example/","device":"mobile","ok":true,"performance":100,"accessibility":100,"bestPractices":96,"seo":91,"fcpMs":639,"lcpMs":755,"tbtMs":0,"cls":0,"speedIndexMs":639,"ttiMs":755,"ttfbMs":3,"totalBytes":2501,"domElements":24,"requestCount":2,"lcpRating":"good","clsRating":"good","tbtRating":"good","cwvPass":true,"failedAudits":[{"id":"meta-description","title":"Document does not have a meta description","score":0,"displayValue":null}],"delta":null,"httpStatus":200,"lighthouseVersion":"13.5.0","chargedEvent":null}
```

A page that refuses automated access comes back like this, and isn't charged (example):

```json
{"index":3,"url":"https://your-site.example/members","device":"mobile","ok":false,"performance":null,"httpStatus":403,"errorCode":"BLOCKED","error":"The site refused access (HTTP 403). Not retried.","chargedEvent":null}
```

| Output field | Meaning |
|---|---|
| `performance`, `accessibility`, `bestPractices`, `seo` | Scores 0–100 (only the categories you picked). |
| `lcpMs`, `cls`, `tbtMs` | Lab Core Web Vitals. |
| `lcpRating`, `clsRating`, `tbtRating`, `cwvPass` | `good` / `needs-improvement` / `poor` (LCP 2.5 s / 4 s, CLS 0.1 / 0.25, TBT 200 ms / 600 ms); `cwvPass` is true when all three are good. |
| `fcpMs`, `speedIndexMs`, `ttiMs`, `ttfbMs`, `totalBytes`, `domElements`, `requestCount` | More Lighthouse metrics. |
| `failedAudits` | Up to 25 audits that lost points: `id`, `title`, `score`, `displayValue`. |
| `delta` | Changes since the last run for the same URL and device (with **Compare with last run**), e.g. `performance: -7`, `lcpMs: 420`. |
| `ok`, `errorCode`, `error` | Whether the audit worked, and a plain reason if not. |
| `httpStatus`, `finalUrl`, `durationMs`, `waitMs` | Page status, final URL after redirects, audit time and time spent on the politeness pause. |
| `formFactor`, `lighthouseVersion`, `benchmarkIndex` | Preset used, Lighthouse version, and the CPU speed Lighthouse measured. |
| `chargedEvent` | The event charged for this row (`audit`, `desktop-audit`), or `null` if free. |

A run summary is saved in the key-value store under `OUTPUT`: `total`, `processed`, `ok`, `failed`, `skipped`, `stoppedAtLimit`, `limitReason`.

### How much does it cost?

Lighthouse Bulk Auditor uses **pay-per-event** pricing, so you pay for audits you get:

- **$0.02 per mobile audit** (`audit`) and **$0.02 per desktop audit** (`desktop-audit`): **$20 per 1,000 audits**. Mobile and desktop together is two audits.
- A small **run start** fee of **$0.002 per GB** of run memory: $0.008 per run at the default 4 GB.
- **Free:** failed and blocked pages, URLs over the 500 limit, and the demo run.

Example: 100 URLs on mobile, all OK, at 4 GB: 100 × $0.02 + $0.008 = **$2.008**.

You can set a spending limit on any run. When it's reached, the run stops cleanly, keeps every saved row, and tells you how many audits were skipped (not charged).

Apify's free plan includes monthly platform credit you can use to try it.

### Limits

- **For your own or authorised sites.** Public pages only.
- **No crawling.** It audits exactly the URLs you list and doesn't follow links. Lighthouse's own standard checks also request that site's `/robots.txt` (for the SEO score), and Chrome asks for `/favicon.ico`. Nothing else on the site.
- **No page content.** You get scores, metrics and Lighthouse's audit names only: no text, titles, HTML, links, screenshots or request lists.
- **No logins, cookies, custom headers or proxies.** Inputs with those names are refused. Every audit uses a fresh Chrome with an empty profile. It doesn't get past paywalls, captchas or bot checks: HTTP 401/403/407/429/451, login prompts and "verify you are human" or captcha pages fail as `BLOCKED`, aren't retried and aren't charged.
- **No private or internal addresses** (localhost, 10.x, 192.168.x, cloud metadata and so on), including through redirects and anything a page loads.
- **Polite by design:** one audit at a time, and pages on the same site at least 2 s apart (you can only make it slower). Mixed lists are interleaved across sites. For very big lists, start several runs.
- **Files aren't pages.** A URL that serves a PDF or download fails as `NOT_A_PAGE`, free.
- **Lab data only.** One load in a data centre, not real-user (field) data. Scores move a little between runs, so compare trends.
- **Accessibility** comes from Lighthouse's built-in automated checks (axe-core). It isn't a full WCAG audit.
- **Up to 500 URLs per run.** Extra URLs are skipped, not charged, and reported in the summary.
- **Memory:** 4 GB by default. Keep it at 4 GB: less memory also means less CPU, and audits can stall.

### FAQ

#### Is this a Google product?

No. It's made by Plainwren and uses the open-source Google Lighthouse. It is not affiliated with Google.

#### Why do my scores differ from PageSpeed Insights?

Different machine, location and network. Lighthouse uses the same simulated throttling method, but lab scores move between runs. Compare trends, not single numbers. Each row's `benchmarkIndex` shows the CPU speed Lighthouse measured.

#### Is this real-user (field) data?

No. It's lab data from one page load. Chrome UX Report (CrUX) field data isn't included.

#### Do I need an API key?

No. It doesn't use the PageSpeed Insights API, so there's no key and no quota.

#### Can it audit pages behind a login?

No, by design. Public pages of your own or authorised sites only.

#### Mobile and desktop?

Yes. Pick one or both. Each device is one audit and one event.

#### How long does a run take?

One audit runs at a time, with at least a 2 s pause between pages on the same site. Pages on different sites are interleaved, so mixed lists wait less.

#### Can I monitor my pages over time?

Yes. Turn on **Compare with last run** and add an Apify schedule. Each row then shows what changed since the last run.

#### Which Lighthouse version does it use?

Google Lighthouse 13.5.0, unmodified. Every row shows it in `lighthouseVersion`.

#### Am I charged for pages that fail?

No. Failed rows have `ok: false`, an `errorCode` and a plain message, and are never charged. Codes: `BAD_URL`, `BLOCKED_URL`, `DNS_FAILED`, `HTTP_ERROR`, `BLOCKED`, `NOT_A_PAGE`, `TIMEOUT`, `NAVIGATION_FAILED`, `AUDIT_FAILED`.

#### Where does the accessibility score come from?

From Lighthouse's built-in axe-core checks (axe-core by Deque Systems, MPL-2.0, unmodified). These are automated checks only, not a full WCAG audit.

#### Is my data stored?

Only in your own Apify dataset and, if you turn on **Compare with last run**, your own history store (numbers only). Nothing else is kept. Privacy: <https://tools.plainwrenstudio.com/privacy/>. Support: support@plainwrenstudio.com, or the Actor's **Issues** tab.

#### Can I use it from Make, n8n, Zapier or an AI agent?

Yes, through Apify's integrations, API and MCP, the same way as any other Apify Actor.

### Third-party notices

Store title: **Lighthouse Bulk Auditor – Core Web Vitals & SEO**

This Actor uses Google Lighthouse 13.5.0 (Apache-2.0), unmodified. Lighthouse runs axe-core 4.14.0 by Deque Systems (MPL-2.0), unmodified, for its accessibility checks. axe-core is licensed under the Mozilla Public License, v. 2.0, and its source is at https://github.com/dequelabs/axe-core. The full list is in THIRD_PARTY_LICENSES.csv.

Uses Google Lighthouse. This Actor is not made, endorsed, sponsored or certified by Google. Lighthouse is a trademark of Google LLC.

# Actor input Schema

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

The pages to audit, one per line (max 500 per run). Only these exact URLs are loaded: links are not followed and nothing is crawled. Use it for your own or authorised sites. Pages behind a login, paywall or bot check fail and are not charged. If you leave this empty, the run does a free demo audit of the sample page https://tools.plainwrenstudio.com/.

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

Lighthouse's mobile preset (emulated phone, slow 4G and 4x CPU slowdown, simulated), its desktop preset, or both. 'Both' gives two rows per URL and two audits are charged.

## `categories` (type: `array`):

Which Lighthouse categories to score. Core Web Vitals (LCP, CLS, TBT) need Performance. Fewer categories make each audit a little faster; the price per audit is the same.

## `compareWithLastRun` (type: `boolean`):

Adds a 'delta' column with score and metric changes since the last run that audited the same URL and device. Scores and metrics (numbers only) are kept in a named key-value store in your account. Useful for scheduled runs.

## `historyStoreName` (type: `string`):

Name of the key-value store used by 'Compare with last run'. Use one name per client or project. Lower-case letters, digits and dashes.

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

How long Lighthouse waits for a page to load (10-90). Pages that time out fail and are not charged.

## `perDomainDelayMs` (type: `integer`):

Politeness: one audit at a time per website, with at least this pause between them (minimum 2,000 ms). Different websites are interleaved, so a mixed list rarely waits.

## Actor input object example

```json
{
  "urls": [
    "https://tools.plainwrenstudio.com/"
  ],
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "compareWithLastRun": false,
  "historyStoreName": "lighthouse-bulk-history",
  "timeoutSecs": 45,
  "perDomainDelayMs": 2000
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset of audited (or failed) URL and device rows.

## `OUTPUT` (type: `string`):

Totals: processed, ok, failed, skipped, spending-limit stop, and whether this was the free demo.

# 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://tools.plainwrenstudio.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainwren/lighthouse-bulk-auditor").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://tools.plainwrenstudio.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("plainwren/lighthouse-bulk-auditor").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://tools.plainwrenstudio.com/"
  ]
}' |
apify call plainwren/lighthouse-bulk-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainwren/lighthouse-bulk-auditor"
        }
    }
}
```

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/sjdLDJ3Juwjz7oeA1/builds/kT53Fb5TUUAnEU89u/openapi.json
