# Bulk PageSpeed Insights & Core Web Vitals Checker (`ponderable_ironwork/pagespeed-bulk-audit`) Actor

Audit many URLs with Google PageSpeed Insights: Lighthouse performance, SEO, accessibility and best-practices scores, real-user Core Web Vitals (LCP, INP, CLS) and top opportunities, mobile and desktop.

- **URL**: https://apify.com/ponderable_ironwork/pagespeed-bulk-audit.md
- **Developed by:** [Zac Vincent](https://apify.com/ponderable_ironwork) (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.20 / 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

## Bulk PageSpeed Insights & Core Web Vitals Checker (Lighthouse API)

**Run Google PageSpeed Insights on hundreds of URLs at once and get every score in one table.** You get Lighthouse **Performance, SEO, Accessibility and Best Practices** scores, **real-user Core Web Vitals** (LCP, INP, CLS) from the Chrome UX Report, lab metrics and the top fixes with estimated savings, on mobile, desktop or both. **$3.00 per 1,000 audits**, and failed audits are never charged. No Google API key needed.

- ✅ **Lighthouse scores** (0–100) for all four categories, per URL and device
- ✅ **Real-user Core Web Vitals** (CrUX field data, 75th percentile) with FAST / AVERAGE / SLOW ratings at URL level, or origin level as a fallback
- ✅ **Lab metrics**: FCP, LCP, TBT, CLS, Speed Index, TTI, server response time, total page weight
- ✅ **Top opportunities** ranked by estimated time saved, plus failed SEO checks
- ✅ Official **PageSpeed Insights API**, with no headless Chrome to babysit. The Actor's own key works out of the box
- 💲 **$3.00 per 1,000 audits** (one audit = one URL on one device)

### What does the bulk PageSpeed checker return?

| Group | Fields |
|---|---|
| Scores | `performanceScore`, `accessibilityScore`, `bestPracticesScore`, `seoScore` |
| Core Web Vitals (real users) | `fieldOverall`, `fieldLcpMs`, `fieldInp`, `fieldCls`, `fieldFcpMs`, `fieldTtfbMs`, each with a `…Category`; `fieldDataScope` (url or origin) |
| Whole-site vitals (optional) | `originOverall`, `originLcpMs`, `originInp`, `originCls`, … |
| Lab metrics | `labFcpMs`, `labLcpMs`, `labTbtMs`, `labCls`, `labSpeedIndexMs`, `labTtiMs`, `serverResponseMs`, `totalByteWeight` |
| Fixes | `opportunities[]` (id, title, savingsMs), `seoFailures[]` |

### How to check PageSpeed for many URLs

1. Paste your pages into **URLs to audit**. `https://` is added if missing, and duplicates are removed.
2. Choose **Devices**: mobile, desktop or both. Each URL × device is one audit.
3. Optionally turn on **Include origin-level Core Web Vitals** for whole-site real-user data.
4. Click **Start**. A typical audit takes 10–40 s, and audits run in parallel (*Max concurrency*, default 4).

**Tip:** feed it a site's full URL list from the [Sitemap URL Extractor](https://apify.com/ponderable_ironwork/sitemap-urls-extractor) to audit every template on a site.

#### Input example

```json
{ "urls": ["https://apify.com", "https://web.dev"], "strategies": ["mobile", "desktop"], "includeOriginData": true }
```

#### Output example (real run)

```json
{
  "url": "https://web.dev/",
  "strategy": "desktop",
  "performanceScore": 71,
  "accessibilityScore": 90,
  "bestPracticesScore": 96,
  "seoScore": 92,
  "fieldOverall": "AVERAGE",
  "fieldLcpMs": 2720, "fieldLcpCategory": "AVERAGE",
  "fieldInp": 69, "fieldInpCategory": "FAST",
  "fieldCls": 0.07, "fieldClsCategory": "FAST",
  "fieldDataScope": "url",
  "labLcpMs": 845.7, "labTbtMs": 607.5, "labCls": 0.114,
  "totalByteWeight": 3772067,
  "opportunities": [],
  "seoFailures": ["Links do not have descriptive text"],
  "lighthouseVersion": "13.6.0",
  "originOverall": "AVERAGE",
  "analyzedAt": "2026-11-21T21:32:59.301Z"
}
```

### Use cases

- **SEO agencies**: audit every client page each month and track Core Web Vitals over time
- **Developers and QA**: catch performance regressions across all page templates after a release
- **Lead generation**: find prospects with slow sites (low `performanceScore`, SLOW `fieldOverall`) to pitch speed work
- **Competitor benchmarking**: compare your Core Web Vitals with competitors' on the same pages

### Why use this Actor?

| | This Actor | PageSpeed Insights website | Self-hosted Lighthouse |
|---|---|---|---|
| URLs per run | Hundreds | One at a time | Many, on your own servers |
| Real-user CrUX data | ✅ URL + origin | ✅ | ❌ lab only |
| API key needed | No (bring your own for 25,000/day) | No | No |
| Output | One table: JSON, CSV, Excel | Web page | Raw JSON reports |
| Price | **$3.00 per 1,000 audits**, failures free | Free, manual | Your server time |

### Use it from AI agents (MCP) and code

**MCP (Claude, Cursor, VS Code, ChatGPT and other MCP clients).** Add this Actor as a single tool through Apify's hosted MCP server. You sign in with your Apify account on first use:

```json
{
  "mcpServers": {
    "apify-pagespeed-bulk-audit": {
      "url": "https://mcp.apify.com?tools=ponderable_ironwork/pagespeed-bulk-audit"
    }
  }
}
```

The tool appears as `ponderable_ironwork--pagespeed-bulk-audit`. Try a prompt like: *"Audit the mobile PageSpeed and Core Web Vitals of these 5 URLs and tell me which page has the worst LCP and why."*

**API (one call, results back as JSON).** Replace `<APIFY_TOKEN>` with your token from Apify Console → Settings → API & Integrations:

```bash
curl -X POST "https://api.apify.com/v2/acts/ponderable_ironwork~pagespeed-bulk-audit/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://apify.com", "https://web.dev"], "strategies": ["mobile"]}'
```

The Apify [JavaScript](https://docs.apify.com/api/client/js/) and [Python](https://docs.apify.com/api/client/python/) clients, **schedules**, **webhooks** and the **Make, n8n and Zapier** integrations work too. Every run's dataset downloads as JSON, CSV, Excel or XML.

### Pricing

**$3.00 per 1,000 audits** (lower on higher Apify plans), platform usage included. Errors such as unreachable pages or invalid URLs are saved with an `error` field and **not charged**.

### FAQ

**Do I need a Google API key?** No. The Actor ships with its own key. For very large volumes, add your own free key (Google Cloud console → enable *PageSpeed Insights API* → Credentials) for a dedicated quota of 25,000 audits a day. It's stored encrypted.

**Why are the field (CrUX) values empty?** Google has real-user data only for pages and sites with enough Chrome traffic. Lab scores are always returned.

**Why do scores differ between runs?** Lighthouse lab results naturally vary by a few points, and field data is a 28-day rolling average.

**Can I monitor Core Web Vitals over time?** Yes. Schedule a weekly run and append the dataset to Google Sheets or BigQuery.

### More data tools from this developer

- [Career Page Jobs API](https://apify.com/ponderable_ironwork/ats-jobs-feed): every open job from Greenhouse, Lever, Ashby, Workable, Recruitee & Workday boards, $1.50 per 1,000 jobs
- [Sitemap URL Extractor](https://apify.com/ponderable_ironwork/sitemap-urls-extractor): every URL from a site's XML sitemaps with lastmod and hreflang, $0.50 per 1,000 URLs
- [Wayback Machine Snapshots & Archived URLs](https://apify.com/ponderable_ironwork/wayback-machine-snapshots): capture history and every archived URL of a domain, $1.00 per 1,000 results
- [Bulk Domain Availability, RDAP WHOIS & DNS](https://apify.com/ponderable_ironwork/domain-rdap-dns-checker): availability, registrar, expiry, MX/SPF/DMARC, $1.00 per 1,000 domains
- [OpenAlex Academic Papers Search](https://apify.com/ponderable_ironwork/openalex-papers-search): 250M+ papers with citations, abstracts and BibTeX, $1.00 per 1,000 papers
- [Hacker News Search & Comment Threads](https://apify.com/ponderable_ironwork/hacker-news-search): stories and full comment threads by keyword, domain or date, $0.60 per 1,000 results
- [RSS, Atom & Podcast Feed Reader](https://apify.com/ponderable_ironwork/rss-feed-reader): any feed to clean JSON with auto-discovery, $0.80 per 1,000 items

Found a bug or need a field? Open an issue on the **Issues** tab. Fixes usually ship within days.

# Actor input Schema

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

Pages to test, one per line. 'https://' is added if missing and duplicates are removed. Tip: get a site's full URL list with the Sitemap URL Extractor Actor.

## `strategies` (type: `array`):

Run mobile, desktop, or both. Each URL × device is one audit.

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

Your own free PageSpeed Insights API key (Google Cloud console → APIs → PageSpeed Insights API → Credentials). Optional: the Actor ships with a shared key, but your own key gives you a dedicated 25,000 audits/day quota.

## `includeOriginData` (type: `boolean`):

Also return real-user metrics for the whole site (origin), not just the URL.

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

How many top performance opportunities (with estimated savings) to include.

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

Language for audit titles and fix descriptions, e.g. 'en', 'de', 'es'. Leave empty for English.

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

Parallel audits (each takes 10-40 s).

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://web.dev"
  ],
  "strategies": [
    "mobile"
  ],
  "includeOriginData": false,
  "maxOpportunities": 5,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

All items produced by the run.

## `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": [
        "https://apify.com",
        "https://web.dev"
    ],
    "strategies": [
        "mobile"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_ironwork/pagespeed-bulk-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 = {
    "urls": [
        "https://apify.com",
        "https://web.dev",
    ],
    "strategies": ["mobile"],
}

# Run the Actor and wait for it to finish
run = client.actor("ponderable_ironwork/pagespeed-bulk-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 '{
  "urls": [
    "https://apify.com",
    "https://web.dev"
  ],
  "strategies": [
    "mobile"
  ]
}' |
apify call ponderable_ironwork/pagespeed-bulk-audit --silent --output-dataset

```

## MCP server setup

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