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

Run Google Lighthouse on any list of URLs, no API key or quota: performance, accessibility, best-practices and SEO scores, lab Core Web Vitals (LCP, CLS, TBT, FCP, Speed Index), page weight, requests and top fixes with estimated savings. Mobile, desktop or both; HTML reports optional.

- **URL**: https://apify.com/lx112/pagespeed-lighthouse-audit.md
- **Developed by:** [Jing Peng Xing](https://apify.com/lx112) (community)
- **Categories:** SEO tools, Developer tools, Marketing
- **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 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.

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 & Core Web Vitals Checker: Bulk Lighthouse Audit

Run **Google Lighthouse** on any list of URLs and get each page's **performance, accessibility, best-practices and SEO
scores**, its **Core Web Vitals lab metrics** and the **top fixes**, as one flat row per page. Mobile, desktop or both.

**No API key and no quota.** The actor runs Lighthouse itself in its own Chrome, so it isn't subject to the PageSpeed
Insights API's daily limits and doesn't need a Google Cloud project.

### What you get

```json
{
  "url": "https://example.com/", "finalUrl": "https://example.com/", "device": "mobile",
  "performanceScore": 99, "accessibilityScore": 96, "bestPracticesScore": 100, "seoScore": 80,
  "largestContentfulPaintMs": 810, "cumulativeLayoutShift": 0, "totalBlockingTimeMs": 122,
  "firstContentfulPaintMs": 754, "speedIndexMs": 754, "timeToInteractiveMs": 977, "serverResponseTimeMs": 39,
  "ratings": {
    "largestContentfulPaintMs": "good", "cumulativeLayoutShift": "good", "totalBlockingTimeMs": "good",
    "firstContentfulPaintMs": "good", "speedIndexMs": "good"
  },
  "coreWebVitals": "good",
  "pageWeightBytes": 2150, "requestCount": 2, "domElements": 16,
  "topFixes": [
    { "id": "cache-insight", "title": "Use efficient cache lifetimes", "displayValue": "Est savings of 2 KiB", "savingsMs": null, "savingsBytes": null }
  ],
  "failedAudits": [
    { "category": "accessibility", "id": "landmark-one-main", "title": "Document does not have a main landmark.", "displayValue": null },
    { "category": "seo", "id": "meta-description", "title": "Document does not have a meta description", "displayValue": null }
  ],
  "lighthouseVersion": "13.6.0", "fetchedAt": "2026-11-12T00:45:12.922Z", "reportUrl": null, "error": null
}
```

| Field | Meaning |
|---|---|
| `performanceScore` ... `seoScore` | Lighthouse category scores, 0-100 |
| `largestContentfulPaintMs`, `cumulativeLayoutShift`, `totalBlockingTimeMs` | The lab Core Web Vitals |
| `ratings`, `coreWebVitals` | Each metric against Google's thresholds: `good`, `needs-improvement` or `poor` |
| `pageWeightBytes`, `requestCount`, `domElements` | Page size, number of requests, DOM size |
| `topFixes` | Up to 12 performance problems, largest estimated saving first |
| `failedAudits` | Failed accessibility, best-practices and SEO checks |
| `reportUrl` | Link to the full Lighthouse HTML report (when "Save full HTML reports" is on) |

The run's **SUMMARY** record has the number of audits, failures and the average performance score.

### Good for

- **SEO and agency reporting**: score every landing page of a client in one run and export to a sheet.
- **Monitoring**: schedule a daily or weekly run and alert when a score drops.
- **Prospecting**: find sites with poor performance or failing accessibility checks.
- **Before and after**: measure a release's effect on LCP, CLS and blocking time.

### Things to know

- These are **lab measurements**: one load in a controlled environment, the same method as the "Lighthouse" half of
  PageSpeed Insights. They are not the **field data** (real-user Chrome UX Report numbers) that PageSpeed Insights
  also shows, and INP can only be measured with real users; Total Blocking Time is its lab stand-in.
- Performance scores vary a few points between runs and between machines, as they do in PageSpeed Insights. Compare
  trends from the same setup rather than single numbers.
- Mobile uses Lighthouse's defaults: a mid-range phone on slow 4G (simulated). Desktop uses the desktop preset.
- One audit takes roughly 15-40 seconds. Audits run one at a time so they don't slow each other down.
- Pages behind a login can't be audited.

### Pricing

Pay per result: **$0.02 per audit** (one URL on one device). Pages that fail to load are returned with an `error`
and aren't charged.

# Actor input Schema

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

Pages to audit. Each URL is audited on its own; the site isn't crawled.

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

Mobile emulates a mid-range phone on a slow 4G connection (Google's default); desktop a wired desktop. Both runs two audits per URL.

## `performanceOnly` (type: `boolean`):

Skip the accessibility, best-practices and SEO categories. Slightly faster.

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

Save Lighthouse's full HTML report for each audit and return its link (reportUrl).

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ],
  "device": "mobile",
  "performanceOnly": false,
  "saveHtmlReports": false
}
```

# Actor output Schema

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

One item per URL and device: category scores, Core Web Vitals lab metrics, page weight, requests, top opportunities and failed audits, report link.

## `summary` (type: `string`):

Per run: audits done, failures, average scores.

# 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": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lx112/pagespeed-lighthouse-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": [{ "url": "https://apify.com" }] }

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

```

## MCP server setup

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