# Lighthouse Audit Tool — Performance, SEO & Accessibility (`junipr/lighthouse-checker`) Actor

Run Lighthouse audits for URLs and export performance, accessibility, best-practices, SEO, PWA scores, diagnostics, and report artifacts.

- **URL**: https://apify.com/junipr/lighthouse-checker.md
- **Developed by:** [junipr](https://apify.com/junipr) (community)
- **Categories:** SEO tools
- **Stats:** 2 total users, 1 monthly users, 10.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.00 / 1,000 url 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Lighthouse Audit Tool — Performance, SEO & Accessibility

Run Lighthouse audits for URLs and export performance, accessibility, best-practices, SEO, PWA scores, diagnostics, and report artifacts.

### What this actor does

Run Lighthouse audits for URLs and export performance, accessibility, best-practices, SEO, PWA scores, diagnostics, and report artifacts. The actor is configured for public or user-supplied sources, evidence-backed output rows, capped runs, and KVS summaries for blocked, empty, duplicate, or capped work.

### What you can use it for

- Build repeatable lighthouse checker datasets for analysis and automation.
- Export records with source URLs, evidence fields, and run summaries.
- Run buyer-ready tasks for: Run Lighthouse for one URL; Export SEO and accessibility scores; Audit mobile performance diagnostics.

Search-intent terms: lighthouse checker, lighthouse audit, performance audit, core web vitals, accessibility audit, seo score, page speed.

### Inputs

The input schema supports the actor's source fields plus cost and quality controls. Important caps include `urls`, `categories`, `maxConcurrency`, `auditTimeout`, `throttling`, `formFactor`. Public task examples below provide small, safe starting inputs.

### Outputs

Paid dataset rows and paid KVS artifacts are written only after the configured PPE charge succeeds. Rows include source/evidence fields where the actor can determine them and avoid fabricated values.

### Key-value store reports

Every run writes `SUMMARY.md` and `SUMMARY.json`. Diagnostic CSV or JSON reports are used for blocked pages, no-result pages, duplicates, unsupported inputs, and capped runs instead of paid dataset rows.

### Pricing

This actor uses pay-per-event pricing with Apify platform usage included in the event prices. Store discount tiers are configured for FREE, BRONZE, SILVER, and GOLD users.

| Event | Unit | FREE | BRONZE | SILVER | GOLD |
|---|---:|---:|---:|---:|---:|
| `actor-start` | run | $0.05000 | $0.05000 | $0.04500 | $0.04000 |
| `url-audited` | page | $0.01300 | $0.01300 | $0.01170 | $0.01040 |

Primary paid output event: `url-audited`. Runtime-paid dataset rows and runtime-paid artifacts use this active paid-output event unless a future pricing revision adds an actor-specific artifact boundary with matching code.

### Cost controls and max-charge behavior

Default max charge: $25.00. When the run reaches the max charge or an event-charge limit, it stops gracefully and writes free summary diagnostics without adding unpaid dataset rows.

### Platform usage / proxy / browser / API notes

The configured model is fixed-inclusive PPE: platform usage is included in event prices and the platform-usage pass-through toggle is off. Features that require browser rendering, proxies, provider APIs, or additional fetches are bounded by the input caps and priced through explicit events.

### Reliability notes and limitations

The actor processes public or permissioned inputs only. Blocked pages, login walls, unsupported formats, empty results, and provider errors are recorded as diagnostics. The actor does not fabricate rankings, prices, reviews, sentiment, traffic, compliance status, or private contact data when source evidence is unavailable.

### Example inputs

```json
{
  "urls": [
    "https://crawlee.dev"
  ],
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "throttling": "simulated",
  "locale": "en",
  "performanceThreshold": 0,
  "accessibilityThreshold": 0,
  "bestPracticesThreshold": 0,
  "seoThreshold": 0,
  "failOnThreshold": false,
  "includeAuditDetails": true,
  "includeOpportunities": true,
  "includeDiagnostics": true,
  "includeScreenshot": false,
  "generateHtmlReport": false,
  "includeRawLighthouse": false,
  "maxConcurrency": 1,
  "auditTimeout": 120000,
  "retryOnFailure": true,
  "waitUntil": "load",
  "proxyConfiguration": {}
}
```

### Public task examples

- Run Lighthouse for one URL: Dataset rows matching the run lighthouse for one url use case, plus SUMMARY.md and SUMMARY.json reports in the key-value store.
- Export SEO and accessibility scores: Dataset rows matching the export seo and accessibility scores use case, plus SUMMARY.md and SUMMARY.json reports in the key-value store.
- Audit mobile performance diagnostics: Dataset rows matching the audit mobile performance diagnostics use case, plus SUMMARY.md and SUMMARY.json reports in the key-value store.

### Ethical/allowed-use notes

Use this actor only for public data, owned files, or sources you have permission to process. Respect source terms, privacy expectations, robots guidance, and applicable laws. Do not use the actor to collect secrets, bypass access controls, or make unsupported legal, financial, medical, or compliance decisions.

# Actor input Schema

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

List of URLs to audit. Must include protocol (https://). Max 500.

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

Device emulation mode. 'both' runs two audits per URL (mobile + desktop).

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

Lighthouse categories to audit. Default: all four main categories. Valid values: performance, accessibility, best-practices, seo

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

Network throttling: 'simulated' (fast, default), 'devtools' (slower but more accurate), 'none'.

## `locale` (type: `string`):

Lighthouse report locale for audit descriptions (e.g., 'en', 'es', 'de', 'ja').

## `performanceThreshold` (type: `integer`):

Minimum acceptable Performance score (0-100). 0 = no threshold.

## `accessibilityThreshold` (type: `integer`):

Minimum acceptable Accessibility score (0-100). 0 = no threshold.

## `bestPracticesThreshold` (type: `integer`):

Minimum acceptable Best Practices score (0-100). 0 = no threshold.

## `seoThreshold` (type: `integer`):

Minimum acceptable SEO score (0-100). 0 = no threshold.

## `failOnThreshold` (type: `boolean`):

If true and any URL is below any threshold, the actor exits with error. Useful for CI/CD.

## `includeAuditDetails` (type: `boolean`):

Include individual audit pass/fail details (not just category scores).

## `includeOpportunities` (type: `boolean`):

Include optimization opportunities with estimated savings.

## `includeDiagnostics` (type: `boolean`):

Include diagnostic audit results.

## `includeScreenshot` (type: `boolean`):

Capture and store a screenshot of each URL (saved to Key-Value Store).

## `generateHtmlReport` (type: `boolean`):

Generate and store full Lighthouse HTML report per URL (saved to Key-Value Store).

## `includeRawLighthouse` (type: `boolean`):

Include the full raw Lighthouse JSON result. Warning: very large output.

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

Maximum concurrent Lighthouse audits. Keep low — Lighthouse is resource-intensive.

## `auditTimeout` (type: `integer`):

Timeout for each Lighthouse audit in milliseconds.

## `retryOnFailure` (type: `boolean`):

Retry failed audits once. Handles transient Chromium/network issues.

## `waitUntil` (type: `string`):

When to consider page loaded: 'load', 'domcontentloaded', 'networkidle0', 'networkidle2'.

## `proxyConfiguration` (type: `object`):

Proxy settings for accessing URLs behind firewalls or geo-restricted content.

## Actor input object example

```json
{
  "urls": [
    "https://crawlee.dev"
  ],
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "throttling": "simulated",
  "locale": "en",
  "performanceThreshold": 0,
  "accessibilityThreshold": 0,
  "bestPracticesThreshold": 0,
  "seoThreshold": 0,
  "failOnThreshold": false,
  "includeAuditDetails": true,
  "includeOpportunities": true,
  "includeDiagnostics": true,
  "includeScreenshot": false,
  "generateHtmlReport": false,
  "includeRawLighthouse": false,
  "maxConcurrency": 1,
  "auditTimeout": 120000,
  "retryOnFailure": true,
  "waitUntil": "load",
  "proxyConfiguration": {}
}
```

# Actor output Schema

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

Per-URL Lighthouse audit results including category scores, Core Web Vitals, opportunities, and diagnostics.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("junipr/lighthouse-checker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("junipr/lighthouse-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call junipr/lighthouse-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=junipr/lighthouse-checker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fsNXRgHw8gWjCgJN5/builds/VV36Ws01M73kaAvnf/openapi.json
