# Lighthouse PageSpeed Audit: Core Web Vitals (`blithe_gambol_x3a/lighthouse-core-web-vitals`) Actor

Lighthouse PageSpeed audit in a real Chrome browser: lab Core Web Vitals (LCP, CLS, INP/TBT) and category scores for performance, accessibility, best practices and SEO. Runs open-source Lighthouse; it does not call the Google PageSpeed Insights API. Lab metrics, not Chrome UX Report field data.

- **URL**: https://apify.com/blithe_gambol_x3a/lighthouse-core-web-vitals.md
- **Developed by:** [Web Audit Lab](https://apify.com/blithe_gambol_x3a) (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 $20.00 / 1,000 page auditeds

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 this Actor does

The **Lighthouse PageSpeed Audit: Core Web Vitals** is a Lighthouse PageSpeed audit that runs **open-source Lighthouse inside a real Chrome browser** on the public URLs you provide. Each page gets lab **Core Web Vitals** (LCP, CLS, and INP when Lighthouse reports it, plus TBT as the lab blocking proxy) and category scores for **performance**, **accessibility**, **best practices** and **SEO**, together with the largest performance opportunities.

This Actor does **not** call the Google PageSpeed Insights API and it does **not** read Chrome UX Report (CrUX) field data. The numbers are **lab metrics** from a headless Chrome session with Lighthouse's default throttling. They are useful for comparing pages and catching obvious issues, but they are not a substitute for field data in Search Console or CrUX.

### Who it is for

- Developers and SEO specialists who want a scriptable Lighthouse check on a short list of public pages
- Teams who need LCP, CLS and lab blocking time in a dataset, without wiring up their own Chrome
- Agents that call the Actor through the Apify API or MCP

### Features

- Runs official open-source Lighthouse in Chrome on each URL, sequentially
- Mobile or desktop form factor (mobile is the default)
- Lab Core Web Vitals: LCP, CLS, INP (if present), TBT, plus FCP, Speed Index and TTI
- Category scores on a 0–100 scale
- Top performance opportunities with estimated savings
- Respects robots.txt; skips non-HTML URLs
- No PageSpeed API key, no proxy and no LLM
- Caps each run at 25 pages so a typo cannot start a huge browser job

### How to use

1. Paste one or more public HTML page URLs (start with a home page and one key landing page).
2. Leave **Form factor** on mobile unless you specifically want a desktop lab run.
3. Optionally lower **Maximum pages** for a cheap test.
4. Run the Actor and open the **Lighthouse audits** dataset view. Filter `kind` = `page` for page rows and `kind` = `summary` for the overview.

### Screenshots

**Input** — a prefilled Try run, styled in the Web Audit Lab palette:

![Lighthouse PageSpeed Audit: Core Web Vitals input](https://api.apify.com/v2/key-value-stores/b90GJmcG9g7gn9fbP/records/lighthouse-core-web-vitals-input.jpg)

**Output** — sample dataset from a real platform run:

![Lighthouse PageSpeed Audit: Core Web Vitals output](https://api.apify.com/v2/key-value-stores/b90GJmcG9g7gn9fbP/records/lighthouse-core-web-vitals-output.jpg)

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | array of URLs | prefilled examples | Public http(s) HTML pages to audit. |
| `formFactor` | `mobile` or `desktop` | `mobile` | Lighthouse device emulation. |
| `maxPages` | integer | 5 | Maximum URLs to audit in this run (1–25). |

Example input:

```json
{
  "startUrls": [
    { "url": "https://web.dev/" },
    { "url": "https://www.wikipedia.org/" }
  ],
  "formFactor": "mobile",
  "maxPages": 5
}
```

### Output examples

Each audited page is one dataset item. A later platform test records measured values in `store-draft/sample-output.json`. Shape:

```json
{
  "kind": "page",
  "url": "https://crawlee.dev/",
  "status": "ok",
  "formFactor": "mobile",
  "performanceScore": 58,
  "accessibilityScore": 95,
  "bestPracticesScore": 73,
  "seoScore": 92,
  "lcpMs": 4167,
  "cls": 0.001,
  "tbtMs": 1291,
  "opportunities": [
    { "id": "unused-javascript", "title": "Reduce unused JavaScript" }
  ]
}
```

The last item is a summary with average scores and a reminder that the data source is lab Lighthouse, not the PageSpeed Insights API.

### Lab metrics versus field data

Lighthouse simulates a device and a network. Core Web Vitals in the wild (CrUX, Search Console) are measured from real users and can differ, sometimes a lot, from a lab run. Use this Actor to catch large images, long JavaScript, layout shifts and missing SEO basics. Use field data when you need to know how real visitors experience the page. INP is not always present in every Lighthouse version; when it is missing, TBT is the lab proxy for main-thread blocking.

### Troubleshooting

- **A run takes longer than a simple HTTP Actor:** Chrome plus Lighthouse typically needs tens of seconds per URL. That is expected.
- **Out of memory:** the default is 2048 MB. If a heavy page fails with an out-of-memory error, raise memory in the run options (up to 4096 MB).
- **Non-HTML skipped:** URLs that look like files (PDF, images, `robots.txt`, and similar) are skipped.
- **robots.txt:** disallowed paths are skipped and recorded with a reason.
- **Timeouts or blocked sites:** the row is marked `failed`. There is no proxy, so some sites that detect headless Chrome may refuse the audit.
- **Scores look “too good” or “too bad”:** lab results depend on Lighthouse throttling and the current page. Re-run the same URL if you need to confirm a spike.

### Pricing

This Actor uses **pay-per-event** pricing. You pay for finished work, not for a vague compute bundle:

| Event | When it is charged | Price |
| --- | --- | --- |
| **Page audited** (primary) | Each page that Lighthouse audited successfully | **$0.02 per page** |
| **Actor start** | Automatically when the run starts | **$0.00005** per GB of memory (minimum one event) |

The default memory is **2048 MB**, so a run is typically charged **two** start events ($0.0001) plus $0.02 per successful page. One audited page at the default memory costs **$0.0201** at these event prices. Failed or skipped pages are not charged as page audits.

Because each URL starts a full Lighthouse pass in Chrome, start with one or two pages. Set a maximum cost per run in the Console or API if you want a hard spending cap. You can export results as JSON, CSV or Excel, run the Actor via the Apify API, or schedule it.

### FAQ

**Is this the Google PageSpeed Insights API?** No. This Actor runs open-source Lighthouse in Chrome on Apify. It does not call the PageSpeed Insights API and does not return Chrome UX Report field data.

**Are the Core Web Vitals the same as in Search Console?** No. These are lab metrics under Lighthouse throttling. Field data from real users can differ.

**Can I run a bulk PageSpeed or Core Web Vitals test for many URLs?** Yes, up to 25 URLs per run (`maxPages`). For more pages, split them over several runs or a schedule.

**Can I compare mobile and desktop scores?** Yes. Run once with `formFactor` set to `mobile` and once with `desktop`.

**Do I need a Google API key?** No.

**Why is a run slower and heavier than an HTTP audit?** Chrome plus Lighthouse typically needs tens of seconds per URL and 2048 MB of memory. That is expected.

### Related Actors

Other tools from the same developer that fit the same workflows:

- [SEO, GEO & AEO Audit: AI Search Readiness Checker](https://apify.com/blithe_gambol_x3a/website-ai-search-readiness-auditor) — Website audit for AI search readiness: SEO, GEO, AEO, robots.txt and an llms.txt checker.
- [On-Page SEO Audit & SEO Checker: Meta, Schema](https://apify.com/blithe_gambol_x3a/on-page-seo-audit) — Classic on-page SEO audit and SEO checker with a 0–100 score for titles, meta, headings and JSON-LD.
- [Tech Stack Detector: Website Technology Lookup](https://apify.com/blithe_gambol_x3a/website-tech-stack-detector) — BuiltWith and Wappalyzer alternative: detect CMS, JavaScript frameworks, analytics and CDN from public HTML.
- [Website Change Monitor & Changelog Checker](https://apify.com/blithe_gambol_x3a/website-change-monitor) — Website change monitor and changelog checker with a short line diff.
- [Greenhouse Scraper: Lever & Ashby Job Scraper](https://apify.com/blithe_gambol_x3a/ats-job-board-scraper) — Greenhouse scraper and job scraper for official Lever and Ashby board APIs.

### Changelog

- **2026-11-15** — Discoverability and visual update: sharper Store titles, README input and output screenshots, and clearer example inputs where needed.
- **2026-11-14** — First public release on Apify Store with pay-per-event pricing.

# Actor input Schema

## `startUrls` (type: `array`):

Public http(s) HTML pages to audit. Start with one home page or landing page. Non-HTML URLs are skipped. robots.txt is respected.

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

Lighthouse device emulation. Mobile is the default because Core Web Vitals are often judged on mobile.

## `maxPages` (type: `integer`):

Maximum number of URLs to audit in this run (1–25). Extra URLs are ignored. Each page starts a full Lighthouse pass, so keep this small for a first Try run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://web.dev/"
    },
    {
      "url": "https://www.wikipedia.org/"
    }
  ],
  "formFactor": "mobile",
  "maxPages": 5
}
```

# Actor output Schema

## `pages` (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 = {
    "startUrls": [
        {
            "url": "https://web.dev/"
        },
        {
            "url": "https://www.wikipedia.org/"
        }
    ],
    "maxPages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("blithe_gambol_x3a/lighthouse-core-web-vitals").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 = {
    "startUrls": [
        { "url": "https://web.dev/" },
        { "url": "https://www.wikipedia.org/" },
    ],
    "maxPages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("blithe_gambol_x3a/lighthouse-core-web-vitals").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 '{
  "startUrls": [
    {
      "url": "https://web.dev/"
    },
    {
      "url": "https://www.wikipedia.org/"
    }
  ],
  "maxPages": 5
}' |
apify call blithe_gambol_x3a/lighthouse-core-web-vitals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blithe_gambol_x3a/lighthouse-core-web-vitals"
        }
    }
}
```

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/J6eZoA4DDBbaFvKcb/builds/igUuzE6eWXCRED8Ot/openapi.json
