# PageSpeed & Lighthouse Audit: Core Web Vitals Bulk (`digital_influx/lighthouse-pagespeed-audit`) Actor

Bulk Lighthouse audit of any list of pages: performance score, Core Web Vitals (LCP, CLS, TBT), accessibility, SEO and best-practices scores, top fixes with estimated savings and third-party cost. Mobile and desktop, median of several runs, budgets, monitoring. No API key. Failed pages are free.

- **URL**: https://apify.com/digital_influx/lighthouse-pagespeed-audit.md
- **Developed by:** [Bruno Petrelli](https://apify.com/digital_influx) (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 $30.00 / 1,000 lighthouse audit with scores (failed pages free)s

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

## PageSpeed & Lighthouse Audit: Core Web Vitals Bulk

Paste a list of pages and get **the Lighthouse performance score and Core Web Vitals of each one**, on mobile, desktop or both, with what to fix first and how much time each fix would save. One clean row per page and device:

- **Scores (0 to 100):** performance, accessibility, best practices and SEO, as Chrome DevTools and PageSpeed Insights show them.
- **Core Web Vitals and speed metrics:** Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), Total Blocking Time (TBT), First Contentful Paint, Speed Index, Time to Interactive and server response time, each with its rating: good, needs improvement or poor.
- **Top fixes:** the failed performance checks ordered by the time Lighthouse estimates each would save ("Improve image delivery: 3,600 ms, 969 KiB").
- **Third-party cost:** which companies' scripts take the most main-thread time and bytes (Google Tag Manager, chat widgets, pixels).
- **The LCP element** and where its time goes (server, download, render delay).
- **Page weight:** total bytes, requests and bytes by kind (images, scripts, fonts, third parties), and the number of DOM elements.
- **Failed accessibility, SEO and best-practices checks**, by name.
- **`summary`:** one paragraph in plain English, ready for a client report or an email.
- **Optional:** the full Lighthouse HTML report of every page, a performance budget with pass or fail, and monitoring that tells you which pages got slower since the last run.

**No API key and no quota.** The Actor runs Google's open-source Lighthouse 13 in its own Chrome, the same lab test PageSpeed Insights and Chrome DevTools run. It does not call the PageSpeed Insights API.

**Stable numbers.** A Lighthouse score moves several points from one run to the next with nothing changed. Ask for 3 or 5 runs per page and the row is the median run, as Lighthouse's own documentation recommends, with the range of the scores next to it.

### What you can use it for

- **SEO and web agencies:** audit every client site, or every prospect on a lead list, and open the conversation with real numbers ("your home page takes 7.2 s to show its main content on mobile").
- **Developers and QA:** a pass/fail performance budget after each deploy, run from a schedule, a webhook or the API.
- **Site owners and e-commerce teams:** find the slow templates (home, category, product, checkout) and which third-party script costs the most.
- **Monitoring:** schedule it weekly and get only what changed: pages that regressed or improved by 10 points or more.
- **AI agents:** a structured answer to "why is this page slow?", callable through the Apify MCP server.

### Input

```json
{
  "urls": ["https://37signals.com/"]
}
```

| Field | What it does |
|---|---|
| `urls` | The pages to audit, one per line. `https://` is added if missing. |
| `devices` | `mobile` (default; a mid-tier phone on slow 4G, what Google ranks with), `desktop`, or both. Each device is its own row. |
| `runsPerUrl` | 1 to 5 Lighthouse runs per page and device. With more than one, the row is the median run. |
| `categories` | Performance is always audited; accessibility, best practices and SEO are on by default. |
| `maxFixes` | How many top fixes and third parties each row lists (default 5). |
| `saveHtmlReports` | Adds `reportUrl`: the full Lighthouse HTML report of the page. |
| `minPerformanceScore`, `maxLcpMs`, `maxTbtMs`, `maxCls` | A performance budget. Every row gets `budget.passed` and the budgets it failed. |
| `compareWithPreviousRun` | Monitoring: every row gets `changes` against the last run of the same page and device. |
| `minScoreChange` | How many points count as a real change (default 10). |
| `memoryName` | A separate history, for example one per client. |
| `respectRobotsTxt` | On by default: pages the site's robots.txt disallows are not loaded. |

A fuller example: both devices, the median of 3 runs, a budget and the HTML reports.

```json
{
  "urls": ["https://37signals.com/", "https://basecamp.com/"],
  "devices": ["mobile", "desktop"],
  "runsPerUrl": 3,
  "minPerformanceScore": 90,
  "maxLcpMs": 2500,
  "saveHtmlReports": true
}
```

**Free Apify plan:** a run covers the first 5 page-and-device audits of your list, with every option. Any paid Apify plan has no limit.

