# Lighthouse & PageSpeed Checker - Core Web Vitals, SEO Score (`scrolahdata/lighthouse-pagespeed-checker`) Actor

Bulk PageSpeed checker running Google Lighthouse on any list of URLs: performance, SEO, accessibility and best-practices scores, Core Web Vitals (LCP, CLS, TBT), speed opportunities and failed checks. Mobile & desktop, no API key. $15 per 1,000 audits.

- **URL**: https://apify.com/scrolahdata/lighthouse-pagespeed-checker.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (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 $12.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 Checker — Bulk Core Web Vitals & SEO Score Test

Run **Google Lighthouse** — the engine behind **PageSpeed Insights** — on any list of URLs, in the cloud, with **no API key and no quota**. For every page and device you get:

- 🚀 **Scores** — Performance, SEO, Accessibility and Best practices (0–100), the same categories as PageSpeed Insights
- 📊 **Core Web Vitals (lab)** — LCP, CLS, TBT plus FCP, Speed Index, Time to Interactive and server response time, each rated *good / needs improvement / poor*
- 🛠️ **What to fix** — top speed opportunities with estimated savings (unused JavaScript, render-blocking resources, image sizes ...) and the list of **failed SEO, accessibility and best-practices checks**
- ⚖️ **Page weight** — total KB, number of requests, KB by resource type (scripts, images, fonts, third parties)
- 📱 **Mobile and desktop** — or both in one run

**$15 per 1,000 audits** (one audit = one URL on one device). Failed pages are free.

### Use cases

- **Bulk PageSpeed test** — check the speed of hundreds of pages, a whole sitemap or all your clients' homepages at once
- **SEO audits** — find pages with a low SEO score, missing meta descriptions, non-crawlable links or invalid robots.txt
- **Core Web Vitals monitoring** — schedule weekly runs and track LCP / CLS / TBT after each release
- **Competitor benchmarking** — compare your site's speed and scores with competitors on mobile and desktop
- **Accessibility checks** — list failed accessibility audits (contrast, alt text, labels) for every page
- **Agencies & lead generation** — find slow websites in a list of prospects and show them what to fix

### Input

```json
{
  "urls": ["https://apify.com", "example.com"],
  "strategy": "mobile",
  "categories": ["performance", "seo", "accessibility", "best-practices"]
}
```

- **Device** — `mobile` (default, same emulation and throttling as PageSpeed Insights mobile), `desktop` or `both`
- **Categories** — run only the ones you need (e.g. only `seo`, which is faster)
- **Include full Lighthouse report** — adds the complete Lighthouse JSON to every row

### Output

```json
{
  "url": "https://apify.com/",
  "strategy": "mobile",
  "performanceScore": 37,
  "accessibilityScore": 96,
  "bestPracticesScore": 75,
  "seoScore": 85,
  "largestContentfulPaintMs": 7421,
  "cumulativeLayoutShift": 0.001,
  "totalBlockingTimeMs": 1617,
  "lcpRating": "poor",
  "clsRating": "good",
  "totalPageWeightKb": 4813,
  "requestCount": 264,
  "opportunities": [
    {"id": "unused-javascript", "title": "Reduce unused JavaScript", "savingsMs": 470, "displayValue": "Est savings of 828 KiB"}
  ],
  "failedSeoChecks": [{"id": "link-text", "title": "Links do not have descriptive text"}],
  "failedAccessibilityChecks": [{"id": "link-in-text-block", "title": "Links rely on color to be distinguishable."}]
}
```

Export to JSON, CSV or Excel; the *Overview* table shows the scores and Core Web Vitals side by side.

### Tips & limits

- Lighthouse lab results vary a little between runs (network and CPU) — like PageSpeed Insights. For trends, compare averages of several runs.
- Core Web Vitals here are **lab data** measured during the audit, not real-user (CrUX) field data.
- Each audit takes ~10–40 seconds; pages are tested one at a time so results are not distorted by parallel load.
- Pages behind a login or bot protection may fail or show the protection page — failed audits are not charged.

### Pricing

- **Lighthouse audit** — $15 per 1,000 (one URL on one device; *both* devices = 2 audits)
- **Actor start** — $0.005 per run

Errors are free. Discounts for Apify Silver, Gold and higher plans.

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client`
- **Schedules** — weekly Core Web Vitals monitoring of your key pages
- **Zapier, Make, n8n, Google Sheets, webhooks** — send scores to a sheet or alert on a score drop
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server

### FAQ

**Is this the same as PageSpeed Insights?** It runs the same open-source Lighthouse engine with the same mobile defaults, so scores are comparable. It does not use the PageSpeed Insights API, so you need no Google API key and there is no daily quota.

**Why is my score different from PageSpeed Insights?** Lab scores depend on the test machine and network; a difference of a few points is normal.

### More from ScrolahData

- [Bulk URL Status Checker](https://apify.com/scrolahdata/bulk-url-status-checker)
- [SEO Meta Tags Extractor](https://apify.com/scrolahdata/seo-meta-tags-extractor)
- [Tech Stack Detector](https://apify.com/scrolahdata/tech-stack-detector)
- [Sitemap Extractor](https://apify.com/scrolahdata/sitemap-extractor)
- [Website Screenshot Generator](https://apify.com/scrolahdata/website-screenshot-generator)

# Actor input Schema

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

Pages to test, one per line. Bare domains (example.com) work too.

## `strategy` (type: `string`):

Mobile uses Lighthouse's mobile emulation and throttling, the same defaults as Google PageSpeed Insights.

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

Lighthouse categories to run. Empty = all four.

## `includeFullReport` (type: `boolean`):

Adds the complete Lighthouse result (every audit, ~1-3 MB per page) to each row.

## `pageTimeoutSecs` (type: `integer`):

Max time to wait for a page to load.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://example.com"
  ],
  "strategy": "mobile",
  "includeFullReport": false,
  "pageTimeoutSecs": 60
}
```

# Actor output Schema

## `results` (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://apify.com",
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/lighthouse-pagespeed-checker").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://apify.com",
        "https://example.com",
    ] }

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

```

## MCP server setup

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

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/T6oH0gs9aNSiKtK2q/builds/Zeit7zeLPfFKyYEus/openapi.json
