# Bulk Lighthouse Audit – Core Web Vitals, SEO, Speed (`datiaperti-it/lighthouse-audit`) Actor

Run Google Lighthouse on many pages at once, on mobile and desktop: performance, accessibility, best practices and SEO scores, Core Web Vitals (LCP, CLS, TBT), the biggest speed improvements and failed checks. No API key, no PageSpeed quota. Failed pages are free.

- **URL**: https://apify.com/datiaperti-it/lighthouse-audit.md
- **Developed by:** [Dati Aperti IT](https://apify.com/datiaperti-it) (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 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 – Core Web Vitals, SEO, Speed

Run **Google Lighthouse** on **many pages at once**, on **mobile and desktop**, and get one clean row per
page. Each row has the four scores (**performance, accessibility, best practices, SEO**), the **Core
Web Vitals**, the **biggest speed improvements** and the **failed checks**.

- **No API key, no PageSpeed quota.** Lighthouse runs in a real headless Chrome on Apify.
- **Actionable:** the top 5 improvements are ranked by estimated time saved, and failed accessibility,
  best-practice and SEO checks are listed by name.
- **Full report when you need it:** an option saves the complete Lighthouse HTML report of every audit,
  ready to send to a client.
- **Pay only for completed audits.** Pages that fail to load are listed in `FAILED_URLS` and cost
  nothing.

### Who uses it

- **SEO agencies and freelancers:** audit a whole site or a client's top pages in one run, then track the
  scores over time with a schedule.
- **Developers:** check performance before and after a release.
- **Site owners:** find the slow pages hurting Google rankings.
- **AI agents:** "audit these 20 URLs and tell me what to fix first", through the Apify MCP server.

### Input

| Field | What it does |
|---|---|
| Web pages | One address per line. |
| Device | Mobile (default, what Google uses for ranking), desktop, or both. |
| Categories | Performance, accessibility, best practices, SEO. All by default. |
| Save the full HTML report | One complete Lighthouse report per audit. |
| Page load timeout | How long to wait for slow pages. |

### Output example

```json
{
  "url": "https://example.com",
  "finalUrl": "https://example.com/",
  "device": "mobile",
  "scores": {"performance": 73, "accessibility": 90, "bestPractices": 100, "seo": 83},
  "metrics": {"lcpMs": 3457, "fcpMs": 1200, "tbtMs": 150, "cls": 0.012, "speedIndexMs": 2500, "serverResponseMs": 180},
  "topImprovements": [
    {"id": "render-blocking-insight", "title": "Render blocking requests", "savingsMs": 1200, "displayValue": "Est savings of 600 ms"}
  ],
  "failedChecks": {
    "accessibility": ["Image elements do not have [alt] attributes"],
    "best-practices": [],
    "seo": ["Document does not have a meta description"]
  },
  "lighthouseVersion": "13.6.0",
  "auditedAt": "2026-11-12T15:00:00.000Z",
  "reportUrl": null
}
```

### How much does it cost?

You pay **per completed audit**. One page on mobile is one audit; "Both" devices counts as two. Failed
pages are free.

### FAQ

**Why are my scores different from PageSpeed Insights?** Lighthouse lab scores always vary a little
between runs and machines. Compare pages run with this Actor over time, and look at the metrics and
improvements more than at the exact score.

**Does it include field data (CrUX)?** No. This is lab data from Lighthouse. Field data comes from real
Chrome users and is available only for popular pages.

**Can I audit pages behind a login?** No, only public pages.

**Can I run it every week?** Yes. Schedule a saved task and send the results to Google Sheets, Slack,
Make, Zapier or n8n.

**Can I suggest a feature?** Yes, open an issue in the Issues tab: we usually answer within a few days.

Lighthouse is open-source software by Google (Apache 2.0). This Actor is independent and not affiliated
with Google.

# Actor input Schema

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

Pages to audit, one per line. 'example.com' works too.

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

Mobile is what Google uses for ranking. 'Both' audits every page twice and costs two audits.

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

Which Lighthouse categories to run. Empty means all four.

## `saveHtmlReport` (type: `boolean`):

Also save the complete Lighthouse report of each audit, to open in a browser or send to a client.

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

How long Lighthouse waits for a page to load. Failed audits are not charged.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://example.com"
  ],
  "device": "mobile",
  "saveHtmlReport": false,
  "timeoutSecs": 60
}
```

# Actor output Schema

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

All results of the run, one item per record.

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

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

```

## MCP server setup

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