# Bulk PageSpeed Audit – Lighthouse, Core Web Vitals & Shopify (`lone_cupola/store-speed-audit`) Actor

Bulk Lighthouse PageSpeed audit for a list of URLs, or one Shopify store's key pages found for you. Core Web Vitals, top fixes and the third-party scripts slowing each page. Calibrated scores, no API key. $0.01 per page.

- **URL**: https://apify.com/lone_cupola/store-speed-audit.md
- **Developed by:** [Jakob Villadsen](https://apify.com/lone_cupola) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 page 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 PageSpeed and Lighthouse audit (Core Web Vitals, top fixes, third-party scripts)

**Which pages on this list are slow, and which script is doing it?**

PageSpeed Insights tests one URL at a time. Give this Actor a list of URLs (set **Mode** to **List**) and it runs a real Google Lighthouse audit on each, on mobile, desktop or both: the four Lighthouse scores, Core Web Vitals lab metrics, the top fixes by time saved, and the scripts from other providers (analytics, chat widgets, tag managers, store apps) ranked by the main-thread time they cost. Or give it one Shopify store's home page and it finds the collection, product, cart and search pages for you.

- **No API key and no PageSpeed quota:** Lighthouse runs in its own Chrome inside the Actor.
- **Scores you can compare:** each audit is calibrated to the cloud machine's measured speed. Without that, the same product page scored anywhere from 52 to 97 in our tests, depending on when in the run it was audited.
- **$0.01 per page audited, the same on every plan.** Pages that cannot be audited (404, password page, redirect to another site) are free. `maxPagesToAudit` caps the cost of a run.

### Who uses this

- **SEO agencies and freelancers:** audit every client page on one list, see which ones fail Core Web Vitals and which third-party script to remove first, and hand over `report.html`.
- **Site owners and developers:** run your key landing pages before and after a release, a new tag or a new plugin, or schedule it weekly.
- **Shopify stores and agencies:** one home page in, five store pages out (home, collection, product, cart, search), with the store apps that slow them.

### Example: Shopify's own Dawn demo store (a real run, 2026-11-15)

Input `{ "startUrls": [{ "url": "https://theme-dawn-demo.myshopify.com/" }] }` found and audited 5 pages on mobile in 167 s: median performance 63; the slowest page was the search page (57). Cost: 5 audits = $0.05.

### Two ways to run it

- **List**: set `"mode": "list"` and it audits exactly the URLs you give, for example a client's landing pages or your best-selling product pages. Each URL on each device is one audit.
- **Store** (the default): give one home page per store. On Shopify stores it uses their standard addresses (`/collections/...` or `/collections/all`, the first `/products/...` link, `/cart`, `/search`); on other platforms it follows the first link on the home page that looks like each page type. It audits those pages with the home page.

List mode input example:

```json
{
  "mode": "list",
  "startUrls": [
    { "url": "https://theme-dawn-demo.myshopify.com/" },
    { "url": "https://theme-dawn-demo.myshopify.com/collections/all" }
  ],
  "devices": ["mobile"],
  "maxPagesToAudit": 2
}
```

### Input example

```json
{
  "mode": "store",
  "startUrls": [{ "url": "https://theme-dawn-demo.myshopify.com/" }],
  "pageTypes": ["home", "collection", "product", "cart", "search"],
  "devices": ["mobile"],
  "maxPagesToAudit": 25,
  "includeThirdPartySummary": true,
  "saveHtmlReports": false
}
```

- **Store pages to audit** (`pageTypes`, store mode): any of home, collection, product, cart and search.
- **Devices** (`devices`): mobile (Lighthouse's default phone and network), desktop, or both. Each page is audited once per device.
- **Max audits** (`maxPagesToAudit`): the cap on audits in the run, and so on the cost: 25 audits cost at most $0.25.
- **Scripts from other providers** (`includeThirdPartySummary`): groups other providers' scripts by provider, as Lighthouse names them, with their transfer size and main-thread time.
- **Full Lighthouse reports** (`saveHtmlReports`): saves each page's complete Lighthouse HTML report and links it from the result. No extra charge.
- Advanced: the time limit per audit (90 s).

### What you get

One result per page and device:

| Field | Meaning |
|---|---|
| `url`, `finalUrl` | The page audited, and where it ended after redirects |
| `store`, `pageType`, `device`, `platform` | The store, the page type (home, collection, product, cart, search, or custom in list mode), mobile or desktop, and `shopify` when detected |
| `performanceScore`, `accessibilityScore`, `bestPracticesScore`, `seoScore` | Lighthouse's four scores, 0 to 100 |
| `lcpMs`, `fcpMs`, `tbtMs`, `cls`, `speedIndexMs` | Lab metrics: Largest Contentful Paint, First Contentful Paint, Total Blocking Time, Cumulative Layout Shift, Speed Index |
| `totalByteWeightKb` | Page weight |
| `thirdParty` | Up to 10 other providers, by main-thread time: `{ entity, transferKb, mainThreadMs }` |
| `topOpportunities` | The 5 failing performance findings with the largest savings Lighthouse estimates: `{ id, title, savingsMs, savingsKb }` |
| `htmlReportUrl` | The full Lighthouse report, when you asked for it |
| `benchmarkIndex`, `cpuSlowdown` | The cloud machine's speed as Lighthouse measured it, and the CPU slowdown that calibrates it (see "How it works") |
| `lighthouseVersion`, `auditedAt` | The Lighthouse version and the time of the audit |

The **Scores** view shows each page's performance, LCP, TBT, CLS, SEO, accessibility and best-practice scores side by side.

The key-value store also holds:

- **report.html**: a readable one-page report to share with your developer. It has every page's scores, the top fixes, the scripts that cost the most, and the pages that were not audited, with the reason.
- **OUTPUT**: a summary per store: the pages found and not found, the median performance, the slowest page, the top scripts across pages, the Lighthouse and Chrome versions, and the run time.

Run it from the API, on a schedule (to see when a theme change or a new app slows the store down), or as a tool for AI agents (Apify MCP server), like any Apify Actor.

### Price

- **$0.01 per page audited** (one page on one device), the same on every Apify plan. No platform usage on top. The only other charge is Apify's Actor start event, $0.00005 per run.
- Finding a store's pages is free.
- A page that is not audited is not charged: one that answers with an error (such as 404), sits behind a store password page, redirects to another website, or that Lighthouse cannot score.
- **Set a maximum cost** for a run: it audits only as many pages as that allows.

### How it works

- Each audit is a real Google Lighthouse run in headless Chrome, with Lighthouse's default mobile or desktop settings (simulated throttling). Lighthouse is open source by Google (Apache-2.0).
- **Calibrated for cloud machines.** A cloud machine's speed changes from minute to minute, and Lighthouse's fixed CPU slowdown would then score the same page differently. So each audit reads the machine's speed from Lighthouse's own benchmark, taken during that page load, and sets the slowdown to match Lighthouse's reference machine: 4x on mobile and 1x on desktop at a benchmark index of 1,750, as Lighthouse's documentation advises. Every result shows the `benchmarkIndex` and the `cpuSlowdown` used.
- Pages are audited one at a time, each in a fresh browser, so one page cannot slow down the next.
- Before an audit, a plain request checks that the page answers. A page that refuses plain requests (403 or 429, common with bot protection) still goes to Lighthouse, which tells.
- **Polite:** store mode reads the store's `robots.txt` and skips any page it found that robots.txt asks crawlers to stay out of; those cost nothing. List mode audits the URLs you give as given.
- It refuses private and local network addresses (localhost, 10.x, 192.168.x and the like), and does not follow a redirect to another website.

### Good to know

- **Lab data, not real-user data.** Lighthouse measures one load in controlled conditions. Scores move a few points from run to run; compare runs, not single numbers.
- **Never adds to the cart or submits a form.** The cart is audited empty, and search with one letter.
- Some sites block automated browsers. Those pages are reported as not audited, and not charged.
- Only audit sites you own or are allowed to test.

### Questions and problems

Open an issue on the **Issues** tab. Describe the store and what you expected, and it will be looked at.

### Related tools from this developer

- [Website Accessibility Scanner (WCAG 2.2 AA)](https://apify.com/lone_cupola/website-accessibility-scanner): checks each page against WCAG 2.2 AA with axe-core in Chrome and lists every failing element with the WCAG criterion it breaks, its severity and its fix.
- [Store Link Checker](https://apify.com/lone_cupola/store-link-checker): finds broken links and 404s, redirect chains and broken images, and on Shopify links to removed and sold-out products, with the page each one is on.
- [Store SEO Audit](https://apify.com/lone_cupola/store-seo-audit): reads your sitemap and checks home, collection and product pages for Product structured data, titles, meta descriptions, canonicals and noindex.
- [Store Price & Stock Tracker](https://apify.com/lone_cupola/store-price-stock-tracker): run it on a schedule and each run reports price drops and increases, sell-outs and restocks per variant, and new and removed products, from the public product pages and sitemap of Shopify and other stores that publish Product structured data.
- [RSS & Atom Feed Monitor](https://apify.com/lone_cupola/rss-feed-monitor): watches RSS, Atom, RDF and JSON feeds on a schedule and returns only the items that are new since the last run, with keyword include and exclude filters.

# Actor input Schema

## `mode` (type: `string`):

Store: give one home page per store; it finds a collection, a product, the cart and the search page (on Shopify by their standard addresses, elsewhere by links on the home page) and audits them with the home page. List: audit exactly the URLs you give.

## `startUrls` (type: `array`):

Store mode: one home page per store. List mode: the pages to audit.

## `pageTypes` (type: `array`):

Which of the store's pages to find and audit. A page the store's robots.txt asks crawlers to stay out of is skipped and costs nothing.

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

Each page is audited once per device. Each audit is one charged event.

## `maxPagesToAudit` (type: `integer`):

Hard cap on page audits in the run (one page on one device is one audit), which is also the cap on what a run costs: 25 audits cost at most $0.25.

## `includeThirdPartySummary` (type: `boolean`):

Group scripts from other providers (store apps, analytics, chat widgets) by provider, as Lighthouse names them, with their transfer size and main-thread time.

## `saveHtmlReports` (type: `boolean`):

Stores each page's complete Lighthouse report in the key-value store; the dataset item links to it. No extra charge.

## `pageTimeoutSecs` (type: `integer`):

An audit that takes longer is stopped and not charged.

## Actor input object example

```json
{
  "mode": "store",
  "startUrls": [
    {
      "url": "https://theme-dawn-demo.myshopify.com/"
    }
  ],
  "pageTypes": [
    "home",
    "collection",
    "product",
    "cart",
    "search"
  ],
  "devices": [
    "mobile"
  ],
  "maxPagesToAudit": 25,
  "includeThirdPartySummary": true,
  "saveHtmlReports": false,
  "pageTimeoutSecs": 90
}
```

# Actor output Schema

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

No description

## `report` (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 = {
    "startUrls": [
        {
            "url": "https://theme-dawn-demo.myshopify.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lone_cupola/store-speed-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 = { "startUrls": [{ "url": "https://theme-dawn-demo.myshopify.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("lone_cupola/store-speed-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 '{
  "startUrls": [
    {
      "url": "https://theme-dawn-demo.myshopify.com/"
    }
  ]
}' |
apify call lone_cupola/store-speed-audit --silent --output-dataset

```

## MCP server setup

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