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

Run real Google Lighthouse on hundreds of URLs or a whole sitemap. Performance, accessibility, best practices, SEO and AI-agent readiness scores, Core Web Vitals, top fixes and a shareable HTML report for every page. Mobile and desktop.

- **URL**: https://apify.com/cuestadata/pagespeed-lighthouse-audit.md
- **Developed by:** [Cuesta Data](https://apify.com/cuestadata) (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 $8.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

### What does PageSpeed & Lighthouse Bulk Audit do?

**PageSpeed & Lighthouse Bulk Audit** runs real **Google Lighthouse 13** (the engine behind PageSpeed Insights and Chrome DevTools) on as many pages as you like: paste a list of URLs or point it at an **XML sitemap**, pick mobile, desktop or both, and get for every page:

- **Scores** for Performance, Accessibility, Best Practices, SEO and the new **Agentic Browsing** (AI-agent readiness) category
- **Core Web Vitals lab metrics**: LCP, CLS, TBT, FCP, Speed Index, server response time, page weight and request count, each rated good / needs improvement / poor
- **Top speed fixes** with estimated time and size savings (render-blocking requests, cache lifetimes, unused JavaScript, image delivery and more)
- **Failed checks** for accessibility, best practices, SEO and agent readiness (contrast, missing meta description, link text, llms.txt, ...)
- A **shareable Lighthouse HTML report** for every page, plus one **overview report** for the whole run
- Optional **real-user Core Web Vitals** (the "field data" from PageSpeed Insights: LCP, INP and CLS at p75) when you add your own free Chrome UX Report API key

No Google API key, no PageSpeed Insights quota, no browser extensions. Lighthouse runs inside the Actor, so you can audit 5 pages or 5,000.

### Why use it?

- **SEO and web agencies**: audit every client page in one run and send the HTML reports.
- **Developers**: check performance and accessibility before and after a release, or on a schedule to catch regressions.
- **E-commerce teams**: find the slowest product and category pages straight from your sitemap.
- **Site migrations**: compare Core Web Vitals of old and new URLs.
- **AI readiness checks**: see which pages pass Lighthouse's new Agentic Browsing checks (accessibility tree, llms.txt, WebMCP).

### How to use it

1. Add one or more **page URLs** (one per line), or a **sitemap URL**, or both.
2. Choose **Mobile**, **Desktop** or **Both**.
3. Click **Start**. Each audit takes roughly 15-30 seconds.
4. Open the **Overview report** in the Output tab, or export the results as JSON, CSV or Excel. Each row links to its full Lighthouse report.

Schedule the Actor (daily or weekly) to track scores over time, or call it from the Apify API, Make, Zapier, n8n or an AI agent through the Apify MCP server.

### Input example

```json
{
    "urls": ["https://crawlee.dev", "https://apify.com/pricing"],
    "sitemapUrl": "https://example.com/sitemap.xml",
    "maxUrls": 50,
    "device": "both",
    "categories": ["performance", "accessibility", "best-practices", "seo", "agentic-browsing"],
    "saveHtmlReports": true
}
```

### Output example

One row per URL and device:

```json
{
    "url": "https://crawlee.dev/",
    "finalUrl": "https://crawlee.dev/",
    "device": "mobile",
    "lighthouseVersion": "13.6.0",
    "performanceScore": 42,
    "accessibilityScore": 95,
    "bestPracticesScore": 73,
    "seoScore": 92,
    "agenticBrowsingScore": 100,
    "agenticChecks": { "accessibilityTree": "pass", "llmsTxt": "pass", "webMcpTools": "not found", "agentResourceDiscovery": "not found" },
    "lcpMs": 5632,
    "fcpMs": 1986,
    "tbtMs": 4819,
    "cls": 0.001,
    "speedIndexMs": 6005,
    "serverResponseMs": 105,
    "totalPageKb": 1904,
    "requestCount": 86,
    "labRatings": { "lcp": "poor", "cls": "good", "tbt": "poor", "fcp": "needs-improvement", "speedIndex": "poor" },
    "opportunities": [
        { "id": "render-blocking-insight", "title": "Render-blocking requests", "estimatedSavingsMs": 950, "estimatedSavingsKb": null },
        { "id": "unused-javascript", "title": "Reduce unused JavaScript", "estimatedSavingsMs": 500, "estimatedSavingsKb": 547 }
    ],
    "failedAudits": [
        { "category": "accessibility", "id": "color-contrast", "title": "Background and foreground colors do not have a sufficient contrast ratio." },
        { "category": "seo", "id": "link-text", "title": "Links do not have descriptive text" }
    ],
    "fieldData": null,
    "reportUrl": "https://api.apify.com/v2/key-value-stores/.../records/report-mobile-0000",
    "httpStatus": 200,
    "runs": 1,
    "auditedAt": "2026-11-19T01:12:14.361Z",
    "error": null
}
```

With a Chrome UX Report API key, `fieldData` contains real-user p75 values such as `lcpP75Ms`, `inpP75Ms`, `clsP75`, their ratings, `coreWebVitalsPassed` and the collection period, for the URL or (when the URL has too little traffic) its origin.

The run's key-value store also holds:

- `REPORT`: an HTML overview of every audited page with colour-coded scores and top fixes
- `SUMMARY`: average scores, slowest pages and run details as JSON
- `report-<device>-<n>`: the full Lighthouse HTML report for each page

### How much does it cost?

You pay **per Lighthouse audit**: one URL on one device is one audit (see the Pricing tab for the current price and volume discounts). Failed pages (404s, DNS errors, timeouts) are **not charged**. With "Runs per URL" above 1, every run counts as an audit. Set a maximum charge per run in the run options and the Actor stops cleanly when it is reached.

### Scores vs PageSpeed Insights

This Actor runs the same Lighthouse version and the same mobile and desktop profiles as PageSpeed Insights, but on a different machine and network, so scores can differ by a few points (that is also true between two PageSpeed Insights runs). For the steadiest results:

- keep **Parallel audits** at 1 (Lighthouse measures CPU time),
- leave **CPU calibration** on, which scales mobile CPU throttling to the server's measured speed,
- use **Runs per URL** = 3 to keep the median result.

Lab scores are best for spotting problems and comparing pages; Google ranks on real-user (field) data, which you can add with a Chrome UX Report API key.

### Use with AI agents (MCP)

Connect this tool to Claude, ChatGPT, Cursor or any other MCP client through the [Apify MCP server](https://docs.apify.com/mcp). Add this server URL to your client and sign in with your Apify account:

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com/?tools=actors,docs,cuestadata/pagespeed-lighthouse-audit" }
  }
}
```

Then ask in plain words, for example: *"Check Core Web Vitals and the Lighthouse performance score for every page in my sitemap."* The agent fills in the input, runs PageSpeed & Lighthouse Bulk Audit and reads the results.

AI agents without an Apify account can pay per run with a prepaid token (x402, Skyfire or card) through [Apify agentic payments](https://docs.apify.com/agents/payments). This tool uses limited permissions, so it works with those tokens.

### More tools from Cuesta Data

| Tool | What it does |
|---|---|
| [Website Screenshot & PDF](https://apify.com/cuestadata/website-screenshot-pdf) | Full-page, mobile and element screenshots or PDFs of any list of URLs, with change detection. |
| [PDF & Image to Text (OCR)](https://apify.com/cuestadata/pdf-image-text-extractor) | Text from digital and scanned PDFs and images, page by page, with OCR in 7 languages. |
| [Company Jobs API](https://apify.com/cuestadata/company-jobs-feed) | Every open job from company career pages on Greenhouse, Lever, Ashby, Workable and more. |
| [SEO Site Audit](https://apify.com/cuestadata/seo-site-audit) | Crawl a site and check titles, meta tags, headings, broken links, duplicates and schema, with an HTML report. |
| [Domain Availability Checker](https://apify.com/cuestadata/domain-availability-checker) | Bulk domain availability for name ideas x TLDs, confirmed by registry RDAP/WHOIS, with registrar and expiry dates. |
| [Bulk File Downloader](https://apify.com/cuestadata/bulk-file-downloader) | Download files from a URL list or every PDF/image linked on a page, with one ZIP link and SHA-256 hashes. |
| [Link Preview & Website Metadata](https://apify.com/cuestadata/link-preview-metadata) | Title, description, Open Graph image, favicon, logo, brand color, JSON-LD and oEmbed for any list of URLs. |

### FAQ

**Do I need a Google API key?** No. Lighthouse runs inside the Actor. The optional key is only for real-user field data from the Chrome UX Report API, which Google provides free.

**How do I get a Chrome UX Report API key?** In Google Cloud Console, create a project, enable the "Chrome UX Report API", then create an API key under APIs & Services > Credentials. Paste it into the optional field; it is stored as a secret.

**Can it audit pages behind a login?** No, it audits publicly reachable pages only.

**Is it legal?** Lighthouse is Google's open-source auditing tool (Apache-2.0). The Actor loads each page once per audit like a normal visitor. Audit sites you own or have permission to test, and respect their terms.

**What is the Agentic Browsing score?** A new Lighthouse 13 category that checks how well a page works for AI agents: a well-formed accessibility tree, layout stability, an llms.txt file and WebMCP tools. It is optional and you can turn it off.

**Something not working?** Open an issue on the Issues tab with the URL and run link and we'll take a look.

Built and maintained by Cuesta Data.

# Actor input Schema

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

One page per line, e.g. https://example.com/pricing. Each URL is audited separately (Lighthouse audits single pages; add a sitemap below to audit a whole site).

## `sitemapUrl` (type: `string`):

Audit the pages listed in an XML sitemap or sitemap index, e.g. https://example.com/sitemap.xml. Combined with the URLs above, up to Max URLs.

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

Upper limit on how many distinct URLs are audited (from the list and the sitemap together).

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

Mobile emulates a mid-range phone on a slow 4G connection, the same profile PageSpeed Insights uses. Both runs one mobile and one desktop audit per URL.

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

Which Lighthouse categories to score. Fewer categories make each audit a little faster; the price per audit is the same.

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

Stores the standard Lighthouse report (the same view as Chrome DevTools) in the run's key-value store and links it from each result as reportUrl. Turn off to save storage on very large runs.

## `cruxApiKey` (type: `string`):

Add your own free Google Cloud API key with the Chrome UX Report API enabled to also get real-user Core Web Vitals (LCP, INP, CLS p75, the 'field data' shown in PageSpeed Insights) for each URL, falling back to the whole origin when a page has too little traffic. No extra charge from us.

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

Run Lighthouse several times per URL and keep the median performance result, like many SEO teams do to smooth out network noise. Each run is billed as one audit.

## `cpuCalibration` (type: `boolean`):

Measures the server's CPU speed with Lighthouse's own benchmark and scales mobile CPU throttling so a slower cloud CPU doesn't drag scores down. Turn off to always use Lighthouse's default 4x slowdown.

## `throttling` (type: `string`):

Simulated throttling is what PageSpeed Insights and Lighthouse use by default. No throttling measures the page on the server's fast connection.

## `maxConcurrency` (type: `integer`):

How many audits run at once. Lighthouse measures CPU time, so parallel audits on a shared machine can lower performance scores. Keep 1 for accurate scores; for 2+ give the run about 4 GB of memory per parallel audit.

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

How long Lighthouse waits for a page to load before reporting a timeout. Failed and timed-out pages are not charged.

## Actor input object example

```json
{
  "urls": [
    "https://crawlee.dev"
  ],
  "maxUrls": 100,
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo",
    "agentic-browsing"
  ],
  "saveHtmlReports": true,
  "runsPerUrl": 1,
  "cpuCalibration": true,
  "throttling": "simulate",
  "maxConcurrency": 1,
  "pageTimeoutSecs": 60
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `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://crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cuestadata/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": ["https://crawlee.dev"] }

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

```

## MCP server setup

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