# PageSpeed & Core Web Vitals Checker (Bulk Lighthouse Scores) (`pagecraft/pagespeed-checker`) Actor

Bulk Google PageSpeed Insights: performance, accessibility, best practices and SEO scores, Core Web Vitals (LCP, INP, CLS) from real users, and the biggest fixes. Mobile and desktop.

- **URL**: https://apify.com/pagecraft/pagespeed-checker.md
- **Developed by:** [Pagecraft Tools](https://apify.com/pagecraft) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 page testeds

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 & Core Web Vitals Checker: Bulk Google Lighthouse Scores for Any List of Pages

**For** SEO agencies and developers checking site speed in bulk. **You get** Lighthouse scores and Core Web Vitals (LCP, TBT, CLS) for every URL, on mobile or desktop.

**Real run (13 Nov 2026, the example input):** apify.com and web.dev on mobile, 2 tests in 40 seconds. **The example input costs 1 cent** on Apify's Free plan; the plan's $5 of free monthly usage covers about 1,000 tests.

| page | performance | accessibility | SEO | LCP |
| --- | --- | --- | --- | --- |
| web.dev | 64 | 90 | 92 | 2,553 ms |
| apify.com | 64 | 100 | 85 | 2,098 ms |

Test **hundreds of pages with Google PageSpeed Insights** in one run. For every page you get the four **Lighthouse scores** (performance, accessibility, best practices, SEO), the lab metrics (**LCP, TBT, CLS, FCP, Speed Index**), Google's **real-user Core Web Vitals** (LCP, INP, CLS from the Chrome UX Report) with a clear **pass or fail**, and the **biggest fixes** ranked by time saved. Mobile, desktop or both. No API key needed.

### Quick start

1. Press **Try for free**. The form opens with a working example (`https://apify.com`, `https://web.dev`).
2. Replace it with your own pages.
3. Press **Start**. Results appear as they are found; download them as Excel, CSV or JSON, or use the API.

A result looks like this (some columns):

| url | strategy | performanceScore | accessibilityScore | bestPracticesScore |
| --- | --- | --- | --- | --- |
| https://example.com/ | mobile | 72 | 95 | 100 |

### What it does

- 📊 **Four scores out of 100**: performance, accessibility, best practices and SEO.
- ⚡ **Lab metrics**: Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, First Contentful Paint, Speed Index, server response time and page weight.
- 👥 **Real-user Core Web Vitals** (75th percentile) for the page and for the whole site, with Google's rating, and `coreWebVitalsPassed` true or false. Pages too small to have real-user data show `null`, not a fail.
- 🛠️ **Opportunities**: the top fixes with estimated savings in milliseconds and kilobytes (unused JavaScript, render-blocking resources, image sizes...).
- 🔗 A link to the **full PageSpeed report** for every page.

### Who it's for

- **SEO teams and agencies** auditing client sites and tracking scores over time (schedule it weekly).
- **Developers** checking every key page after a release.
- **Ecommerce teams** comparing their speed with competitors'.
- **AI agents** through the Apify MCP server, Make, n8n and Zapier.

### Input

| Field | What to enter |
| --- | --- |
| Pages | `https://example.com/pricing`, `example.com`... |
| Device | Mobile (default), desktop or both |
| Scores | All four by default |
| Your Google API key | Optional, under Advanced |

```json
{ "urls": ["https://example.com", "https://example.com/pricing"], "strategy": "both" }
```

### Output

```json
{
  "url": "https://example.com/",
  "strategy": "mobile",
  "performanceScore": 72,
  "accessibilityScore": 95,
  "bestPracticesScore": 100,
  "seoScore": 92,
  "coreWebVitalsPassed": true,
  "largestContentfulPaintMs": 3121,
  "totalBlockingTimeMs": 210,
  "cumulativeLayoutShift": 0.044,
  "speedIndexMs": 2650,
  "pageWeightKb": 1800,
  "fieldData": { "overall": "FAST", "lcpMs": 2100, "lcpRating": "FAST", "inpMs": 150, "inpRating": "FAST", "cls": 0.05, "clsRating": "FAST", "fcpMs": 1500, "ttfbMs": 600 },
  "originFieldData": { "overall": "FAST", "lcpMs": 2300 },
  "opportunities": [
    { "id": "unused-javascript", "title": "Reduce unused JavaScript", "savingsMs": 900, "savingsKb": 180 }
  ],
  "reportUrl": "https://pagespeed.web.dev/analysis?url=https%3A%2F%2Fexample.com%2F&form_factor=mobile",
  "error": null
}
```

Lab scores vary a little from test to test, as they do on the PageSpeed website. Real-user data covers the last 28 days.

### Pricing

| Event | When it is charged | Price per 1,000 (Free / Bronze / Silver / Gold plan) |
| --- | --- | --- |
| Page tested | Each page and device tested: scores, Core Web Vitals and opportunities. | $5 / $4.50 / $4 / $3.50 |
| Page failed | A page Google could not load or test (it still runs for up to a minute). | $2.50 on every plan |

Example: 100 pages on mobile cost $0.50 on the Free plan; testing mobile and desktop doubles the number of tests.

Pages Google cannot load are charged the smaller failed fee, because Google still runs the test for up to a minute. If Google's daily PageSpeed limit is reached, the row says so and is not charged.

### Notes and limits

- A test usually takes Google 10 to 40 seconds; four pages are tested at a time.
- Each test is capped at 95 seconds. Very slow pages may time out; try them again.
- Pages behind a login, or that block Google's test agent, cannot be tested.

### Use with AI agents (MCP)

Connect this tool to Claude, Cursor, VS Code or any other MCP client through the [Apify MCP server](https://mcp.apify.com/). To load only this tool, use this server URL:

```
https://mcp.apify.com?tools=pagecraft/pagespeed-checker
```

Then ask, for example: "Check the mobile PageSpeed and Core Web Vitals for our ten most visited pages". The agent gets back performance, accessibility, best practice and SEO scores, Core Web Vitals and the biggest fixes for each page. Each call is charged per event at the prices in Pricing above. Agents without an Apify account can also pay per run through [Apify's agentic payments](https://docs.apify.com/agents/payments).

### Workflows with other Pagecraft tools

Pagecraft tools are built to work together. Ideas that use this one:

**Audit a website.** Find what hurts a site's search ranking and user experience.

1. [SEO Audit Tool](https://apify.com/pagecraft/seo-site-audit): Crawl the site and score every page's titles, meta, headings and canonicals.
2. [Broken Link Checker](https://apify.com/pagecraft/broken-link-checker): Find every broken link and missing image.
3. **This tool**: Get Google PageSpeed scores and Core Web Vitals for the key pages.
4. [llms.txt & AI Readiness Audit](https://apify.com/pagecraft/ai-agent-readiness-audit): Check whether AI crawlers and agents can read the site (robots.txt, llms.txt, schema).

### More Pagecraft tools

- [SEO Site Audit](https://apify.com/pagecraft/seo-site-audit): titles, meta, headings, canonicals and more for a whole site.
- [Broken Link Checker](https://apify.com/pagecraft/broken-link-checker): every broken link and image on a site.
- [Tech Stack Detector](https://apify.com/pagecraft/tech-stack-detector): which frameworks, CDNs and analytics a site uses.

# Actor input Schema

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

Page URLs or domains, one per line, e.g. https://example.com/pricing. Each page is tested separately.

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

Google ranks on mobile, so mobile is the default.

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

Leave empty for all four.

## `apiKey` (type: `string`):

Not needed. Add your own free PageSpeed Insights key only for very large runs (25,000 tests a day per key).

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

Not usually needed.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://web.dev"
  ],
  "strategy": "mobile",
  "categories": []
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://apify.com",
        "https://web.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pagecraft/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://web.dev",
    ] }

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

```

## MCP server setup

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