### Output

One item per page and device (real result for 37signals.com on mobile, 2026-11-10; lists shortened):

```json
{
  "input": "https://37signals.com/",
  "url": "https://37signals.com/",
  "device": "mobile",
  "status": "ok",
  "finalUrl": "https://37signals.com/",
  "performanceScore": 47,
  "performanceRating": "poor",
  "accessibilityScore": 100,
  "bestPracticesScore": 100,
  "seoScore": 100,
  "coreWebVitals": "poor",
  "lcpMs": 3543,
  "lcpRating": "needs-improvement",
  "cls": 0,
  "clsRating": "good",
  "tbtMs": 2346,
  "tbtRating": "poor",
  "fcpMs": 3543,
  "fcpRating": "poor",
  "speedIndexMs": 8117,
  "speedIndexRating": "poor",
  "timeToInteractiveMs": 6073,
  "serverResponseMs": 314,
  "totalBytes": 133299,
  "requests": 35,
  "bytesByType": { "font": 101569, "stylesheet": 14613, "script": 7897, "image": 4869, "document": 3671, "other": 680, "media": 0, "thirdParty": 0 },
  "domElements": 313,
  "lcpElement": { "selector": "header.signal__header > a > dl > dd", "snippet": "<dd>", "text": "Two tokens of customer service" },
  "lcpBreakdown": { "timeToFirstByteMs": 899, "elementRenderDelayMs": 3596 },
  "thirdParties": [],
  "topFixes": [
    { "id": "mainthread-work-breakdown", "title": "Minimize main-thread work", "savingsMs": 2350, "savingsBytes": 0, "detail": "7.5 s" },
    { "id": "bootup-time", "title": "Reduce JavaScript execution time", "savingsMs": 1950, "savingsBytes": 0, "detail": "2.0 s" },
    { "id": "font-display-insight", "title": "Font display", "savingsMs": 250, "savingsBytes": 0, "detail": "Est savings of 260 ms" }
  ],
  "accessibilityIssues": [],
  "accessibilityIssueCount": 0,
  "seoIssues": [],
  "seoIssueCount": 0,
  "bestPracticesIssues": [],
  "bestPracticesIssueCount": 0,
  "warnings": [],
  "lighthouseVersion": "13.6.0",
  "chromeVersion": "157.0.0.0",
  "benchmarkIndex": 1269,
  "auditedAt": "2026-11-10T21:25:45.162Z",
  "summary": "Mobile performance score 47/100 (poor). The main content takes 3.5 s to appear; Google's target for Largest Contentful Paint is 2.5 s. Scripts block the page for 2,346 ms while it loads (target: under 200 ms). First fix: Minimize main-thread work (about 2,350 ms).",
  "runs": 1,
  "performanceScoreRange": null
}
```

The same page scored 100 on the next two runs: that first run was a cold one. With `runsPerUrl: 3` the row is the median run (100) and `performanceScoreRange` is `[47, 100]`, so you see both the number to report and how much it moves.

