# Bulk PageSpeed Insights & Core Web Vitals Checker (`weav3rx/bulk-pagespeed-core-web-vitals`) Actor

Run Google PageSpeed Insights (Lighthouse) on hundreds of URLs at once. Performance, SEO, accessibility and best-practices scores, lab metrics, real-user Core Web Vitals (LCP, INP, CLS) and a plain-English list of what to fix, sorted by impact. Pay only for successful audits.

- **URL**: https://apify.com/weav3rx/bulk-pagespeed-core-web-vitals.md
- **Developed by:** [Roman Golovko](https://apify.com/weav3rx) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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.

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 Insights & Core Web Vitals Checker

**Paste a list of URLs. Get Google PageSpeed Insights for all of them, plus a to-do list of what to fix.** This Actor runs Google's official PageSpeed Insights API (Lighthouse) on hundreds or thousands of pages and returns everything in one table: scores, lab metrics, real-user Core Web Vitals and the fixes that will save the most time, sorted by impact.

Checking pages one by one on pagespeed.web.dev takes a minute each. Here, 500 URLs take a few minutes and come out ready for a spreadsheet or a client report.

### What you get for every URL

- 📊 **Lighthouse scores (0-100):** Performance, and optionally SEO, Accessibility and Best Practices.
- ⏱️ **Lab metrics:** Largest Contentful Paint, First Contentful Paint, Total Blocking Time, Cumulative Layout Shift, Speed Index, Time to Interactive.
- 👥 **Real-user Core Web Vitals** from the Chrome UX Report (the data Google uses for ranking): LCP, INP, CLS, FCP and TTFB at the 75th percentile, each labeled FAST / AVERAGE / SLOW, plus a clear `passesCoreWebVitals` true/false. When Google has no data for the exact page, the site-wide (origin) data is used and marked as such.
- 🛠️ **What to fix, by impact:** failing audits in plain English with the time each one saves, for example *"Reduce unused JavaScript (saves ~1.2 s)"*.
- 💡 **Opportunities** with estimated savings in milliseconds and bytes.

### Why this one

- ✅ **Official Google data.** Same engine as pagespeed.web.dev. No headless browser of ours to break or block.
- 💸 **Pay only for successful audits.** If a page is down or blocks Google, the row is marked `error` and you are not charged.
- 📱 **Mobile, desktop or both** in one run.
- 🧾 **Ready for reports:** one row per URL and device, export to CSV/Excel/Google Sheets, or connect to Make, Zapier and webhooks.
- ⏰ **Monitoring:** schedule it weekly to catch speed regressions after releases.

### Who uses it

- **SEO agencies:** audit every important page of a client site, or 50 competitor homepages, in one go.
- **Developers and QA:** check performance of all key pages after each deploy.
- **E-commerce teams:** find which product and category pages fail Core Web Vitals.
- **Sales:** find prospects whose sites are slow and pitch them with real numbers.

### How to use

1. Paste URLs, one per line (`example.com/pricing` works, `https://` is added for you).
2. Choose the device (mobile is what Google ranks by) and the categories you need.
3. Run. Each audit takes 10-40 seconds on Google's side; up to 16 run in parallel.

A run summary (successful and failed audits, average performance score, how many pages pass Core Web Vitals) is saved to the `OUTPUT` record.

### Example output

```json
{
  "url": "https://example.com/",
  "finalUrl": "https://example.com/",
  "strategy": "mobile",
  "status": "ok",
  "error": null,
  "scores": { "performance": 73, "accessibility": null, "bestPractices": null, "seo": 92 },
  "lab": { "lcpMs": 3457, "fcpMs": 1200, "tbtMs": 410, "cls": 0.083, "speedIndexMs": 2900, "ttiMs": 5100 },
  "field": {
    "scope": "url",
    "overallCategory": "AVERAGE",
    "passesCoreWebVitals": false,
    "lcp": { "p75": 2100, "category": "FAST" },
    "inp": { "p75": 180, "category": "FAST" },
    "cls": { "p75": 0.12, "category": "AVERAGE" },
    "fcp": { "p75": 1500, "category": "FAST" },
    "ttfb": { "p75": 600, "category": "FAST" }
  },
  "opportunities": [
    { "id": "unused-javascript", "title": "Reduce unused JavaScript", "savingsMs": 1200, "savingsBytes": 250000 }
  ],
  "fixes": [
    "Reduce unused JavaScript (saves ~1.2 s)",
    "Eliminate render-blocking resources (saves ~0.5 s)",
    "Image elements do not have [alt] attributes"
  ],
  "lighthouseVersion": "13.6.0",
  "fetchedAt": "2026-11-23T10:00:00.000Z"
}
```

### FAQ

**Do I need a Google API key?** No. The Actor uses its own key. For very large volumes (tens of thousands of audits a day) you can add your own free key under *Advanced*.

**Why are real-user (field) metrics empty for some pages?** Google only publishes Chrome UX Report data for pages and sites with enough traffic. Lab metrics and scores are always there.

**Why do scores differ slightly between runs?** Lighthouse measures a real page load, so network and server timing vary a little run to run. This is the same on pagespeed.web.dev.

**What does "error" mean?** Google could not load the page (it is down, returns an error, blocks Google, or times out). You are not charged for failed audits.

Found a bug or want a new field? Open an issue on the **Issues** tab.

# Actor input Schema

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

Pages to audit, one per line. https:// is added when missing. Up to 5,000 per run.

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

Mobile is what Google uses for ranking. "Both" runs two audits per URL.

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

Which scores to compute. Performance is the default and the only one with Core Web Vitals.

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

Optional. Your own free PageSpeed Insights API key if you run very large volumes. Leave empty to use ours.

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

Language for audit titles, e.g. en, de, fr, es.

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

How many audits run at the same time (1-16).

## Actor input object example

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

# Actor output Schema

## `audits` (type: `string`):

Per URL and device: Lighthouse scores, lab metrics, real-user Core Web Vitals, opportunities and plain-English fixes.

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

Counts of successful and failed audits, average performance score and how many pages pass Core Web Vitals.

# 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("weav3rx/bulk-pagespeed-core-web-vitals").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("weav3rx/bulk-pagespeed-core-web-vitals").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 weav3rx/bulk-pagespeed-core-web-vitals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,weav3rx/bulk-pagespeed-core-web-vitals"
        }
    }
}
```

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/yNhe7wKYUXs4AHfSo/builds/yANDhieptPn7cv5Uz/openapi.json
