# Bulk Lighthouse Audit - PageSpeed & Core Web Vitals (`siteauditlab/bulk-lighthouse-audit`) Actor

Run Google Lighthouse on hundreds of URLs: Performance, Accessibility, Best practices and SEO scores, Core Web Vitals (LCP, CLS, TBT), failed audits and full HTML reports. Mobile or desktop, no PageSpeed API key needed. Export to CSV, Excel, JSON.

- **URL**: https://apify.com/siteauditlab/bulk-lighthouse-audit.md
- **Developed by:** [Site Audit Lab](https://apify.com/siteauditlab) (community)
- **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 does Bulk Lighthouse Audit do?

It runs **Google Lighthouse** on a list of URLs and gives you, for each page, the four Lighthouse scores and the Core Web Vitals in one table:

- **Performance, Accessibility, Best practices and SEO scores** (0 to 100), the same scores as PageSpeed Insights;
- **Core Web Vitals and lab metrics:** LCP, CLS, TBT, FCP, Speed Index, Time to Interactive;
- the **failed audits** for each category and the **biggest opportunities** with estimated time saved;
- optionally the **full Lighthouse HTML report** for every page.

No Google API key, no PageSpeed quota: Lighthouse runs in a real Chrome on Apify.

### Who is it for?

- **Web agencies and SEO consultants** checking dozens of client pages before a pitch or a monthly report.
- **E-commerce and content teams** tracking templates (home, category, product, article) after each release.
- **Developers** adding a performance check to a schedule or a CI pipeline through the Apify API.

### How to use it

1. Paste your **URLs** (one audit per URL, no crawling) or upload a file.
2. Choose the **device**: mobile (PageSpeed Insights settings: slow 4G, 4x CPU slowdown), desktop, or both.
3. Click **Start**. Each page takes about 15 to 30 seconds.
4. Export the table to CSV, Excel or JSON, or schedule the Actor to follow your scores over time.

### Input example

```json
{
  "startUrls": [{ "url": "https://example.com" }, { "url": "https://example.com/pricing" }],
  "device": "mobile",
  "categories": ["performance", "accessibility", "best-practices", "seo"],
  "saveHtmlReports": true
}
```

### Output example

```json
{
  "url": "https://example.com/",
  "device": "mobile",
  "performanceScore": 72,
  "accessibilityScore": 89,
  "bestPracticesScore": 96,
  "seoScore": 92,
  "lcpMs": 3410,
  "cls": 0.041,
  "tbtMs": 380,
  "fcpMs": 1820,
  "speedIndexMs": 2950,
  "ttiMs": 5120,
  "opportunities": [{ "id": "render-blocking-resources", "title": "Eliminate render-blocking resources", "savingsMs": 640 }],
  "failedAudits": [
    { "category": "accessibility", "id": "color-contrast", "title": "Background and foreground colors do not have a sufficient contrast ratio.", "score": 0 }
  ],
  "failedAuditsCount": 7,
  "htmlReportUrl": "https://api.apify.com/v2/key-value-stores/.../records/report-mobile-https-example-com-",
  "auditedAt": "2026-10-31T14:40:27.073Z"
}
```

Pages that cannot be audited (timeout, error page, blocked) appear with an `error` field and are **not charged**.

### How much does it cost?

You pay per successful page audit (see the Pricing tab). With "Both" devices, one URL counts as two audits.

### Good to know

- Lab scores vary a little from run to run, like in PageSpeed Insights. For trends, compare several runs or use a schedule.
- Lighthouse checks only what it can test automatically. For a deeper WCAG accessibility review across a whole site, use our [Website Accessibility Audit](https://apify.com/siteauditlab/website-accessibility-audit).

### Other tools from Site Audit Lab

- [Website SEO Audit](https://apify.com/siteauditlab/website-seo-audit): crawl a site for broken links, meta tags and on-page SEO issues.
- [Website Accessibility Audit](https://apify.com/siteauditlab/website-accessibility-audit): WCAG 2.2 / EAA checks page by page.
- [Website Technology Detector](https://apify.com/siteauditlab/website-technology-detector): CMS, frameworks and outdated software.
- [Website Lead Qualifier](https://apify.com/siteauditlab/website-lead-qualifier): find business websites that need a redesign.

### Use with AI agents

Simple input (a list of URLs), so it works well through the Apify MCP server: ask your agent to "run a Lighthouse audit on these 20 pages and list the slowest ones".

# Actor input Schema

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

Pages to test with Google Lighthouse, one audit per URL (no crawling). Paste a list or upload a file.

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

Mobile uses a slow 4G network and a 4x slower CPU, the same settings as PageSpeed Insights.

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

Lighthouse categories to run. Fewer categories make audits a little faster.

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

Store the complete Lighthouse HTML report for each page and add its link to the results.

## `maxIssuesPerPage` (type: `integer`):

How many opportunities and failed audits (per category) to include in each result row.

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

Safety limit on the number of URLs audited in one run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "saveHtmlReports": false,
  "maxIssuesPerPage": 10,
  "maxUrls": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

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

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

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

```

## MCP server setup

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