# Bulk Lighthouse Audit: PageSpeed & Core Web Vitals, No Key (`mossfetch/bulk-lighthouse-audit`) Actor

Run Lighthouse on a list of URLs in headless Chrome. Returns performance, accessibility, best-practices and SEO scores plus LCP, CLS, TBT, FCP, Speed Index and the worst failed audits per URL. No Google key. $0.015 per URL.

- **URL**: https://apify.com/mossfetch/bulk-lighthouse-audit.md
- **Developed by:** [Mossfetch](https://apify.com/mossfetch) (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 $15.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

## Bulk Lighthouse Audit: PageSpeed & Core Web Vitals, No Key

Bulk Lighthouse and PageSpeed audit with Core Web Vitals, no API key. Use it when you need Core Web Vitals lab data and scores for many pages without a PageSpeed API key or quota. Run real Google Lighthouse on a list of URLs and get one row per page: performance, accessibility, best-practices and SEO scores, Core Web Vitals (LCP, CLS, TBT) and the top failed audits. Mobile or desktop.

This actor runs Lighthouse itself in headless Chrome, so it needs **no Google API key** and has **no PageSpeed Insights quota**. You pay per audit, and unreachable pages are not charged. Paste your URLs and click Start.

### Data source and licence

Scores come from [Lighthouse](https://github.com/GoogleChrome/lighthouse), released under the **Apache License 2.0**, run in headless Chrome. The Actor does **not** call the Google PageSpeed Insights API. Results are lab data measured from the Actor's servers; they are not field data (CrUX) and can differ from your own browser or from PageSpeed Insights.

### Fair use

Built for auditing **your own or your clients' sites**. Each URL is loaded once (plus the page's own assets) and nothing is crawled. Private and local addresses are rejected. Only the audit scores and metrics are stored, not page content.

### Input

| Field | Meaning |
|---|---|
| `urls` | Pages to audit (https:// is added if missing; duplicates are dropped) |
| `device` | `mobile` (default) or `desktop` |
| `categories` | any of `performance`, `accessibility`, `best-practices`, `seo` (default all four) |
| `topFailedAudits` | worst failed audits listed per URL (default 10) |
| `includeFullReport` | add the full Lighthouse JSON to each row (several MB per URL) |
| `maxConcurrency` | parallel audits, 1-4 (default 1). Run with 4096 MB, plus about 2 GB per extra parallel audit |
| `timeoutSecs` | per-URL limit (default 180); temporary errors get one retry |
| `maxUrls` | safety limit (default 100) |

### Output (one row per URL)

`url`, `finalUrl`, `status` (`ok` or `failed`), `error` (the reason when failed), `formFactor`, `performanceScore`, `accessibilityScore`, `bestPracticesScore`, `seoScore` (0-100), `lcpMs`, `cls`, `tbtMs`, `fcpMs`, `speedIndexMs`, `failedAudits` (id, title, score, displayValue), `lighthouseVersion`, `fetchedAt`, and optionally `lighthouseJson`.

A `RUN_SUMMARY` record lists audited, failed and skipped URLs and every failure reason.

### Pricing

Pay per event: **$0.015 per completed audit**, plus a start fee of **$0.001 per GB of memory** (4 GB by default, so $0.004 per run). A 10-page run costs about $0.15 plus $0.004. The prefilled input audits one URL (`https://example.com`) and costs about $0.019.

One charge per completed audit. Failed audits are reported in their row and are **not charged**. Platform compute is included in the event price.

### Tips

- Performance scores vary a few points between runs (normal for Lighthouse). For stable numbers, use `maxConcurrency` 1 and compare medians.
- Pages behind a login, bot walls or CAPTCHAs cannot be audited and are reported as failed with the reason.

### Sample output

One real row from a run of the prefilled input (`https://example.com`, mobile):

```json
{
  "url": "https://example.com/",
  "finalUrl": "https://example.com/",
  "status": "ok",
  "error": null,
  "formFactor": "mobile",
  "performanceScore": 100,
  "accessibilityScore": 96,
  "bestPracticesScore": 100,
  "seoScore": 80,
  "lcpMs": 790,
  "cls": 0,
  "tbtMs": 43,
  "fcpMs": 757,
  "speedIndexMs": 757,
  "failedAudits": [
    {
      "id": "landmark-one-main",
      "title": "Document does not have a main landmark.",
      "score": 0,
      "displayValue": null
    },
    {
      "id": "meta-description",
      "title": "Document does not have a meta description",
      "score": 0,
      "displayValue": null
    },
    {
      "id": "link-text",
      "title": "Links do not have descriptive text",
      "score": 0,
      "displayValue": "1 link found"
    },
    {
      "id": "network-dependency-tree-insight",
      "title": "Network dependency tree",
      "score": 0,
      "displayValue": null
    }
  ],
  "lighthouseVersion": "13.6.0",
  "fetchedAt": "2026-11-23T18:03:45.221Z",
  "source": "Lighthouse (Apache-2.0) run in headless Chrome"
}
```

### FAQ

**Mobile or desktop?** Set `device` to `mobile` (default: Moto G Power profile, slow 4G, 4x CPU slowdown) or `desktop`.

**Why do scores vary between runs?** These are lab measurements. Scores move a few points from run to run, and more when several audits run in parallel or memory is low. For stable numbers use `maxConcurrency` 1 with 4 GB of memory and compare medians.

**Are failed audits charged?** No. Pages that cannot be loaded are returned as `status: failed` with the reason and are free.

### Use it from code (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/mossfetch~bulk-lighthouse-audit/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com"],"device":"mobile"}'
```

Or with the JavaScript client: `await new ApifyClient({ token }).actor('mossfetch/bulk-lighthouse-audit').call(input)`, then read `defaultDatasetId`.

### Use in Make, n8n or Zapier

Run this Actor from Make, n8n or Zapier with an Apify account: add the Apify "Run Actor" step and select or enter the Actor `mossfetch/bulk-lighthouse-audit` (Actor ID `b0gzXPC98kZ4GsL5p`). Pass the input as JSON, then read the dataset in the next step. Nothing else to install.

# Actor input Schema

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

Pages to audit, one per entry (http or https; https:// is added if missing). Each URL is loaded once and nothing is crawled. Use it for your own or your clients' sites.

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

Lighthouse emulation profile.

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

Lighthouse categories to score. Fewer categories run slightly faster.

## `topFailedAudits` (type: `integer`):

How many of the worst failed audits to list per URL (0 = none).

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

Add the complete Lighthouse result to each row (several MB per URL; ideal for API use, heavy in the table view).

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

Audits in parallel, each in its own Chrome. Each parallel audit runs in its own Chrome and needs about 2 GB of run memory (4096 MB for 1, 8192 MB for 4). Higher values can distort performance scores.

## `timeoutSecs` (type: `integer`):

A URL that does not finish in this time is reported as failed (one retry for temporary errors).

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

Safety limit on how many URLs are audited in this run.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "topFailedAudits": 10,
  "includeFullReport": false,
  "maxConcurrency": 1,
  "timeoutSecs": 180,
  "maxUrls": 100
}
```

# Actor output Schema

## `audits` (type: `string`):

One row per URL: scores, Core Web Vitals lab metrics, failed audits, or the failure reason.

## `runSummary` (type: `string`):

URLs audited, failed and skipped, and the reason for every failure.

# 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://example.com"
    ]
};

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

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

```

## MCP server setup

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