# Lighthouse Report Diff: Audit Changes & Budgets (`plainfeeds/lighthouse-report-diff`) Actor

Compare existing Lighthouse or PageSpeed JSON reports. Exact audit score/mode/value changes, category deltas and unit-aware budgets. Refuses mismatched test settings. Supply before/after reports; this tool does not run website audits.

- **URL**: https://apify.com/plainfeeds/lighthouse-report-diff.md
- **Developed by:** [Paul Couach](https://apify.com/plainfeeds) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 comparable report pair delivereds

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

## Lighthouse Report Diff

Compare **existing Lighthouse JSON reports** and see exactly which audits changed between releases. Get audit score, scoring-mode and numeric-value differences, category deltas, and explicit budget checks in one row per comparable pair.

Supply the before and after reports yourself. This Actor does **not** visit websites, launch Chrome, call PageSpeed Insights or generate fresh audits. It is useful when your CI pipeline already runs Lighthouse or you have downloaded PageSpeed JSON and want a structured comparison in Apify, Make or n8n. It is an independent tool, with no affiliation to Google.

### Compare your reports

1. Export raw JSON from Lighthouse 12 or 13, or use a PageSpeed Insights response containing `lighthouseResult`. Flattened score exports from other tools are insufficient.
2. Replace the example in **Before and after report pairs** with your reports. Keep both reports under the same label.
3. Add budgets if you need explicit limits, then run the Actor.
4. Read the dataset for comparable pairs and the `SUMMARY` record for incompatible, invalid or deferred pairs.

The default input contains **two original synthetic reports** for `example.com`. It demonstrates slower LCP and fixed color contrast. It is not a measurement of that website. Replace the entire example pair for your own results. A run of the example delivers one comparison event.

The input shape is:

```json
{
  "pairs": [
    {
      "label": "homepage-mobile-release",
      "before": { "lighthouseResult": "replace with the complete before object" },
      "after": { "lighthouseResult": "replace with the complete after object" }
    }
  ],
  "budgets": {
    "minCategoryScores": { "performance": 85 },
    "maxMetricValues": { "largest-contentful-paint": 2500 },
    "maxMetricIncreases": { "largest-contentful-paint": 500 }
  },
  "allowDifferentUrls": false,
  "maxItems": 10
}
```

The strings above are placeholders, not runnable reports. The Store's prefilled input is a complete runnable example. For a raw Lighthouse report, put the report object directly in `before` or `after` without a wrapper.

Reports need `lighthouseVersion`, `requestedUrl`, a final document URL, `fetchTime`, `configSettings`, `environment`, `audits` and `categories`. Only stable Lighthouse **12.x and 13.x navigation reports** are supported. Snapshot and timespan reports, runtime errors and incomplete scored audits are rejected. Screenshots and audit detail tables are ignored; remove them before submitting large reports.

### Understand the result

Each delivered pair includes:

| Field | Meaning |
| --- | --- |
| `verdict` | `regression`, `inconclusive` or `no_regression_detected` |
| `auditChanges` | Every changed audit ID with before/after `score` (0–1), `mode`, `numericValue`, `numericUnit`, and numeric delta when both units match |
| `categoryChanges` | Changed category scores on a 0–100 scale and their deltas |
| `budgetChecks` | Each requested check with native-unit value, threshold, and `pass`, `fail` or `unavailable` |
| `scoreRegressions` | Count of declining audit scores **plus** declining category scores; these can describe the same underlying issue |
| `failedBudgets` | Number of explicit budget failures |
| `incompleteReasons` | Coverage changes, scoring-mode changes, audit errors, changed numeric units, unavailable budgets, null category scores or Lighthouse warnings |
| `beforeUrl`, `afterUrl` | Final document URLs with query strings and fragments removed |
| `sameUrls`, URL hashes | Whether requested, document and displayed URL identities all matched, including query values; hashes distinguish hidden query differences |
| Report/config hashes, timestamps, `benchmarkRatio` | Provenance of the normalized data actually compared, not hashes of full input files |
| `runWarningCounts` | Counts of original Lighthouse warnings; inspect your source reports for their text |

A lower audit score in `binary`, `numeric` or `metricSavings` mode, a lower category score, or a failed budget, produces `regression`. A known regression takes precedence even if `incompleteReasons` is nonempty. With no known regression, incomplete coverage produces `inconclusive`. Otherwise the result is `no_regression_detected` within the fields this tool compares.

Original audit values are preserved; numeric deltas and category scores are rounded to eight decimal places.

These are **exact differences**, without score-drop tolerance, noise filtering or statistical confirmation. A small numerical score decline can be normal Lighthouse variation. A numeric metric increase alone does not cause a regression verdict unless its audit/category score declines or you set an applicable budget. Set budgets in your automation and inspect `budgetChecks` if you want your own release policy; the Actor's run status does not block a deployment for you.

Audit changes distinguish `score_regressed`, `score_improved`, `became_unscored`, `became_scored`, `added`, `removed` and `value_or_mode_changed`. A removed check, null score, manual check or not-applicable check is never counted as a fixed failure. Lighthouse can store a numeric score of 1 on informative checks; that raw value is preserved but never treated as a passing scored audit. Manual/informative/not-applicable checks that remain unchanged do not themselves make the comparison inconclusive. Changed scoring modes do.

The comparison covers scores, scoring modes, numeric values/units and category membership/weights. It does not diff DOM nodes, descriptions, screenshots, detail tables, recommendations or translated titles. A text or affected-element change with identical numeric fields is outside its scope. It does not produce a CrUX/field-data verdict or measure INP.

### Compare equivalent tests

A pair is **incomparable** when any of these changes:

- Exact Lighthouse version, including patch version.
- Any field in `configSettings`, including locale, device, throttling, categories and custom settings. Object key order is ignored; array order is retained.
- Category IDs or category audit membership/weights. Changing test coverage cannot masquerade as a site improvement.
- Exact `environment.hostUserAgent` or `environment.networkUserAgent`.
- Host `benchmarkIndex` ratio greater than 1.20. Both reports need positive finite benchmark values.
- Requested, final document or final displayed URL identity, including query strings. Fragments are ignored and default ports/empty paths normalized.

`configSettings` must contain `formFactor`, `throttlingMethod`, `screenEmulation` and `throttling`. `throttlingMethod` accepts Lighthouse's `simulate`, `devtools` and `provided` values. Browser environment/configuration must be recorded explicitly; missing information is not guessed. These conservative checks may reject legitimate comparisons, such as reports from a patched browser or different CI hosts. Generate both reports under the same conditions if that happens. Passing the checks does not prove identical network, CPU load, cache or page content.

For an intentional staging/production comparison, set `allowDifferentUrls: true` and pair the right reports yourself. All other compatibility checks still apply. It also permits a changed redirect/display route, so inspect `sameUrls` and your source reports before accepting the result.

### Set budgets in native units

`minCategoryScores` uses category IDs and numbers from 0 to 100. The other two groups accept these audit IDs:

| Audit ID | Unit |
| --- | --- |
| `first-contentful-paint` | milliseconds |
| `largest-contentful-paint` | milliseconds |
| `speed-index` | milliseconds |
| `total-blocking-time` | milliseconds |
| `server-response-time` | milliseconds |
| `cumulative-layout-shift` | unitless |
| `total-byte-weight` | bytes |

`maxMetricValues` checks the after value. `maxMetricIncreases` checks after minus before; negative means a decrease. Equality passes. Both use the report's raw `numericValue`, without seconds/kilobyte conversions. The reported `numericUnit` must match the expected Lighthouse unit. A missing value, wrong unit or audit error produces `unavailable`, not a fabricated zero or passing check. Unknown metric-budget IDs are input errors. All budget values must be finite and nonnegative.

### Price and limits

**$0.003 per comparable pair delivered** ($3 per 1,000). An unchanged or inconclusive comparable pair is charged too. Incompatible/invalid pairs have no result fee and appear only in `SUMMARY`. There are no run-start, input-file, audit-item or separate budget fees. The current Pricing tab is authoritative. Generating the original reports is outside this price and this Actor.

Submit 1–10 pairs per run, at most 5 MiB per report and 16 MiB for the whole JSON input. Each report supports at most 5,000 audits and 20 categories. Numeric audit values must be finite and within ±1e15. Labels are at most 120 characters. `maxItems` defaults to 10 and limits delivered comparisons; pairs beyond it or the platform charging limit are marked `deferred` without a result fee. Submit those pairs again to deliver them. There is no saved baseline or resume state.

An invalid pair does not stop valid pairs. A run where every pair is invalid fails with a clear status message and free per-pair diagnostics in `SUMMARY`. A run containing only incompatible pairs completes successfully with an empty dataset and the reasons in `SUMMARY`; this is not a completed comparison.

Input reports remain in your Apify run input subject to your storage/retention settings. Remove credentials, screenshots and unnecessary private material before submitting. The output omits raw URLs' query/fragment values, browser strings, HTTP headers, DOM snippets and original warning text. URL paths, labels and report timestamps remain. Only Apify storage/billing APIs are used; no report is sent to Google, a website or an outside AI service.

For an issue, include the affected pair number, the free `SUMMARY` diagnostic and a sanitized minimal report pair. Never post tokens or a private full report in a public issue.

# Actor input Schema

## `pairs` (type: `array`):

1–10 objects with label, before and after. Each report is raw Lighthouse 12/13 JSON or PSI JSON containing lighthouseResult. Default is an original synthetic example, not a website audit. 5 MiB/report, 16 MiB/input.

## `budgets` (type: `object`):

Optional minCategoryScores (0–100), maxMetricValues and maxMetricIncreases. Metric IDs: first-contentful-paint, largest-contentful-paint, speed-index, total-blocking-time and server-response-time in ms; cumulative-layout-shift unitless; total-byte-weight in bytes. Missing/wrong-unit values are unavailable, never passing.

## `allowDifferentUrls` (type: `boolean`):

Enable for explicitly paired staging/production reports. Otherwise all requested, document and displayed URL identities must match, including query strings. No site is fetched.

## `maxItems` (type: `integer`):

Each comparable pair delivered is one event. Remaining pairs appear as deferred in SUMMARY. Incompatible/invalid pairs are free and absent from the dataset.

## Actor input object example

```json
{
  "pairs": [
    {
      "label": "synthetic-example-not-a-website-audit",
      "before": {
        "lighthouseVersion": "13.5.0",
        "gatherMode": "navigation",
        "requestedUrl": "https://example.com/",
        "mainDocumentUrl": "https://example.com/",
        "finalDisplayedUrl": "https://example.com/",
        "fetchTime": "2026-11-01T12:00:00Z",
        "configSettings": {
          "formFactor": "mobile",
          "throttlingMethod": "simulate",
          "screenEmulation": {
            "mobile": true,
            "width": 412,
            "height": 823,
            "deviceScaleFactor": 1.75,
            "disabled": false
          },
          "throttling": {
            "rttMs": 150,
            "throughputKbps": 1638.4,
            "cpuSlowdownMultiplier": 4
          }
        },
        "environment": {
          "hostUserAgent": "Synthetic Chrome/130.0.0.0",
          "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
          "benchmarkIndex": 1500
        },
        "runWarnings": [],
        "audits": {
          "largest-contentful-paint": {
            "id": "largest-contentful-paint",
            "score": 0.95,
            "scoreDisplayMode": "numeric",
            "numericValue": 1800,
            "numericUnit": "millisecond"
          },
          "color-contrast": {
            "id": "color-contrast",
            "score": 0,
            "scoreDisplayMode": "binary"
          },
          "document-title": {
            "id": "document-title",
            "score": 1,
            "scoreDisplayMode": "binary"
          }
        },
        "categories": {
          "performance": {
            "score": 0.95,
            "auditRefs": [
              {
                "id": "largest-contentful-paint",
                "weight": 1
              }
            ]
          },
          "accessibility": {
            "score": 0.9,
            "auditRefs": [
              {
                "id": "color-contrast",
                "weight": 1
              }
            ]
          },
          "seo": {
            "score": 1,
            "auditRefs": [
              {
                "id": "document-title",
                "weight": 1
              }
            ]
          }
        }
      },
      "after": {
        "lighthouseVersion": "13.5.0",
        "gatherMode": "navigation",
        "requestedUrl": "https://example.com/",
        "mainDocumentUrl": "https://example.com/",
        "finalDisplayedUrl": "https://example.com/",
        "fetchTime": "2026-11-02T12:00:00Z",
        "configSettings": {
          "formFactor": "mobile",
          "throttlingMethod": "simulate",
          "screenEmulation": {
            "mobile": true,
            "width": 412,
            "height": 823,
            "deviceScaleFactor": 1.75,
            "disabled": false
          },
          "throttling": {
            "rttMs": 150,
            "throughputKbps": 1638.4,
            "cpuSlowdownMultiplier": 4
          }
        },
        "environment": {
          "hostUserAgent": "Synthetic Chrome/130.0.0.0",
          "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
          "benchmarkIndex": 1500
        },
        "runWarnings": [],
        "audits": {
          "largest-contentful-paint": {
            "id": "largest-contentful-paint",
            "score": 0.7,
            "scoreDisplayMode": "numeric",
            "numericValue": 3100,
            "numericUnit": "millisecond"
          },
          "color-contrast": {
            "id": "color-contrast",
            "score": 1,
            "scoreDisplayMode": "binary"
          },
          "document-title": {
            "id": "document-title",
            "score": 1,
            "scoreDisplayMode": "binary"
          }
        },
        "categories": {
          "performance": {
            "score": 0.7,
            "auditRefs": [
              {
                "id": "largest-contentful-paint",
                "weight": 1
              }
            ]
          },
          "accessibility": {
            "score": 1,
            "auditRefs": [
              {
                "id": "color-contrast",
                "weight": 1
              }
            ]
          },
          "seo": {
            "score": 1,
            "auditRefs": [
              {
                "id": "document-title",
                "weight": 1
              }
            ]
          }
        }
      }
    }
  ],
  "budgets": {
    "maxMetricValues": {
      "largest-contentful-paint": 2500
    },
    "maxMetricIncreases": {
      "largest-contentful-paint": 500
    }
  },
  "allowDifferentUrls": false,
  "maxItems": 10
}
```

# Actor output Schema

## `comparisons` (type: `string`):

No description

## `summary` (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 = {
    "pairs": [
        {
            "label": "synthetic-example-not-a-website-audit",
            "before": {
                "lighthouseVersion": "13.5.0",
                "gatherMode": "navigation",
                "requestedUrl": "https://example.com/",
                "mainDocumentUrl": "https://example.com/",
                "finalDisplayedUrl": "https://example.com/",
                "fetchTime": "2026-11-01T12:00:00Z",
                "configSettings": {
                    "formFactor": "mobile",
                    "throttlingMethod": "simulate",
                    "screenEmulation": {
                        "mobile": true,
                        "width": 412,
                        "height": 823,
                        "deviceScaleFactor": 1.75,
                        "disabled": false
                    },
                    "throttling": {
                        "rttMs": 150,
                        "throughputKbps": 1638.4,
                        "cpuSlowdownMultiplier": 4
                    }
                },
                "environment": {
                    "hostUserAgent": "Synthetic Chrome/130.0.0.0",
                    "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
                    "benchmarkIndex": 1500
                },
                "runWarnings": [],
                "audits": {
                    "largest-contentful-paint": {
                        "id": "largest-contentful-paint",
                        "score": 0.95,
                        "scoreDisplayMode": "numeric",
                        "numericValue": 1800,
                        "numericUnit": "millisecond"
                    },
                    "color-contrast": {
                        "id": "color-contrast",
                        "score": 0,
                        "scoreDisplayMode": "binary"
                    },
                    "document-title": {
                        "id": "document-title",
                        "score": 1,
                        "scoreDisplayMode": "binary"
                    }
                },
                "categories": {
                    "performance": {
                        "score": 0.95,
                        "auditRefs": [
                            {
                                "id": "largest-contentful-paint",
                                "weight": 1
                            }
                        ]
                    },
                    "accessibility": {
                        "score": 0.9,
                        "auditRefs": [
                            {
                                "id": "color-contrast",
                                "weight": 1
                            }
                        ]
                    },
                    "seo": {
                        "score": 1,
                        "auditRefs": [
                            {
                                "id": "document-title",
                                "weight": 1
                            }
                        ]
                    }
                }
            },
            "after": {
                "lighthouseVersion": "13.5.0",
                "gatherMode": "navigation",
                "requestedUrl": "https://example.com/",
                "mainDocumentUrl": "https://example.com/",
                "finalDisplayedUrl": "https://example.com/",
                "fetchTime": "2026-11-02T12:00:00Z",
                "configSettings": {
                    "formFactor": "mobile",
                    "throttlingMethod": "simulate",
                    "screenEmulation": {
                        "mobile": true,
                        "width": 412,
                        "height": 823,
                        "deviceScaleFactor": 1.75,
                        "disabled": false
                    },
                    "throttling": {
                        "rttMs": 150,
                        "throughputKbps": 1638.4,
                        "cpuSlowdownMultiplier": 4
                    }
                },
                "environment": {
                    "hostUserAgent": "Synthetic Chrome/130.0.0.0",
                    "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
                    "benchmarkIndex": 1500
                },
                "runWarnings": [],
                "audits": {
                    "largest-contentful-paint": {
                        "id": "largest-contentful-paint",
                        "score": 0.7,
                        "scoreDisplayMode": "numeric",
                        "numericValue": 3100,
                        "numericUnit": "millisecond"
                    },
                    "color-contrast": {
                        "id": "color-contrast",
                        "score": 1,
                        "scoreDisplayMode": "binary"
                    },
                    "document-title": {
                        "id": "document-title",
                        "score": 1,
                        "scoreDisplayMode": "binary"
                    }
                },
                "categories": {
                    "performance": {
                        "score": 0.7,
                        "auditRefs": [
                            {
                                "id": "largest-contentful-paint",
                                "weight": 1
                            }
                        ]
                    },
                    "accessibility": {
                        "score": 1,
                        "auditRefs": [
                            {
                                "id": "color-contrast",
                                "weight": 1
                            }
                        ]
                    },
                    "seo": {
                        "score": 1,
                        "auditRefs": [
                            {
                                "id": "document-title",
                                "weight": 1
                            }
                        ]
                    }
                }
            }
        }
    ],
    "budgets": {
        "maxMetricValues": {
            "largest-contentful-paint": 2500
        },
        "maxMetricIncreases": {
            "largest-contentful-paint": 500
        }
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainfeeds/lighthouse-report-diff").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 = {
    "pairs": [{
            "label": "synthetic-example-not-a-website-audit",
            "before": {
                "lighthouseVersion": "13.5.0",
                "gatherMode": "navigation",
                "requestedUrl": "https://example.com/",
                "mainDocumentUrl": "https://example.com/",
                "finalDisplayedUrl": "https://example.com/",
                "fetchTime": "2026-11-01T12:00:00Z",
                "configSettings": {
                    "formFactor": "mobile",
                    "throttlingMethod": "simulate",
                    "screenEmulation": {
                        "mobile": True,
                        "width": 412,
                        "height": 823,
                        "deviceScaleFactor": 1.75,
                        "disabled": False,
                    },
                    "throttling": {
                        "rttMs": 150,
                        "throughputKbps": 1638.4,
                        "cpuSlowdownMultiplier": 4,
                    },
                },
                "environment": {
                    "hostUserAgent": "Synthetic Chrome/130.0.0.0",
                    "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
                    "benchmarkIndex": 1500,
                },
                "runWarnings": [],
                "audits": {
                    "largest-contentful-paint": {
                        "id": "largest-contentful-paint",
                        "score": 0.95,
                        "scoreDisplayMode": "numeric",
                        "numericValue": 1800,
                        "numericUnit": "millisecond",
                    },
                    "color-contrast": {
                        "id": "color-contrast",
                        "score": 0,
                        "scoreDisplayMode": "binary",
                    },
                    "document-title": {
                        "id": "document-title",
                        "score": 1,
                        "scoreDisplayMode": "binary",
                    },
                },
                "categories": {
                    "performance": {
                        "score": 0.95,
                        "auditRefs": [{
                                "id": "largest-contentful-paint",
                                "weight": 1,
                            }],
                    },
                    "accessibility": {
                        "score": 0.9,
                        "auditRefs": [{
                                "id": "color-contrast",
                                "weight": 1,
                            }],
                    },
                    "seo": {
                        "score": 1,
                        "auditRefs": [{
                                "id": "document-title",
                                "weight": 1,
                            }],
                    },
                },
            },
            "after": {
                "lighthouseVersion": "13.5.0",
                "gatherMode": "navigation",
                "requestedUrl": "https://example.com/",
                "mainDocumentUrl": "https://example.com/",
                "finalDisplayedUrl": "https://example.com/",
                "fetchTime": "2026-11-02T12:00:00Z",
                "configSettings": {
                    "formFactor": "mobile",
                    "throttlingMethod": "simulate",
                    "screenEmulation": {
                        "mobile": True,
                        "width": 412,
                        "height": 823,
                        "deviceScaleFactor": 1.75,
                        "disabled": False,
                    },
                    "throttling": {
                        "rttMs": 150,
                        "throughputKbps": 1638.4,
                        "cpuSlowdownMultiplier": 4,
                    },
                },
                "environment": {
                    "hostUserAgent": "Synthetic Chrome/130.0.0.0",
                    "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
                    "benchmarkIndex": 1500,
                },
                "runWarnings": [],
                "audits": {
                    "largest-contentful-paint": {
                        "id": "largest-contentful-paint",
                        "score": 0.7,
                        "scoreDisplayMode": "numeric",
                        "numericValue": 3100,
                        "numericUnit": "millisecond",
                    },
                    "color-contrast": {
                        "id": "color-contrast",
                        "score": 1,
                        "scoreDisplayMode": "binary",
                    },
                    "document-title": {
                        "id": "document-title",
                        "score": 1,
                        "scoreDisplayMode": "binary",
                    },
                },
                "categories": {
                    "performance": {
                        "score": 0.7,
                        "auditRefs": [{
                                "id": "largest-contentful-paint",
                                "weight": 1,
                            }],
                    },
                    "accessibility": {
                        "score": 1,
                        "auditRefs": [{
                                "id": "color-contrast",
                                "weight": 1,
                            }],
                    },
                    "seo": {
                        "score": 1,
                        "auditRefs": [{
                                "id": "document-title",
                                "weight": 1,
                            }],
                    },
                },
            },
        }],
    "budgets": {
        "maxMetricValues": { "largest-contentful-paint": 2500 },
        "maxMetricIncreases": { "largest-contentful-paint": 500 },
    },
}

# Run the Actor and wait for it to finish
run = client.actor("plainfeeds/lighthouse-report-diff").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 '{
  "pairs": [
    {
      "label": "synthetic-example-not-a-website-audit",
      "before": {
        "lighthouseVersion": "13.5.0",
        "gatherMode": "navigation",
        "requestedUrl": "https://example.com/",
        "mainDocumentUrl": "https://example.com/",
        "finalDisplayedUrl": "https://example.com/",
        "fetchTime": "2026-11-01T12:00:00Z",
        "configSettings": {
          "formFactor": "mobile",
          "throttlingMethod": "simulate",
          "screenEmulation": {
            "mobile": true,
            "width": 412,
            "height": 823,
            "deviceScaleFactor": 1.75,
            "disabled": false
          },
          "throttling": {
            "rttMs": 150,
            "throughputKbps": 1638.4,
            "cpuSlowdownMultiplier": 4
          }
        },
        "environment": {
          "hostUserAgent": "Synthetic Chrome/130.0.0.0",
          "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
          "benchmarkIndex": 1500
        },
        "runWarnings": [],
        "audits": {
          "largest-contentful-paint": {
            "id": "largest-contentful-paint",
            "score": 0.95,
            "scoreDisplayMode": "numeric",
            "numericValue": 1800,
            "numericUnit": "millisecond"
          },
          "color-contrast": {
            "id": "color-contrast",
            "score": 0,
            "scoreDisplayMode": "binary"
          },
          "document-title": {
            "id": "document-title",
            "score": 1,
            "scoreDisplayMode": "binary"
          }
        },
        "categories": {
          "performance": {
            "score": 0.95,
            "auditRefs": [
              {
                "id": "largest-contentful-paint",
                "weight": 1
              }
            ]
          },
          "accessibility": {
            "score": 0.9,
            "auditRefs": [
              {
                "id": "color-contrast",
                "weight": 1
              }
            ]
          },
          "seo": {
            "score": 1,
            "auditRefs": [
              {
                "id": "document-title",
                "weight": 1
              }
            ]
          }
        }
      },
      "after": {
        "lighthouseVersion": "13.5.0",
        "gatherMode": "navigation",
        "requestedUrl": "https://example.com/",
        "mainDocumentUrl": "https://example.com/",
        "finalDisplayedUrl": "https://example.com/",
        "fetchTime": "2026-11-02T12:00:00Z",
        "configSettings": {
          "formFactor": "mobile",
          "throttlingMethod": "simulate",
          "screenEmulation": {
            "mobile": true,
            "width": 412,
            "height": 823,
            "deviceScaleFactor": 1.75,
            "disabled": false
          },
          "throttling": {
            "rttMs": 150,
            "throughputKbps": 1638.4,
            "cpuSlowdownMultiplier": 4
          }
        },
        "environment": {
          "hostUserAgent": "Synthetic Chrome/130.0.0.0",
          "networkUserAgent": "Synthetic Mobile Chrome/130.0.0.0",
          "benchmarkIndex": 1500
        },
        "runWarnings": [],
        "audits": {
          "largest-contentful-paint": {
            "id": "largest-contentful-paint",
            "score": 0.7,
            "scoreDisplayMode": "numeric",
            "numericValue": 3100,
            "numericUnit": "millisecond"
          },
          "color-contrast": {
            "id": "color-contrast",
            "score": 1,
            "scoreDisplayMode": "binary"
          },
          "document-title": {
            "id": "document-title",
            "score": 1,
            "scoreDisplayMode": "binary"
          }
        },
        "categories": {
          "performance": {
            "score": 0.7,
            "auditRefs": [
              {
                "id": "largest-contentful-paint",
                "weight": 1
              }
            ]
          },
          "accessibility": {
            "score": 1,
            "auditRefs": [
              {
                "id": "color-contrast",
                "weight": 1
              }
            ]
          },
          "seo": {
            "score": 1,
            "auditRefs": [
              {
                "id": "document-title",
                "weight": 1
              }
            ]
          }
        }
      }
    }
  ],
  "budgets": {
    "maxMetricValues": {
      "largest-contentful-paint": 2500
    },
    "maxMetricIncreases": {
      "largest-contentful-paint": 500
    }
  }
}' |
apify call plainfeeds/lighthouse-report-diff --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainfeeds/lighthouse-report-diff"
        }
    }
}
```

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/cQhv8Hf4P6biZOmmW/builds/KqhH72GzDpqsctzGq/openapi.json
