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

Run Google PageSpeed Insights for many URLs at once: Core Web Vitals (LCP, CLS, INP), performance, accessibility, best-practices and SEO scores plus top improvement opportunities. Mobile, desktop or both.

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

## Pricing

from $2.10 / 1,000 pagespeed 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

## Bulk PageSpeed Insights & Core Web Vitals Checker

Check hundreds of pages with **Google PageSpeed Insights** in one run – the same data as pagespeed.web.dev, as a clean table you can export, schedule and compare.

For every URL (mobile, desktop or both) you get:

- **Lighthouse scores** – Performance, Accessibility, Best practices, SEO (0–100)
- **Real-user Core Web Vitals** from the Chrome UX Report – LCP, INP, CLS (75th percentile) with good / needs-improvement / poor rating and a clear **passed / failed** verdict, exactly how Google judges it
- **Lab metrics** – FCP, LCP, Total Blocking Time, CLS, Speed Index, server response time (measured from Google's test server), page weight
- **Top 5 fixes per page** with estimated savings (ms / KB)
- Optional **performance budget** – each page gets `meetsBudget: true/false`
- A **site summary** (SUMMARY): average score, Core Web Vitals pass rate, slowest pages, pages below budget and the fixes that would help the most pages

No API key needed. Optional: add your own free Google key for your own quota (25,000 audits per day).

### Try it in one minute

1. Click **Try for free**. The input is already filled in (`https://apify.com`, mobile), so you can start right away.
2. Click **Start**. Google tests every page live, so this usually takes one to a few minutes. You get one row per page and device. This is real output from a test run on four websites with *Device: Mobile + desktop*, shortened:

| url | strategy | performanceScore | seoScore | coreWebVitals | fieldLcpMs | fieldInpMs | fieldCls |
|---|---|---|---|---|---|---|---|
| https://www.python.org/ | mobile | 89 | 92 | passed | 1324 | 89 | 0 |
| https://www.python.org/ | desktop | 95 | 92 | failed | 1385 | 17 | 0.14 |
| https://nodejs.org/ | mobile | 94 | 100 | failed | 1982 | 257 | 0.08 |
| https://www.mozilla.org/ | mobile | 95 | 100 | passed | 1911 | 184 | 0 |

Each row also has accessibility and best-practices scores, lab metrics, the top fixes and a link to the full report on pagespeed.web.dev.
3\. Put in your own pages (or upload a list) and download the table as **CSV, Excel or JSON**, or get it via API. Schedule it to watch your site after every release.

**What it costs:** $0.003 per audit, i.e. $3 per 1,000 audits. 50 pages on mobile and desktop (100 audits) cost $0.30. Pages that cannot be tested are free. Paid Apify plans get up to 30 % off. Apify's free plan includes monthly platform credit, so you can try it on your own site at no cost.

**Ready-made setups:** [Core Web Vitals for many pages](https://apify.com/rowharbor1988/bulk-pagespeed-core-web-vitals/examples/core-web-vitals-for-many-pages) · [PageSpeed mobile vs desktop comparison](https://apify.com/rowharbor1988/bulk-pagespeed-core-web-vitals/examples/pagespeed-mobile-vs-desktop)

### Who it is for

- **SEO agencies and freelancers** – audit all key pages of a client site and hand over a table instead of 50 screenshots
- **Shop and site owners** – find the slow templates (product, category, blog) before Google does
- **Developers** – schedule a daily run with a performance budget and get alerted when a release makes pages slower

### Input

| Field | Description |
|---|---|
| URLs | Pages to check (one per line, or upload a list) |
| Device | Mobile (default – what Google uses for ranking), desktop, or both |
| Lighthouse categories | Performance is always included; accessibility, best practices and SEO are free extras |
| Performance budget | Optional minimum performance score (0–100) |
| Top fixes per page | On by default |
| Google API key | Optional, kept secret |

### Example result

```json
{
  "url": "https://example.com/",
  "strategy": "mobile",
  "status": "success",
  "performanceScore": 87,
  "accessibilityScore": 95,
  "bestPracticesScore": 100,
  "seoScore": 92,
  "coreWebVitals": "passed",
  "fieldDataSource": "url",
  "fieldLcpMs": 2100, "fieldLcpMsRating": "good",
  "fieldInpMs": 180,  "fieldInpMsRating": "good",
  "fieldCls": 0.05,   "fieldClsRating": "good",
  "labLcpMs": 2987, "labTbtMs": 210, "labCls": 0.012, "labSpeedIndexMs": 2101,
  "pageWeightBytes": 845123,
  "meetsBudget": false,
  "opportunities": [
    { "id": "render-blocking-resources", "title": "Eliminate render-blocking resources", "savingsMs": 750 },
    { "id": "unused-javascript", "title": "Reduce unused JavaScript", "savingsMs": 450, "savingsKb": 200 }
  ],
  "reportUrl": "https://pagespeed.web.dev/analysis?url=https%3A%2F%2Fexample.com%2F&form_factor=mobile"
}
```

**Field data vs. lab data:** field data (`field…`) comes from real Chrome users over the last 28 days and is what Google uses for rankings. Small sites or new pages may have no field data for the page itself – then the Actor uses the data for the whole domain (`fieldDataSource: "origin"`) or leaves it empty. Lab data (`lab…`) is a fresh Lighthouse test and is always available.

### Pricing

Pay per successful audit (one URL on one device): **$0.003 per audit ($3 per 1,000)** – no start fee, no monthly fee. Pages that cannot be analysed (not reachable, blocked, timeout) are listed with the error and **not charged**. "Mobile + desktop" means two audits per URL.

### Good to know

- One audit takes 10–30 seconds at Google. Without your own key the Actor runs 2 audits in parallel, with a key 5 (adjustable up to 10).
- Scores vary a few points between runs – that is how Lighthouse works. For monitoring, compare averages or use the budget with some margin.
- Only pages that are publicly reachable can be tested (no logins).
- No personal data is collected – only performance measurements of public pages.

### Support

Missing a metric or found a problem? Open an issue on the Actor's Issues tab – I answer quickly.

# Actor input Schema

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

Web pages to check. Each URL is analysed by Google PageSpeed Insights (Lighthouse + Chrome UX Report).

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

Mobile is what Google uses for ranking. 'Both' runs two audits per URL (each is charged).

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

Performance is always included. Adding categories does not cost extra.

## `minPerformanceScore` (type: `integer`):

Optional. Every result gets meetsBudget true/false, and the summary lists pages below the budget – handy for scheduled monitoring and alerts.

## `includeOpportunities` (type: `boolean`):

Add the 5 biggest improvement opportunities (estimated savings in ms / KB) to each result.

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

Not required. With your own free key (Google Cloud → PageSpeed Insights API) you get your own quota of 25,000 audits per day and faster runs.

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

Language for titles of fixes, e.g. en, de, fr.

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

Default: 2 without API key, 5 with key.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ],
  "strategy": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "includeOpportunities": true,
  "locale": "en"
}
```

# Actor output Schema

## `results` (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 = {
    "urls": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowharbor1988/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": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("rowharbor1988/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": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call rowharbor1988/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,rowharbor1988/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/jmGNu4Ch4hqu9moPY/builds/oWcb2JCdf8r1neZDt/openapi.json
