# Bulk check Core Web Vitals for a sitemap

**Use case:** 

Give a sitemap URL and get Lighthouse performance scores and Core Web Vitals (LCP, CLS, TBT, FCP, Speed Index) for every page in it, plus the top fixes per page and a full Lighthouse HTML report. Find your slowest templates in one run instead of testing pages one at a time in PageSpeed Insights.

## Input

```json
{
  "urls": [
    "https://crawlee.dev"
  ],
  "sitemapUrl": "https://crawlee.dev/sitemap.xml",
  "maxUrls": 10,
  "device": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo",
    "agentic-browsing"
  ],
  "saveHtmlReports": true,
  "runsPerUrl": 1,
  "cpuCalibration": true,
  "throttling": "simulate",
  "maxConcurrency": 1,
  "pageTimeoutSecs": 60
}
```

## Output

```json
{
  "url": {
    "label": "Page",
    "format": "link"
  },
  "device": {
    "label": "Device",
    "format": "text"
  },
  "performanceScore": {
    "label": "Performance",
    "format": "number"
  },
  "accessibilityScore": {
    "label": "Accessibility",
    "format": "number"
  },
  "bestPracticesScore": {
    "label": "Best practices",
    "format": "number"
  },
  "seoScore": {
    "label": "SEO",
    "format": "number"
  },
  "agenticBrowsingScore": {
    "label": "Agentic",
    "format": "number"
  },
  "lcpMs": {
    "label": "LCP ms",
    "format": "number"
  },
  "cls": {
    "label": "CLS",
    "format": "number"
  },
  "tbtMs": {
    "label": "TBT ms",
    "format": "number"
  },
  "fcpMs": {
    "label": "FCP ms",
    "format": "number"
  },
  "speedIndexMs": {
    "label": "Speed Index ms",
    "format": "number"
  },
  "totalPageKb": {
    "label": "Page KB",
    "format": "number"
  },
  "reportUrl": {
    "label": "Report",
    "format": "link"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

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

The PageSpeed & Lighthouse Bulk Audit - Core Web Vitals & Reports Actor is ready to run with the inputs already set for "Bulk check Core Web Vitals for a sitemap". [Sign up or log in](https://console.apify.com/create-task-from-example/6fVVRYl8yQQbvnBna) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bulk check Core Web Vitals for a sitemap" task

The PageSpeed & Lighthouse Bulk Audit - Core Web Vitals & Reports Actor will start running based on the input automatically. You can also change all the input fields, like page urls, sitemap url (optional), and more, to match your specific use case.

### 3. Receive the "Bulk check Core Web Vitals for a sitemap" 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 page, device, performance, 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 check Core Web Vitals for a sitemap" task via API](https://apify.com/cuestadata/pagespeed-lighthouse-audit.md).

## FAQ

### What does the sitemap Core Web Vitals check return?

The sitemap Core Web Vitals check returns Lighthouse category scores, LCP, CLS, TBT, FCP and Speed Index, top fixes and an HTML report link for each page.

### How much does a bulk Core Web Vitals check cost?

A bulk Core Web Vitals check costs $0.01 per Lighthouse audit (one URL on one device). Failed pages are not charged.

### Are these scores the same as PageSpeed Insights?

The sitemap Core Web Vitals check runs the same Lighthouse engine as PageSpeed Insights on mobile or desktop, so scores are close but vary run to run.

## About this Actor

This example demonstrates how to use [PageSpeed & Lighthouse Bulk Audit - Core Web Vitals & Reports](https://apify.com/cuestadata/pagespeed-lighthouse-audit.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cuestadata/pagespeed-lighthouse-audit.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/cuestadata/pagespeed-lighthouse-audit.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`).
