# Bulk PageSpeed Insights Check (Mobile + Desktop)

**Use case:** 

Paste a list of URLs and get PageSpeed Insights scores, Lighthouse lab metrics and real-user Core Web Vitals for mobile and desktop in one dataset. No Google API key needed; failed audits are free.

## Input

```json
{
  "urls": [
    "https://www.wikipedia.org/",
    "https://example.com/",
    "https://developer.mozilla.org/en-US/"
  ],
  "strategy": "both",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "regressionThresholds": {
    "scores.performance": 5,
    "labMetrics.lcpMs": 500,
    "labMetrics.cls": 0.05
  },
  "fieldRegressionCheck": false,
  "samples": 1,
  "maxAudits": 1000,
  "maxConcurrency": 4,
  "timeoutSecs": 120,
  "maxUrls": 100,
  "maxRunSecs": 3000
}
```

## Output

```json
{
  "inputUrl": {
    "label": "URL",
    "format": "string"
  },
  "strategy": {
    "label": "Device",
    "format": "text"
  },
  "success": {
    "label": "Success",
    "format": "boolean"
  },
  "scores.performance": {
    "label": "Performance",
    "format": "number"
  },
  "labMetrics.lcpMs": {
    "label": "LCP (ms)",
    "format": "number"
  },
  "labMetrics.cls": {
    "label": "CLS",
    "format": "number"
  },
  "fieldData.source": {
    "label": "Field source",
    "format": "text"
  },
  "fieldData.overallCategory": {
    "label": "Field overall category",
    "format": "text"
  },
  "fieldData.coreWebVitalsAssessment": {
    "label": "Field CWV assessment",
    "format": "text"
  },
  "fieldData.lcpMs": {
    "label": "Field p75 LCP (ms)",
    "format": "number"
  },
  "fieldData.inpMs": {
    "label": "Field p75 INP (ms)",
    "format": "number"
  },
  "fieldData.cls": {
    "label": "Field p75 CLS",
    "format": "number"
  },
  "fieldData.fcpMs": {
    "label": "Field p75 FCP (ms)",
    "format": "number"
  },
  "fieldData.ttfbMs": {
    "label": "Field p75 TTFB (ms)",
    "format": "number"
  },
  "fieldData.lcpRating": {
    "label": "Field LCP rating",
    "format": "text"
  },
  "fieldData.inpRating": {
    "label": "Field INP rating",
    "format": "text"
  },
  "fieldData.clsRating": {
    "label": "Field CLS rating",
    "format": "text"
  },
  "fieldData.fcpRating": {
    "label": "Field FCP rating",
    "format": "text"
  },
  "fieldData.ttfbRating": {
    "label": "Field TTFB rating",
    "format": "text"
  },
  "fieldData.note": {
    "label": "Field note",
    "format": "string"
  },
  "fieldData.reason": {
    "label": "Field availability reason",
    "format": "string"
  },
  "comparisonStatus": {
    "label": "Comparison",
    "format": "text"
  },
  "delta.scores.performance": {
    "label": "Δ Performance",
    "format": "number"
  },
  "delta.labMetrics.lcpMs": {
    "label": "Δ LCP (ms)",
    "format": "number"
  },
  "regressions": {
    "label": "Regressions",
    "format": "array"
  },
  "errorCode": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The PageSpeed Insights & Core Web Vitals Monitor Actor is ready to run with the inputs already set for "Bulk PageSpeed Insights Check (Mobile + Desktop)". [Sign up or log in](https://console.apify.com/create-task-from-example/JejnKXqvGAygdtHXE) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bulk PageSpeed Insights Check (Mobile + Desktop)" task

The PageSpeed Insights & Core Web Vitals Monitor Actor will start running based on the input automatically. You can also change all the input fields, like public page urls, device, and more, to match your specific use case.

### 3. Receive the "Bulk PageSpeed Insights Check (Mobile + Desktop)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, device, success, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Bulk PageSpeed Insights Check (Mobile + Desktop)" task via API](https://apify.com/smartlinks/pagespeed-change-monitor.md).

## FAQ

### Do I need a Google API key?

No. A built-in key is used. You can add your own key as a secret input for higher volumes.

### What does it cost?

$4 per 1,000 successful URL/device audits on the free plan, less on Bronze, Silver and Gold. Failed audits are free.

### What is the difference between lab and field data?

Lab data is one Lighthouse run by Google. Field data (CrUX) is what real Chrome users experienced over the last 28 days.

## About this Actor

This example demonstrates how to use [PageSpeed Insights & Core Web Vitals Monitor](https://apify.com/smartlinks/pagespeed-change-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/smartlinks/pagespeed-change-monitor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/smartlinks/pagespeed-change-monitor.md

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`).
