# Check Core Web Vitals (real-user CrUX + median of 3 lab runs) (`fifty50labs/core-web-vitals-crux-median-check`) Actor

Returns a Core Web Vitals PASSED/FAILED verdict from real-user CrUX data (URL + origin p75 LCP/INP/CLS) and a Lighthouse score that is the median of 3 fresh runs. Official PageSpeed Insights API. Use for SEO decisions and agents; not for full-site crawls.

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

## Pricing

$25.00 / 1,000 core web vitals 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

## Core Web Vitals Check: real-user CrUX data + median of 3 Lighthouse runs

Get a **Core Web Vitals PASSED/FAILED verdict from real Chrome users**, plus a **Lighthouse performance score you can trust**. The score is the **median of 3 fresh lab runs**, not one noisy run. Data comes from Google's official PageSpeed Insights API v5 and the Chrome UX Report (CrUX).

**Use it for:** deciding whether a page really passes Core Web Vitals, before/after checks on a release, SEO reporting, and giving AI agents a real speed measurement.
**Not for:** full-site SEO crawls, accessibility audits, or tests on pages behind a login.

**Price: $25 per 1,000 audits** ($0.025 per URL per device). All 3 lab runs are included. Failed audits are free.

### Which of our two PageSpeed tools do you need?

| | **This Actor: Core Web Vitals Check** | [Bulk PageSpeed & Core Web Vitals Audit](https://apify.com/fifty50labs/bulk-pagespeed-lighthouse-audit) |
|---|---|---|
| Best for | **Decisions**: does this page pass, and did my fix work? | **Quick, cheap sweeps** of many URLs |
| Lighthouse runs per URL | **Median of 3** (1-5), with every run's score and a noise flag | 1 |
| Real-user CrUX | URL **and** origin, side by side, with a PASSED/FAILED verdict | Single field block (URL, falling back to origin) |
| Lighthouse categories | Performance | Performance, accessibility, best practices, SEO |
| Price | $25 / 1,000 audits | $1.50 / 1,000 audits |

A single Lighthouse run can swing 10-25 points between identical runs. In our own tests web.dev scored 36, 37 and 56 on three back-to-back mobile runs, and another site scored 96, 71 and 71. If one number is going into a report or a ticket, use the median.

### What you get per URL and device

- **`coreWebVitals`**: `PASSED`, `FAILED` or `NO_FIELD_DATA`, judged on real-user 75th-percentile data against Google's thresholds (LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1). `coreWebVitalsSource` tells you whether it came from page-level or origin-level data.
- **Real-user p75 metrics** for the URL (`urlLcpP75`, `urlInpP75`, `urlClsP75`, `urlFcpP75`, `urlTtfbP75`) and for the origin (`origin…`), each with Google's FAST / AVERAGE / SLOW category.
- **Lab results as medians**: `performanceScoreMedian`, every run in `performanceScoreRuns`, min/max, `labNoisy` (runs 10+ points apart), and median LCP, TBT, CLS, FCP, Speed Index and server response time.
- **Top 5 fixes** with estimated savings in ms, taken from the run closest to the median.

### Input

| Field | Default | What it does |
|---|---|---|
| `urls` | (required) | Pages to check |
| `strategies` | `["mobile"]` | `mobile` and/or `desktop` |
| `labRuns` | 3 | 1-5 lab runs per audit; the price is per audit, not per run |
| `maxSecondsPerAudit` | 25 | Lab runs still running after this are dropped; the median uses the runs that finished (`labRunsOk`). 0 = wait for all |
| `apiKey` | built-in | Optional: your own free Google API key for your own quota and more parallelism |

```json
{ "urls": ["https://www.wikipedia.org"], "strategies": ["mobile"], "labRuns": 3 }
```

The three runs happen in parallel, so the example above finishes in about 15 seconds. Heavy pages can take Google 30-80 seconds per Lighthouse run. The 25-second `maxSecondsPerAudit` limit keeps agent calls fast, and you can set it to 0 for full medians on slow pages.

### Output example (real run on 13 Nov 2026, shortened)

```json
{
  "url": "https://web.dev",
  "strategy": "mobile",
  "status": "ok",
  "coreWebVitals": "FAILED",
  "coreWebVitalsSource": "url",
  "urlLcpP75": 3038, "urlInpP75": 235, "urlClsP75": 0.01,
  "originLcpP75": 3113,
  "performanceScoreMedian": 34,
  "performanceScoreRuns": [37, 28, 34],
  "labNoisy": false,
  "labLcpMsMedian": 7804,
  "labRunsOk": 3
}
```

### For AI agents (MCP)

The Actor runs with limited permissions, so it can be called through the **Apify MCP server** (`call-actor`). One URL with the defaults fits the MCP wait of about 30 seconds. For long lists, start the run and read the dataset afterwards. Set `maxTotalChargeUsd` to cap spend.

### Notes

- Google caches PageSpeed results for the same URL for about 30 seconds. To get genuinely fresh lab runs, runs 2 and 3 add a harmless `?_cwvrun=N` query parameter. Field data always comes from the clean URL.
- CrUX only covers pages and origins with enough Chrome traffic. Small sites get `NO_FIELD_DATA`, and the lab median is still returned.
- Pages that Lighthouse can't load (blocked, 4xx/5xx, no paint) come back with `status: failed` and are not charged.

### Keywords

core web vitals checker, CrUX API, real user metrics, pagespeed insights api, lighthouse median, INP LCP CLS, page speed test bulk, core web vitals assessment, site speed audit, MCP pagespeed tool

# Actor input Schema

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

Pages to check, one per line. https:// is added if missing. Duplicates are removed.

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

mobile (default: Google ranks on mobile) and/or desktop. Each URL x device is one audit.

## `labRuns` (type: `integer`):

How many fresh Lighthouse runs to take the median of. 3 is the standard way to remove lab noise; 1 is fastest. Price is per audit, not per run.

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

Optional free Google API key with the PageSpeed Insights API enabled: gives you your own quota (25,000/day by default) and 15 parallel runs instead of 6. Leave empty to use the built-in key.

## `maxSecondsPerAudit` (type: `integer`):

Lab runs still running after this many seconds are dropped and the median uses the runs that finished (labRunsOk tells you how many). Keeps agent calls under the ~30 s MCP wait. 0 = wait for every run. At least one run is always awaited.

## Actor input object example

```json
{
  "urls": [
    "https://www.wikipedia.org"
  ],
  "strategies": [
    "mobile"
  ],
  "labRuns": 3,
  "maxSecondsPerAudit": 25
}
```

# 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://www.wikipedia.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fifty50labs/core-web-vitals-crux-median-check").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://www.wikipedia.org"] }

# Run the Actor and wait for it to finish
run = client.actor("fifty50labs/core-web-vitals-crux-median-check").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://www.wikipedia.org"
  ]
}' |
apify call fifty50labs/core-web-vitals-crux-median-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fifty50labs/core-web-vitals-crux-median-check"
        }
    }
}
```

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/F6Y8bW6TBEVnQguiU/builds/ag0sJ4ODCMgVvazap/openapi.json
