# Core Web Vitals & PageSpeed Performance Checker (`risimwell/bulk-rendered-web-performance-core-web-vitals-crawler`) Actor

Audit Core Web Vitals (LCP, CLS, INP, TTFB, FCP) and rendered network metrics across bulk URLs using headless Chrome browsers for enterprise SEO and site performance optimization.

- **URL**: https://apify.com/risimwell/bulk-rendered-web-performance-core-web-vitals-crawler.md
- **Developed by:** [Ricardo Enriquez](https://apify.com/risimwell) (community)
- **Categories:** SEO tools, MCP servers, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.00 / 1,000 items extracted

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/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 Rendered Web Performance & Core Web Vitals Auditor

### Why use this Actor?

Supercharge your enterprise SEO and performance optimization workflows by auditing Core Web Vitals at scale. This Actor eliminates manual PageSpeed Insights checks by using headless Playwright Chrome instances to audit LCP, CLS, TTFB, FCP, and full network metrics across thousands of URLs simultaneously.

#### Dataset Overview

| Metric | Field Name | Description |
| :--- | :--- | :--- |
| Target URL | `url` | The original URL submitted for auditing. |
| Final URL | `final_url` | Resolved URL after redirects. |
| HTTP Status | `status_code` | Response status code returned by the server. |
| Page Title | `title` | The rendered HTML document title. |
| Core Web Vitals | `metrics` | Object containing precise TTFB, FCP, LCP, CLS, and load times in milliseconds. |
| Network Usage | `network_summary` | Total HTTP requests, transfer bytes, and script/asset counts. |

### Use Cases

- **SEO Audits & Monitoring**: Automatically audit hundreds of landing pages or e-commerce product pages for sudden Core Web Vitals regressions.
- **No-Code Automation**: Connect this Actor seamlessly with Make, n8n, or Zapier to trigger performance tests on demand.
- **AI Agents (MCP)**: Give your AI agents direct access via Model Context Protocol (mcp.apify.com) to inspect site speed programmatically.
- **Competitive Benchmarking**: Gather bulk performance metrics on competitor domain structures without rate-limiting headaches.

### Input JSON Example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://example.com"
    }
  ],
  "viewportWidth": 1920,
  "emulateMobile": false,
  "maxItems": 2
}
```

### Real Verified Output JSON Example

```json
[
  {
    "url": "https://apify.com",
    "final_url": "https://apify.com/",
    "status_code": 200,
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "audit_method": "playwright_rendered",
    "metrics": {
      "ttfb_ms": 350.3,
      "fcp_ms": 10276,
      "lcp_ms": 10276,
      "cls": 0,
      "dom_content_loaded_ms": 10251.9,
      "load_event_ms": 0
    },
    "network_summary": {
      "total_requests": 48,
      "total_bytes": 538782,
      "script_count": 26,
      "css_count": 0,
      "image_count": 0
    },
    "performance_score_est": 65
  }
]
```

### Quick Automation (n8n, Make, cURL & MCP Server)

Trigger runs programmatically via the Apify API sync endpoint or query directly using the Model Context Protocol server at mcp.apify.com.

```bash
curl -X POST "https://api.apify.com/v2/acts/bulk-rendered-web-performance-core-web-vitals-crawler/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": [{"url": "https://apify.com"}], "maxItems": 1}'
```

### Transparent Pay-Per-Event Pricing

This Actor operates on a clear Pay-Per-Event (PPE) pricing model:

- **Actor Start**: $0.002 (execution initialization and browser pool context allocation).
- **Item Extracted**: $0.016 per successfully audited URL containing full rendered Core Web Vitals payload.
- **Estimated cost per 1,000 URLs**: ~$16.00 + start fee.

# Actor input Schema

## `startUrls` (type: `array`):

List of web page URLs to audit for Core Web Vitals and load performance.

## `viewportWidth` (type: `integer`):

Browser screen width in pixels (e.g. 1920 for desktop, 375 for mobile).

## `emulateMobile` (type: `boolean`):

Emulate a mobile viewport and user agent for mobile Core Web Vitals assessment.

## `maxItems` (type: `integer`):

Maximum number of URLs to process in single execution.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://example.com"
    }
  ],
  "viewportWidth": 1920,
  "emulateMobile": false,
  "maxItems": 2
}
```

# Actor output Schema

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

Structured records extracted by this Actor.

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://example.com"
        }
    ],
    "viewportWidth": 1920,
    "emulateMobile": false,
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("risimwell/bulk-rendered-web-performance-core-web-vitals-crawler").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 = {
    "startUrls": [
        { "url": "https://apify.com" },
        { "url": "https://example.com" },
    ],
    "viewportWidth": 1920,
    "emulateMobile": False,
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("risimwell/bulk-rendered-web-performance-core-web-vitals-crawler").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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://example.com"
    }
  ],
  "viewportWidth": 1920,
  "emulateMobile": false,
  "maxItems": 2
}' |
apify call risimwell/bulk-rendered-web-performance-core-web-vitals-crawler --silent --output-dataset

```

## MCP server setup

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

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/db3AOV1bd4Lpii8Rg/builds/NECYg5Voh8Mnnm5Ad/openapi.json
