# Page Speed Audit with Lighthouse: Bulk Core Web Vitals (`forgeloop/lighthouse-audit`) Actor

Run Lighthouse page speed audits on many URLs at once: performance, accessibility, best practices and SEO scores, Core Web Vitals (LCP, CLS, TBT), failing audits and the full HTML report. Mobile and desktop, no API key, no daily quota. Pay per audit.

- **URL**: https://apify.com/forgeloop/lighthouse-audit.md
- **Developed by:** [Markus Heiß](https://apify.com/forgeloop) (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 $5.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

## Page Speed Audit with Lighthouse: Bulk Core Web Vitals

Run Lighthouse audits on a whole list of URLs in one go. For every page and device you get the four Lighthouse scores, the Core Web Vitals and lab metrics, an optional list of failing audits and the full Lighthouse HTML report.

The audits run with the open source Lighthouse engine (version 13) inside the Actor, the same engine behind PageSpeed Insights and Chrome DevTools. No Google API key is needed and there is no daily quota.

### Use cases

- **SEO agencies:** audit every page of a client site, or the top pages of several clients, and export the scores to a spreadsheet or report.
- **Core Web Vitals monitoring:** track LCP, CLS and TBT across hundreds of URLs instead of checking them one by one in PageSpeed Insights.
- **Scheduled checks:** run the Actor daily or weekly with an Apify schedule and compare results over time, or alert when a score drops after a release.
- **Competitor benchmarks:** compare your landing pages with those of competitors on mobile and desktop.
- **Accessibility and SEO hygiene:** find pages with missing meta descriptions, bad contrast, missing alt texts or crawl blockers.

### Features

- **Mobile and desktop** in one run. Each URL is audited once per selected device.
- **Four categories:** performance, accessibility, best practices and SEO, each as a score from 0 to 100. Pick only the ones you need.
- **Lab metrics:** First Contentful Paint, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, Speed Index and Time to Interactive.
- **Failing audits** with id, title and score, worst first, if you switch them on.
- **Full HTML report** per audit, the same report you know from Chrome DevTools, stored in the run's key-value store with a direct link.
- **Throttling:** simulated (comparable with PageSpeed Insights) or none (raw speed of the run's machine).
- Clear error per URL and device. Failed audits are not charged.

### Input

| Field | Description | Default |
|---|---|---|
| URLs | Pages to audit | |
| Devices | mobile, desktop or both | mobile |
| Categories | performance, accessibility, best-practices, seo | all four |
| Throttling | simulated or none | simulated |
| Include failing audits | Add the list of audits that did not pass | off |
| Parallel audits | 1 or 2 | 1 |
| Audit timeout | Seconds per audit, 30 to 300 | 90 |

Example:

```json
{
  "urls": [{ "url": "https://www.wikipedia.org" }, { "url": "https://web.dev" }],
  "devices": ["mobile", "desktop"],
  "includeAudits": true
}
```

### Output

One dataset item per URL and device. Scores are integers from 0 to 100. A category you did not select has the score `null`.

```json
{
  "url": "https://www.wikipedia.org",
  "finalUrl": "https://www.wikipedia.org/",
  "device": "mobile",
  "scores": { "performance": 93, "accessibility": 95, "bestPractices": 100, "seo": 100 },
  "metrics": {
    "firstContentfulPaintMs": 924,
    "largestContentfulPaintMs": 1262,
    "totalBlockingTimeMs": 332,
    "cumulativeLayoutShift": 0,
    "speedIndexMs": 1096,
    "timeToInteractiveMs": 1307
  },
  "failingAudits": [
    { "id": "label", "title": "Form elements do not have associated labels", "score": 0 },
    { "id": "cache-insight", "title": "Use efficient cache lifetimes", "score": 50 }
  ],
  "lighthouseVersion": "13.6.0",
  "auditedAt": "2026-11-11T08:00:00.000Z",
  "reportKey": "lighthouse-www-wikipedia-org-mobile-5b760de586.html",
  "reportUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/lighthouse-www-wikipedia-org-mobile-5b760de586.html",
  "error": null
}
```

`failingAudits` is only present when "Include failing audits" is on. A failed audit has all scores and metrics set to `null` and the reason in `error`.

### Memory and speed

Lighthouse starts a full Chromium for every audit and needs a lot of CPU. The default is 2048 MB, where one audit takes about 20 to 40 seconds. With 4096 MB audits run about twice as fast and results are a bit more stable, at roughly double the platform cost.

Two parallel audits share the same CPU. That can lower performance scores and does not always finish faster, so keep "Parallel audits" at 1 unless you run with 8 GB or more.

### Pricing

Pay per successful audit: one URL on one device is one audit. A URL audited for mobile and desktop counts as two. Errors cost nothing.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

### Limits

- Lab data only. The scores come from one load of the page in the cloud, not from real user data (the Chrome UX Report field data in PageSpeed Insights). Performance scores vary by a few points between runs, as they do in PageSpeed Insights.
- Scores can differ slightly from PageSpeed Insights, which runs on Google's own machines and network.
- Pages behind a login are not supported. Some sites block automated browsers or show a bot check, which then gets audited instead of the page.
- Only public addresses. Local and private network addresses are refused, also when a page redirects to them or loads files from them.
- One Lighthouse run per URL and device. For averages over several runs, add the same URL to a scheduled run and average the results.

### Data source, permitted use and legal

- **Data source:** Public web pages at the URLs you enter. The Actor fetches them live during the run. The audit runs inside the Actor with the open source Lighthouse engine.
- **Snapshot:** Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Permitted use:** Process only content you are allowed to access and use, for example your own websites and documents or public pages you have a legitimate reason to process. Respect the terms of the websites and the rights in the content.
- **Your responsibility:** You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
- **No circumvention:** The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
- **Request volume:** One full page load per URL and device, like a normal browser visit. At most 2 audits in parallel. Do not use it to put excessive load on a website.
- Lighthouse is an open source project published by Google. This Actor is not affiliated with, endorsed or sponsored by Google.
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

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

Pages to audit. A missing https:// is added automatically. Each URL is audited once per selected device. Format: a list of objects with a url key, like \[{"url": "https://example.com"}]. Plain strings are not accepted.

## `devices` (type: `array`):

Mobile uses Lighthouse's mobile emulation (Moto G Power screen, slow 4G and 4x CPU slowdown when throttled). Desktop uses the desktop preset. Each device is a separate audit. Each selected device is one charged audit per URL.

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

Lighthouse categories to score. Fewer categories make each audit a little faster.

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

Simulated applies Lighthouse's standard network and CPU throttling, so scores are comparable with PageSpeed Insights. None measures the page at the full speed of the run's machine and network.

## `includeAudits` (type: `boolean`):

Add a list of the audits that did not pass, with id, title and score from 0 to 100, to every result.

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

How many audits run at the same time. Lighthouse needs a lot of CPU, and two parallel audits can lower performance scores. Use 2 only with 8 GB memory or more.

## `timeoutSeconds` (type: `integer`):

Give up on one audit after this many seconds. 30 to 300.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.wikipedia.org"
    },
    {
      "url": "https://apify.com"
    }
  ],
  "devices": [
    "mobile"
  ],
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "throttling": "simulated",
  "includeAudits": false,
  "maxConcurrency": 1,
  "timeoutSeconds": 90
}
```

# Actor output Schema

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

No description

## `reports` (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": [
        {
            "url": "https://www.wikipedia.org"
        },
        {
            "url": "https://apify.com"
        }
    ]
};

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

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

```

## MCP server setup

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