- `status` is `ok`, `error` (the page could not be audited: `error` has Lighthouse's code, such as `ERRORED_DOCUMENT_REQUEST` for a 404, and `errorMessage` the reason), `blocked_by_robots` or `invalid`.
- `coreWebVitals` is a lab verdict: `good` when LCP is 2.5 s or less, CLS 0.1 or less and TBT 200 ms or less; `poor` when any of them is over 4 s, 0.25 or 600 ms.
- With a budget: `"budget": { "passed": false, "failed": ["performanceScore 47 is below 90", "lcpMs 3543 is over 2500"] }`.
- With monitoring: `"changes": { "verdict": "regressed", "previousAt": "...", "performanceScore": { "from": 100, "to": 47, "delta": -53 }, "lcpMs": { ... }, "tbtMs": { ... }, "cls": { ... } }`. The verdict is `new`, `improved`, `regressed` or `stable`.

The run's totals, the average score per device and the slowest page are in the `OUTPUT` record of the key-value store.

### Pricing

Pay per event: **one `audit` event per Lighthouse run that returns scores**. One page on one device with one run is one event; the median of 3 runs is three. Pages that cannot be audited (404, timeouts, blocked), pages closed by robots.txt, invalid addresses and duplicates are saved free. Set a maximum cost for the run and the Actor stops cleanly when it is reached.

### How it works

- Each audit starts a fresh headless Chrome, so one page never affects the next, and pages are audited one at a time: two audits sharing a CPU would slow each other down and lower both scores.
- Mobile is Lighthouse's standard emulation: a mid-tier phone on a slow 4G connection, with simulated throttling. Desktop is a fast wired connection. These are the settings PageSpeed Insights uses for its lab data.
- Chrome's User-Agent says who is asking: it ends with `Chrome-Lighthouse lighthouse-pagespeed-audit/1.0 (+https://apify.com)`. The site's robots.txt is read first and respected.
- The Actor runs with 4 GB of memory, which on Apify is one full CPU core: Lighthouse needs it for scores close to those of a real machine. `benchmarkIndex` in every row says how fast the machine was.

### Use it from AI agents (MCP)

Claude, ChatGPT, Cursor and any other MCP client can run this Actor as a tool: add `https://mcp.apify.com?tools=digital_influx/lighthouse-pagespeed-audit` as a remote MCP server and sign in with your Apify account.

### Good to know

- **Lab data, not field data.** These are measurements in a controlled test, the same as the "Diagnose performance issues" part of PageSpeed Insights. The real-visitor data of the Chrome UX Report (the "Core Web Vitals assessment" at the top of PageSpeed Insights) is not included: it is only available from Google's own APIs. Interaction to Next Paint needs a real visitor, so the lab uses Total Blocking Time in its place.
- Scores depend on the machine and the moment. Compare runs of this Actor with each other rather than with a number from your laptop, and use 3 runs when the number matters.
- A heavy page can take over a minute; a light one about 15 seconds. An audit that does not finish in 3 minutes is saved as an error, free.
- This Actor is not affiliated with Google. Lighthouse is an open-source project by Google, used under the Apache 2.0 license.
- **Also from us:** **SEO Audit & Broken Link Checker** (crawl a whole site for SEO issues), **Website Tech Stack Detector** and **Website Contact Scraper**.

### Support

A page that should be audited and isn't, or a number that looks wrong? Open an issue on the Actor's Issues tab with the URL. Issues get an answer within a few days.

# Actor input Schema

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

One page per line: a home page, a product page, a landing page (https:// is added if missing). Repeated pages are audited once. Free Apify plan: the first 5 page-and-device audits of a run; any paid plan has no limit.

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

Mobile is a mid-tier phone on a slow 4G connection (what Google ranks with); desktop is a fast wired connection. Each device is its own audit and its own row.

## `runsPerUrl` (type: `integer`):

Lighthouse scores move several points from one run to the next with nothing changed. With 3 or 5 runs the row is the median run, as Lighthouse's own documentation recommends, and it shows the range of the scores. Each run is one audit event.

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

Performance is always audited. Leave the others on for the accessibility, best-practices and SEO scores and their failed checks; turn them off for a slightly faster audit.

## `maxFixes` (type: `integer`):

How many of the top fixes (by estimated time saved) and of the heaviest third-party companies each row lists (1 to 20).

## `saveHtmlReports` (type: `boolean`):

Adds reportUrl to every row: the complete HTML report, the one Chrome DevTools shows, saved in the run's key-value store. Good to send to a client or a developer.

## `minPerformanceScore` (type: `integer`):

With any budget set, every row gets budget.passed and the list of budgets it failed. Example: 90 (Lighthouse's green band starts there).

## `maxLcpMs` (type: `integer`):

Google's "good" threshold is 2500.

## `maxTbtMs` (type: `integer`):

Lighthouse's "good" threshold is 200.

## `maxCls` (type: `string`):

A decimal number. Google's "good" threshold is 0.1.

## `compareWithPreviousRun` (type: `boolean`):

For scheduled audits: every row gets "changes" with the score, LCP, TBT and CLS of the last run of the same page and device, and a verdict: improved, regressed, stable or new. The last scores are kept in a key-value store named "digital-influx-lighthouse-pagespeed-audit" in your account.

## `minScoreChange` (type: `integer`):

A page is "improved" or "regressed" only when its performance score moved by at least this many points; smaller moves are normal noise and count as "stable".

## `memoryName` (type: `string`):

Give a name to keep a separate history, for example one per client, or a new name to start over. Letters, digits, dot, dash and underscore.

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

Recommended. Pages that the site's robots.txt disallows are not loaded (saved free with status blocked_by_robots). Turn off only for your own website.

## Actor input object example

```json
{
  "urls": [
    "https://37signals.com/"
  ],
  "devices": [
    "mobile"
  ],
  "runsPerUrl": 1,
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "maxFixes": 5,
  "saveHtmlReports": false,
  "compareWithPreviousRun": false,
  "minScoreChange": 10,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `results` (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://37signals.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital_influx/lighthouse-pagespeed-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://37signals.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("digital_influx/lighthouse-pagespeed-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://37signals.com/"
  ]
}' |
apify call digital_influx/lighthouse-pagespeed-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digital_influx/lighthouse-pagespeed-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/AMDf0XQpJwtfwCitn/builds/sdZBXHMnL6ikAYGv6/openapi.json
