# Bulk PageSpeed & Lighthouse Checker \[$3.90/1k] - Web Vitals (`kadi_bence/pagespeed-checker`) Actor

$3.90 per 1,000 audits, failed audits free. Run Google PageSpeed Insights on many URLs or a sitemap. Input: URLs or sitemap, mobile/desktop, categories; no API key needed for up to 25 audits per run. Returns per URL: Lighthouse scores, Core Web Vitals (LCP, INP, CLS), top fixes.

- **URL**: https://apify.com/kadi_bence/pagespeed-checker.md
- **Developed by:** [Bence Kadi](https://apify.com/kadi_bence) (community)
- **Categories:** SEO tools, Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.12 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## PageSpeed Insights Bulk Checker: Core Web Vitals & Lighthouse for many URLs

Run Google PageSpeed Insights on hundreds or thousands of pages at once and get one clean row per page and device: Lighthouse **performance, accessibility, best-practices and SEO scores**, **Core Web Vitals from real Chrome users** (LCP, INP, CLS with p75 values and the pass/fail assessment), lab metrics and the **top fixes** with estimated savings. It uses Google's **official PageSpeed Insights API v5**, so results are exactly what pagespeed.web.dev shows. Small runs (up to 25 audits) work without any setup; for more, add your own free Google API key.

**Sample output** (real rows from a test run, shortened)

| Strategy | Performance score | Accessibility score | Best practices score | Seo score |
|---|---|---|---|---|
| mobile | 65 | 100 | 73 | 85 |
| mobile | 100 | 94 | 100 | 100 |

### 🔎 What does PageSpeed Insights Bulk Checker do?

- Takes a list of URLs, a sitemap.xml, or both.
- Runs each page on **mobile, desktop or both** through Google PageSpeed Insights (the Lighthouse version Google currently runs, returned as `lighthouseVersion`).
- Returns the four Lighthouse category scores (0-100), lab metrics (FCP, LCP, TBT, CLS, Speed Index, TTFB), real-user **field data** from the Chrome UX Report (CrUX) for the page and the whole site, and the biggest **opportunities** (e.g. "Eliminate render-blocking resources: 1,230 ms").
- Optionally queries the **Chrome UX Report API** with the same key for form-factor-specific field data and the collection period.

#### 🎯 Who uses it and for what

- **SEO agencies:** audit every page of a client site in one run and export to Google Sheets or Excel for the report.
- **Site owners and developers:** monitor Core Web Vitals weekly with an Apify schedule and spot regressions after a release.
- **Client reports and pitches:** before/after comparisons, competitor benchmarks, "your site fails Core Web Vitals on mobile" outreach.
- **AI agents and automations:** call it from Make, Zapier, n8n or the Apify API and get structured JSON back.

#### ✨ Why this checker

- ✅ **Official Google API only** - no scraping of pagespeed.web.dev, no undocumented endpoints, no headless browser that gives different numbers.
- 💸 **$3.90 per 1,000 audits**, and **failed audits are free** (unreachable pages, Lighthouse errors, key or quota problems).
- 🔑 **Your key, your quota:** Google gives every key 25,000 free PageSpeed requests per day. Your key is a secret input: stored encrypted, sent only to Google in a request header, never logged and never written to the output.
- 📊 **Flat, spreadsheet-ready rows** plus nested details: p75 values, good / needs-improvement / poor shares, origin rollup, opportunities.
- 🗺️ **Sitemap support:** paste a sitemap.xml or sitemap index (also .gz), capped by "Max URLs".
- 🛑 **Fails fast:** a wrong key, a disabled API or a used-up quota stops the run after one request with a clear message, and you pay nothing.

**Use cases:** Analyze SEO & marketing (run website audits, get SEO & analytics data) · Developer tools (monitor & alert on website changes).

### 🔑 Do I need a Google API key?

- **Small runs: no.** Without a key the Actor uses its built-in key, limited to **25 audits per run** (one audit = one URL on one device, so 25 URLs on mobile, or 12 URLs on both devices). Longer lists are cut to the first 25 audits; the run log and `RUN_SUMMARY` (`ownerKeyUsed: true`, `auditsCappedTo: 25`) tell you when that happened, and skipped audits are not charged.
- **Bigger runs: yes, add your own free key.** It takes 3 minutes (steps below) and gives you 25,000 audits per day. When you paste a key, the Actor always uses yours and the 25-audit limit does not apply.
- The **Chrome UX Report API** option always needs your own key.

The built-in key is shared by all users, so it can run out of daily quota; the run then stops with a message, charges nothing, and your own key is the fix.

### 🔑 Get your free Google API key (4 steps, about 3 minutes)

1. Open [Google Cloud Console](https://console.cloud.google.com/), sign in with any Google account and create a project (project picker at the top → **New project**).
2. Go to **APIs & Services → Library**, search **PageSpeed Insights API** and click **Enable**. Optional: also enable **Chrome UX Report API** if you want to use "Use the Chrome UX Report API".
3. Go to **APIs & Services → Credentials → Create credentials → API key** and copy the key (it starts with `AIza`).
4. Recommended: click the key → **API restrictions → Restrict key** → tick PageSpeed Insights API (and Chrome UX Report API) → Save. Do **not** add website or IP restrictions: Apify runs on changing servers. Paste the key into **Google API key**.

Google does not charge for these two APIs; the limits are 25,000 PageSpeed requests per day (400 per 100 seconds) and 150 CrUX requests per minute per project. Please don't create extra projects to multiply quota - Google's terms forbid that.

If neither your key nor the built-in key is available, the Actor tries Google's shared keyless quota **once**. In our test on 2026-10-05 that quota was 0 (HTTP 429 at once); the run then stops at once with a message pointing to these steps, and nothing is charged.

### 🚀 How to use it

1. Paste your page URLs (one per line) and/or a sitemap URL.
2. Paste your Google API key (optional for runs of up to 25 audits).
3. Pick the device (mobile is what Google uses for ranking), categories and options, then click **Start**.
4. Open the **Scores & Core Web Vitals** tab, or export the dataset as CSV, Excel or JSON. The **Run summary** (key-value store record `RUN_SUMMARY`) has counts, errors, averages per device and the Google request count.

One audit takes 10-40 seconds at Google. With 4 parallel audits expect roughly 400-800 audits per hour; for big lists raise **Parallel audits** (up to 10) and the run timeout (default 1 hour). Before the timeout the Actor stops starting new audits, so finished results are always saved.

### ⚙️ Input

| Field | Type | Default | Description |
|---|---|---|---|
| `urls` | array of strings | - | Page URLs, one per line. `https://` is added when missing; duplicates are skipped |
| `sitemapUrl` | string | - | sitemap.xml or sitemap index (also .gz) to expand |
| `googleApiKey` | string (secret) | - | Your Google API key (see above). Optional: without it a run is limited to 25 audits |
| `strategy` | `mobile` / `desktop` / `both` | `mobile` | Device emulation; `both` = 2 audits per URL |
| `categories` | array | all four | `performance`, `accessibility`, `best-practices`, `seo` |
| `includeFieldData` | boolean | `true` | Real-user Core Web Vitals from CrUX (included in the PageSpeed response, no extra cost) |
| `useCruxApi` | boolean | `false` | Also call the Chrome UX Report API (needs the key and that API enabled) |
| `maxOpportunities` | integer | `5` | Top N failed performance audits with savings (0-30) |
| `maxUrls` | integer | `100` | Cap on URLs per run (1-10,000) |
| `locale` | string | `en` | Language of audit titles, e.g. `de`, `pt-BR` |
| `maxConcurrency` | integer | `4` | Parallel audits (1-10) |
| `maxRequestsPerSecond` | number | `2` | Start-rate limit for Google calls (0.2-4) |

Example input:

```json
{
  "urls": ["https://www.example.com/", "https://www.example.com/pricing"],
  "googleApiKey": "AIza...your key...",
  "strategy": "both",
  "categories": ["performance", "seo"],
  "maxOpportunities": 5
}
```

### 📊 Output

One row per URL and device. Main fields:

| Field | Description |
|---|---|
| `url`, `strategy`, `finalUrl` | Requested URL, `mobile`/`desktop`, URL after redirects |
| `status`, `error`, `errorCode` | `ok` or `error`; on errors a message such as `FAILED_DOCUMENT_REQUEST: ...` (error rows are free) |
| `performanceScore`, `accessibilityScore`, `bestPracticesScore`, `seoScore` | Lighthouse scores 0-100 (null if the category was not requested) |
| `labFcpMs`, `labLcpMs`, `labTbtMs`, `labCls`, `labSpeedIndexMs`, `labTtfbMs`, `labTtiMs` | Lab metrics from this Lighthouse run (TTI only when Google still reports it) |
| `cwvAssessment` | `passed` / `failed` Core Web Vitals assessment from real users (LCP, CLS and INP good at p75), null without field data |
| `fieldDataScope` | `url` (this page) or `origin` (whole site, when the page has too little traffic) |
| `fieldLcpMs`, `fieldInpMs`, `fieldCls`, `fieldFcpMs`, `fieldTtfbMs` | Real-user p75 values |
| `fieldData`, `originFieldData` | Per metric: `p75`, `rating`, and `good` / `needsImprovement` / `poor` shares; source, scope, collection period (CrUX API) |
| `opportunities` | Top failed performance audits: `id`, `title`, `displayValue`, `savingsMs`, `savingsBytes`, `metricSavings` |
| `lighthouseVersion`, `fetchTime`, `runWarnings`, `notes` | Run metadata and Lighthouse warnings |
| `pageSpeedReportUrl` | Link that opens the same page on pagespeed.web.dev |

Example row (**illustrative values from our test fixtures**, shortened with `...`):

```json
{
  "url": "https://shop.example.com/",
  "strategy": "mobile",
  "status": "ok",
  "error": null,
  "errorCode": null,
  "finalUrl": "https://shop.example.com/",
  "performanceScore": 62,
  "accessibilityScore": 91,
  "bestPracticesScore": 96,
  "seoScore": 92,
  "labFcpMs": 2310,
  "labLcpMs": 5120,
  "labTbtMs": 640,
  "labCls": 0.123,
  "labSpeedIndexMs": 4870,
  "labTtiMs": null,
  "labTtfbMs": 612,
  "cwvAssessment": "failed",
  "fieldDataScope": "url",
  "fieldLcpMs": 2900,
  "fieldInpMs": 180,
  "fieldCls": 0.08,
  "fieldFcpMs": 1600,
  "fieldTtfbMs": 950,
  "fieldData": {
    "source": "pagespeed",
    "scope": "url",
    "cwvAssessment": "failed",
    "overallCategory": "AVERAGE",
    "metrics": {
      "lcp": {
        "p75": 2900,
        "rating": "needs-improvement",
        "good": 0.71,
        "needsImprovement": 0.2,
        "poor": 0.09
      },
      "inp": {
        "p75": 180,
        "rating": "good",
        "good": 0.86,
        "needsImprovement": 0.1,
        "poor": 0.04
      },
      "cls": {
        "p75": 0.08,
        "rating": "good",
        "good": 0.82,
        "needsImprovement": 0.11,
        "poor": 0.07
      },
      "...": "..."
    }
  },
  "originFieldData": {
    "source": "pagespeed",
    "scope": "origin",
    "cwvAssessment": "failed",
    "overallCategory": "AVERAGE",
    "metrics": {
      "lcp": {
        "p75": 2700,
        "rating": "needs-improvement",
        "good": 0.71,
        "needsImprovement": 0.2,
        "poor": 0.09
      },
      "...": "..."
    }
  },
  "opportunities": [
    {
      "id": "render-blocking-resources",
      "title": "Eliminate render-blocking resources",
      "displayValue": "Potential savings of 1,230 ms",
      "score": 0.0,
      "savingsMs": 1230,
      "savingsBytes": null,
      "metricSavings": {
        "FCP": 1230,
        "LCP": 1230
      }
    },
    {
      "id": "image-delivery-insight",
      "title": "Improve image delivery",
      "displayValue": "Est savings of 310 KiB",
      "score": 0.0,
      "savingsMs": 450,
      "savingsBytes": null,
      "metricSavings": {
        "LCP": 450
      }
    }
  ],
  "runWarnings": [],
  "notes": [],
  "lighthouseVersion": "13.0.1",
  "fetchTime": "2026-10-05T11:02:12.456Z",
  "pageSpeedReportUrl": "https://pagespeed.web.dev/report?url=https%3A%2F%2Fshop.example.com%2F&form_factor=mobile"
}
```

### 💰 Pricing

Pay per event: **$3.90 per 1,000 successful audits** ($0.0039 per URL per device), plus Apify's tiny platform start fee of $0.00005 per run. One audit = one URL on one device, so `both` costs two audits per URL. Field data, CrUX API calls, opportunities and sitemap expansion are included.

**Not charged:** audits that fail (unreachable page, Lighthouse error, timeout), and runs stopped by a missing/invalid key, a disabled API or a used-up Google quota. Set **Max charge per run** and the Actor plans only as many audits as fit, so it does not use your Google quota for results it cannot deliver.

Typical costs:

| Job | Audits | Cost |
|---|---|---|
| 100 pages, mobile | 100 | $0.39 |
| 500 pages, mobile + desktop | 1,000 | $3.90 |
| Weekly monitoring of 50 key pages, both devices | ~430 / month | ~$1.70 / month |

Google's PageSpeed Insights API itself is free within your key's quota (25,000 requests per day).

### ❓ FAQ

**Why should I add my own Google API key?** Without one, a run uses the Actor's shared built-in key and is limited to 25 audits. Your own key is free, takes 3 minutes and gives you 25,000 audits per day.

**Is my key safe?** It is a secret input: Apify stores it encrypted, the Actor sends it only to Google's API in a request header, never logs it and never writes it to the dataset or the run summary. You can restrict the key to these two APIs and delete it at any time in Google Cloud Console.

**Why do lab and field values differ?** Lab metrics come from one simulated Lighthouse load (mobile = mid-range phone on slow 4G). Field data is the 75th percentile of real Chrome users over the last 28 days. Google ranks on field data; lab data explains *why*.

**Why is there no lab INP?** INP needs real user interactions. Lighthouse reports Total Blocking Time (TBT) instead, which correlates with INP.

**Why is field data empty for some pages?** CrUX only has data for pages and sites with enough Chrome traffic. The Actor falls back to the whole-site (origin) data and marks `fieldDataScope: "origin"`; small sites may have neither.

**Why do scores change between runs?** Lighthouse lab scores vary by a few points from run to run (network, server load). Compare trends or several runs, not single numbers.

**What does Google's quota error mean?** "Daily quota used up" resets at midnight Pacific Time. The run stops cleanly, keeps the finished rows and charges nothing for the rest.

**Is this allowed?** Yes. It uses Google's official, documented APIs with your own key. No personal data is collected. Field data is from the Chrome UX Report by Google, licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); please keep that attribution when you publish the numbers.

### 📝 Changelog

- **1.1 (2026-10-05):** Runs of up to 25 audits work without a Google API key (built-in key); your own key still removes the limit.
- **1.0 (2026-10-05):** First release: URL list and sitemap input, mobile/desktop/both, four Lighthouse categories, field data from PageSpeed or the Chrome UX Report API, top opportunities, fail-fast key and quota handling, failed audits free.

### Related Actors

More low-cost Actors by the same developer, built on official APIs and public data:

- [SEO Site Audit](https://apify.com/kadi_bence/seo-site-audit) — 0-100 SEO score per page, broken links and fix hints
- [Website Tech Stack Detector](https://apify.com/kadi_bence/tech-stack-detector) — CMS, ecommerce, analytics and frameworks of any website
- [Website Screenshot & PDF API](https://apify.com/kadi_bence/website-screenshot) — full-page screenshots and PDFs of any URL
- [AI Visibility Tracker](https://apify.com/kadi_bence/ai-visibility-tracker) — how ChatGPT, Perplexity, Gemini and Claude mention your brand
- [Bulk WHOIS & RDAP Domain Lookup](https://apify.com/kadi_bence/domain-whois-lookup) — registrar, dates and DNS for many domains
- [Bulk Image Downloader](https://apify.com/kadi_bence/bulk-image-downloader) — download all images from URLs as a ZIP
- [Document to Markdown](https://apify.com/kadi_bence/document-to-markdown) — PDF, Word, PowerPoint and Excel to clean Markdown, with OCR

All my Actors: [apify.com/kadi_bence](https://apify.com/kadi_bence)

# Actor input Schema

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

One page per line, e.g. https://www.example.com/pricing. https:// is added when missing. Duplicates are skipped. Each URL is audited once per strategy (mobile/desktop).

## `sitemapUrl` (type: `string`):

Audit the pages listed in a sitemap.xml (sitemap indexes and .gz files work too). Combined with the URL list and capped by "Max URLs".

## `googleApiKey` (type: `string`):

Optional for small runs: without a key the Actor uses its built-in key, limited to 25 audits (URLs x devices) per run. For bigger runs, and for the Chrome UX Report API option, paste your own free Google Cloud API key with the PageSpeed Insights API enabled (25,000 free audits per day). Your key is always used when given, is stored encrypted and is never logged. How to create one in 3 minutes: see the README section "Get your free Google API key".

## `strategy` (type: `string`):

Mobile (Moto G Power emulation, slow 4G - what Google uses for ranking), desktop, or both (2 audits per URL).

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

Which Lighthouse scores to compute. Leave empty for all four. Core Web Vitals and lab metrics need Performance.

## `includeFieldData` (type: `boolean`):

Adds Chrome UX Report p75 values and good / needs-improvement / poor shares for LCP, INP, CLS, FCP and TTFB (page level, or the whole site when the page has too little traffic), plus the Core Web Vitals pass/fail assessment. No extra cost.

## `useCruxApi` (type: `boolean`):

Needs your API key with the Chrome UX Report API enabled. Adds the data collection period and exact device form factor; falls back to the PageSpeed field data when CrUX has no record. 1-2 extra Google calls per audit (free).

## `maxOpportunities` (type: `integer`):

How many failed performance audits with the largest estimated savings to return (id, title, savings in ms and bytes). 0 = none.

## `maxUrls` (type: `integer`):

Stop after this many URLs (from the list and the sitemap together). Each URL is audited once per device. Without your own Google API key a run is limited to 25 audits. The default without input (API, MCP and AI-agent calls) is 20.

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

Locale for Lighthouse texts such as opportunity titles, e.g. en, de, fr, pt-BR.

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

Audits running at the same time. One audit takes 10-40 s at Google.

## `maxRequestsPerSecond` (type: `number`):

Start rate limit for Google API calls. Google's default PageSpeed quota is 400 requests per 100 seconds; keep 2 unless you share the key with other tools.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com/",
    "https://www.wikipedia.org/"
  ],
  "strategy": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "includeFieldData": true,
  "useCruxApi": false,
  "maxOpportunities": 5,
  "maxUrls": 20,
  "locale": "en",
  "maxConcurrency": 4,
  "maxRequestsPerSecond": 2
}
```

# Actor output Schema

## `overview` (type: `string`):

Lighthouse scores, Core Web Vitals assessment and key metrics per URL and device.

## `field` (type: `string`):

Chrome UX Report p75 values and good / needs-improvement / poor shares.

## `opportunities` (type: `string`):

Failed performance audits with the largest estimated savings.

## `full` (type: `string`):

Every field of every audit.

## `summary` (type: `string`):

Counts, errors, averages per device, Google request counts and data attribution.

# 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://www.wikipedia.org/"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("kadi_bence/pagespeed-checker").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://www.wikipedia.org/"
  ]
}' |
apify call kadi_bence/pagespeed-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kadi_bence/pagespeed-checker"
        }
    }
}
```

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/GEgFhsioYaesPsfN6/builds/AadD6UiZIjcJ9G0mS/openapi.json
