# Website Speed Test: Bulk PageSpeed Insights & Core Web Vitals (`eliai/core-web-vitals-checker`) Actor

Bulk PageSpeed Insights checker and website speed test for up to 100 URLs per run, via Google's official API. Returns per URL the performance score, lab LCP/CLS/TBT, real-user CrUX LCP, INP and CLS with the FAST/AVERAGE/SLOW verdict, and top fixes. $0.01 per URL. For SEO agencies and developers.

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

## Pricing

from $8.00 / 1,000 vitals reports

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

## Website Speed Test: Bulk Core Web Vitals & PageSpeed Insights Checker

**A website speed test for many pages at once: send a list of URLs, get the Google PageSpeed Insights performance score, Core Web Vitals (LCP, CLS and TBT), and the real-user Chrome UX Report verdict for each.**

| You give it | You get back | You pay (Free plan) |
|---|---|---|
| Page URLs; mobile or desktop strategy | Per URL: score 0-100, lab LCP/CLS/TBT/FCP, field LCP/INP/CLS and FAST/AVERAGE/SLOW verdict, top fixes | **$0.01 per URL report** |

Pay per result only: no subscription, no start fee. URLs that fail are recorded and not charged. Paid Apify plans get Store discounts on the price above.

#### Try it in one click

The input form is already filled in with this example. Press **Start** and you get the output below.

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org"
  ]
}
```

Real output from that exact input (run on 2026-10-31; long decimals cut for display):

```json
[
  {
    "ok": true,
    "url": "https://www.wikipedia.org/",
    "strategy": "mobile",
    "performanceScore": 100,
    "lab": {
      "lcpMs": 1235,
      "cls": 0.0005,
      "tbtMs": 0,
      "fcpMs": 1053,
      "speedIndexMs": 2481
    },
    "field": {
      "available": true,
      "coreWebVitalsAssessment": "FAST",
      "lcpMs": 1294,
      "inpMs": 99,
      "cls": 0
    },
    "topOpportunities": [],
    "source": "Google PageSpeed Insights API v5"
  },
  {
    "ok": true,
    "url": "https://apify.com/",
    "strategy": "mobile",
    "performanceScore": 61,
    "lab": {
      "lcpMs": 1955,
      "cls": 0.00004,
      "tbtMs": 2045,
      "fcpMs": 1955,
      "speedIndexMs": 9594
    },
    "field": {
      "available": true,
      "coreWebVitalsAssessment": "AVERAGE",
      "lcpMs": 2411,
      "inpMs": 394,
      "cls": 0.02
    },
    "topOpportunities": [],
    "source": "Google PageSpeed Insights API v5"
  }
]
```

Audit **Core Web Vitals for up to 100 URLs in one run**. Each URL gets a client-ready report with the Lighthouse **performance score (0–100)**, lab metrics (**LCP, CLS, TBT, FCP, Speed Index**), **real-user CrUX field data** (LCP, INP, CLS percentiles) with **Google's own Core Web Vitals field verdict (FAST, AVERAGE or SLOW)**, and the **top 5 speed opportunities** ranked by estimated savings.

Data comes straight from the **official Google PageSpeed Insights API v5** — the same engine behind pagespeed.web.dev — on our own provisioned API quota, so runs don't fail on the shared anonymous limit.

### Who uses it

- SEO agencies producing a mobile Core Web Vitals report for 100 client URLs in one run
- Performance engineers comparing lab LCP and CLS against real-user CrUX data per page
- E-commerce teams checking product templates pass Google's field assessment after a theme update
- Developers reading the top speed opportunities to decide what to fix first
- Consultants benchmarking a prospect's key pages against their competitors' before a pitch

### Why this one

- **$0.01 per report, flat.** No actor-start fee, no per-metric micro-charges. Comparable actors charge a $0.10 start fee plus $0.02–$0.08 per URL before extras.
- **Failed URLs are free.** You pay only for delivered reports — an unreachable page is recorded with its error and never billed.
- **Field + lab in one row.** Lab scores tell you what Lighthouse simulated; CrUX field data tells you what real Chrome users experienced, including the assessment Google actually ranks with.

### Input

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

`strategy` is `mobile` (Google's ranking basis, default) or `desktop`.

### Output (one dataset item per URL)

```json
{
  "ok": true,
  "url": "https://example.com",
  "performanceScore": 84,
  "lab": { "lcpMs": 2100, "cls": 0.01, "tbtMs": 150, "fcpMs": 900, "speedIndexMs": 1800 },
  "field": {
    "available": true,
    "coreWebVitalsAssessment": "FAST",
    "lcpMs": 1900, "inpMs": 140, "cls": 0.02
  },
  "topOpportunities": [
    { "id": "render-blocking-resources", "title": "Eliminate render-blocking resources", "estimatedSavingsMs": 780 }
  ],
  "source": "Google PageSpeed Insights API v5"
}
```

`field.available` is `false` for low-traffic pages Google has no real-user data for — the lab metrics still come through.

### Example

A real desktop run on 2026-10-31. Input:

```json
{
  "urls": ["https://www.wikipedia.org", "https://web.dev", "https://developer.mozilla.org"],
  "strategy": "desktop"
}
```

What came back, one dataset item per URL (summarised from the full JSON):

| URL | Score | Lab LCP | Field verdict (CrUX) | Field LCP / INP | Top fix |
|---|---|---|---|---|---|
| wikipedia.org | 100 | 341 ms | FAST | 1,170 ms / 54 ms | none |
| developer.mozilla.org | 99 | 881 ms | FAST | 1,690 ms / 55 ms | Avoid multiple page redirects (~201 ms) |
| web.dev | 77 | 1,200 ms | AVERAGE | 2,686 ms / 71 ms | Reduce unused CSS (~310 ms) |

The run took 24 seconds and produced 3 reports, which is $0.03 on the Free plan.

### Common uses

- **Agency reporting**: monthly vitals rows for every client page, exportable as JSON/CSV/Excel from the dataset.
- **Site migration QA**: audit the top-100 URLs before and after a redesign and diff the scores.
- **Monitoring**: schedule a weekly run and alert when a page's assessment leaves "FAST".

### Works well with

- [SEO Audit Tool](https://apify.com/eliai/website-seo-tech-auditor) — title, meta, schema, robots and sitemap checks for the same URLs.
- [Page Weight Analyzer](https://apify.com/eliai/webpage-page-weight-analyzer) — byte-level breakdown of what makes a page heavy.
- [Redirect Chain Checker](https://apify.com/eliai/redirect-chain-checker) — where every URL actually lands before you audit it.
- [Complete Site Audit](https://apify.com/eliai/complete-site-audit) — the whole-site grade in one run.

### Pricing

**$0.01 per vitals report.** One charge per URL per strategy, so auditing a page on both mobile and
desktop is two reports. A URL that PageSpeed cannot analyse is returned with an error and is **not**
charged.

100 URLs on mobile is $1.00. `maxUrls` caps the run, so it doubles as your budget cap.

### Limits

- **Up to 100 URLs per run** (`maxUrls`, default 25). Split longer lists across runs.
- **One device per run.** Pick `mobile` or `desktop`; checking both means two runs and two reports per URL.
- **Time:** Google takes 30–60 seconds per URL on its side and the actor runs three at once, so 25 URLs take roughly 7 minutes.
- **Field data needs traffic.** Real-user CrUX numbers exist only for pages with enough Chrome visits; for the rest `field.available` is `false` and you get the lab metrics only.
- **Pages Google cannot load** (login walls, pages that block Google's tools, timeouts) come back `ok: false` with the error and are not charged.
- **Lab scores move a little between runs**, because Lighthouse simulates each load. Compare trends, not single points.

### FAQ

**Is this the same data as pagespeed.web.dev?** Yes — the official PageSpeed Insights API v5, called with your chosen device strategy.

**What's the difference between lab and field data?** Lab (Lighthouse) is a controlled simulation run at audit time; field (CrUX) is aggregated from real Chrome users over the past 28 days. Google's ranking systems use field data — that's the `coreWebVitalsAssessment` value.

**How long does a run take?** PageSpeed audits take 30–60 seconds per URL on Google's side; this actor runs three in parallel, so 25 URLs finish in roughly 7 minutes.

**Why did a URL come back `ok: false`?** The page was unreachable or PageSpeed couldn't analyze it — the error is in the record and the URL was not charged.

### Changelog

- 2026-10-31: Wording only. The page now says "website speed test" in its title, added Example and Limits sections, and the prefilled example checks wikipedia.org instead of the example.com placeholder. Code, output and price ($0.01 per report) are unchanged.

- 2026-09-24: New summary at the top of this page: what you send, what you get, the price, and a real output from the prefilled example.

- **2026-09-14** — Default run memory lowered from 1024 MB to 256 MB. The actor calls Google's API
  and never used more than 66 MB, so the extra memory only added platform compute to your bill.
  Output, price ($0.01 per report) and behaviour are unchanged. You can still pick more memory per run.

### For AI agents

This Actor is built to be called by software, not just by people.

- **Mount it directly as an MCP tool** — no Store search, no ranking, just this one tool:
  `https://mcp.apify.com/?actors=eliai/core-web-vitals-checker`
- **Or call it over HTTP** and get the results in the same request:
  `POST https://api.apify.com/v2/acts/eliai~core-web-vitals-checker/run-sync-get-dataset-items`
- **Costs are predictable before you call.** Pricing is pay-per-event (see Pricing above), so an agent can budget a run in advance instead of discovering the bill afterwards.
- **Send only the field you mean.** If you pass the bulk field, it is used on its own; the single-value field is a fallback, never merged into your request. You are charged for the items you sent and nothing else.

# Actor input Schema

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

Webpage URLs to audit. Each URL gets one vitals report: performance score, LCP, CLS, TBT lab metrics, plus real-user CrUX field data when Google has it.

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

Audit as mobile (what Google ranks by) or desktop.

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

Maximum number of URLs to audit in one run.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org"
  ],
  "strategy": "mobile",
  "maxUrls": 25
}
```

# Actor output Schema

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

Every item this run produced. Export as JSON, CSV or Excel from the dataset view.

# 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("eliai/core-web-vitals-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("eliai/core-web-vitals-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 eliai/core-web-vitals-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eliai/core-web-vitals-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/UGmey7N2396MAQ4YM/builds/rru5mkZPL0wd9YASp/openapi.json
