# Lighthouse & PageSpeed Bulk Audit · Core Web Vitals Alerts (`thequietstack/lighthouse-audit-monitor`) Actor

Bulk Lighthouse audit for your URLs, mobile and desktop: performance, accessibility, best practices and SEO scores, LCP, CLS, TBT and the top opportunities. Runs Lighthouse in its own Chrome, so no PageSpeed API key and no quota. Monitoring mode reports only pages that got worse.

- **URL**: https://apify.com/thequietstack/lighthouse-audit-monitor.md
- **Developed by:** [TheQuietStack](https://apify.com/thequietstack) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $14.00 / 1,000 lighthouse audits

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

## Lighthouse & PageSpeed Bulk Audit: Core Web Vitals and Regression Alerts

Run **Google Lighthouse** on a list of URLs, **mobile and desktop**, and get the four category scores, the lab Core Web Vitals and the biggest savings per page.
Lighthouse runs **inside the Actor's own Chrome**: no PageSpeed Insights API, no API key, no quota.
Schedule it and switch on `onlyRegressions`: you then only get (and pay for) pages that **got worse** since the last run.

**Typical uses:** daily performance monitoring of key landing pages · catching a slow release before customers do · client reporting for agencies · comparing your pages with competitors'.

### Output per URL and device

`performance` · `accessibility` · `bestPractices` · `seo` (0–100) · `lcpMs` · `fcpMs` · `tbtMs` · `cls` · `speedIndexMs` · `topOpportunities[]` (title + estimated savings) ·
`previous` · `delta` · `regressed` · `regressions[]` · `lighthouseVersion` · `auditedAt`

### Example (real run, 21.10.2026)

3 URLs × mobile + desktop = 6 audits, 6–18 s each. python.org mobile:

```json
{
 "url": "https://www.python.org/",
 "formFactor": "mobile",
 "performance": 83,
 "accessibility": 75,
 "bestPractices": 100,
 "seo": 83,
 "lcpMs": 3953,
 "fcpMs": 2744,
 "tbtMs": 1,
 "cls": 0.003,
 "speedIndexMs": 2744,
 "topOpportunities": [
  {
   "title": "Eliminate render-blocking resources",
   "savingsMs": 1776
  },
  {
   "title": "Reduce unused CSS",
   "savingsMs": 600
  },
  {
   "title": "Reduce unused JavaScript",
   "savingsMs": 450
  }
 ],
 "regressed": null,
 "lighthouseVersion": "12.8.2"
}
```

### Regression rules

A run counts as a regression against the last run of the same URL and device when a category score drops by at least `regressionThreshold` points (default 5),
LCP grows by more than 20 % and 300 ms, or CLS grows by 0.05 or more. Lighthouse lab scores vary a few points between runs; the defaults ignore that noise.

### Pricing

Pay per event: **$0.02 per audit reported** on the free plan, −10/−20/−30 % on higher Apify plans. Failed page loads, robots.txt-skipped URLs and (with `onlyRegressions`) unchanged audits are never charged.

### Limits

- Lab data from one page load (Lighthouse's simulated throttling), not real-user field data; values differ from PageSpeed Insights by a few points.
- One page view per URL and device; `robots.txt` (`User-agent: *`) is honoured by default (`respectRobotsTxt`, turn off only for your own sites).
- Pages behind login or bot protection cannot be audited; Lighthouse reports a `runtimeError` and the audit is not charged.

# Actor input Schema

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

Pages to audit (homepage, product page, landing pages …). Each URL × form factor = one audit.

## `formFactor` (type: `string`):

Mobile uses Lighthouse's simulated slow 4G + CPU slowdown, like PageSpeed Insights mobile.

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

Default: all four. Fewer categories = faster audits.

## `onlyRegressions` (type: `boolean`):

Monitoring mode: report (and charge) only audits that got worse than the last run of the same URL and device (score drop ≥ threshold, LCP +20 % and +300 ms, or CLS +0.05).

## `regressionThreshold` (type: `integer`):

Lighthouse scores vary by a few points between runs; 5 is a sensible minimum.

## `respectRobotsTxt` (type: `boolean`):

Skip URLs that robots.txt disallows for all user agents. Turn off only for your own sites.

## `maxUrls` (type: `integer`):

Cost and time cap. URLs above the cap are listed in SUMMARY.notAudited.

## `stateStoreName` (type: `string`):

Named key-value store that keeps the last result per URL and device for regression detection.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/",
    "https://example.com/"
  ],
  "formFactor": "mobile",
  "onlyRegressions": false,
  "regressionThreshold": 5,
  "respectRobotsTxt": true,
  "maxUrls": 50,
  "stateStoreName": "lighthouse-audit-monitor-state"
}
```

# Actor output Schema

## `audits` (type: `string`):

No description

## `summary` (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://www.python.org/",
        "https://example.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thequietstack/lighthouse-audit-monitor").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://www.python.org/",
        "https://example.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("thequietstack/lighthouse-audit-monitor").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://www.python.org/",
    "https://example.com/"
  ]
}' |
apify call thequietstack/lighthouse-audit-monitor --silent --output-dataset

```

## MCP server setup

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

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/A9VTw0zg8c9KCRlwK/builds/jnlkWv4JNYfbE96NB/openapi.json
