# Compare Core Web Vitals of competitor websites

**Use case:** 

Runs Google PageSpeed Insights on several sites at once and compares performance scores and Core Web Vitals. The example compares Shopify, Wix and Squarespace.

## Input

```json
{
  "urls": [
    "https://www.shopify.com/",
    "https://www.wix.com/",
    "https://www.squarespace.com/"
  ],
  "strategy": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "includeFieldData": true,
  "useCruxApi": false,
  "maxOpportunities": 5,
  "maxUrls": 20,
  "locale": "en",
  "maxConcurrency": 4,
  "maxRequestsPerSecond": 2
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "strategy": {
    "label": "Device",
    "format": "string"
  },
  "performanceScore": {
    "label": "Performance",
    "format": "integer"
  },
  "accessibilityScore": {
    "label": "Accessibility",
    "format": "integer"
  },
  "bestPracticesScore": {
    "label": "Best practices",
    "format": "integer"
  },
  "seoScore": {
    "label": "SEO",
    "format": "integer"
  },
  "cwvAssessment": {
    "label": "Core Web Vitals",
    "format": "string"
  },
  "fieldLcpMs": {
    "label": "LCP p75 (ms)",
    "format": "integer"
  },
  "fieldInpMs": {
    "label": "INP p75 (ms)",
    "format": "integer"
  },
  "fieldCls": {
    "label": "CLS p75",
    "format": "number"
  },
  "labLcpMs": {
    "label": "LCP (ms)",
    "format": "integer"
  },
  "labTbtMs": {
    "label": "TBT (ms)",
    "format": "integer"
  },
  "labCls": {
    "label": "CLS",
    "format": "number"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

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

The Bulk PageSpeed & Lighthouse Checker \[$3.90/1k\] - Web Vitals Actor is ready to run with the inputs already set for "Compare Core Web Vitals of competitor websites". [Sign up or log in](https://console.apify.com/create-task-from-example/1NRAYNR11RaQoEwc8) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare Core Web Vitals of competitor websites" task

The Bulk PageSpeed & Lighthouse Checker \[$3.90/1k\] - Web Vitals Actor will start running based on the input automatically. You can also change all the input fields, like page urls, device, and more, to match your specific use case.

### 3. Receive the "Compare Core Web Vitals of competitor websites" 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, 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 "Compare Core Web Vitals of competitor websites" task via API](https://apify.com/kadi_bence/pagespeed-checker.md).

## FAQ

### What does this task return?

The "Compare Core Web Vitals of competitor websites" task returns performance score, LCP, INP, CLS, real-user field data and the top fixes per URL.

### How much does it cost?

The "Compare Core Web Vitals of competitor websites" task costs $3.90 per 1,000 audits on the base plan, plus a tiny start fee. Higher Apify plans pay less.

### Can I run it on a schedule?

The "Compare Core Web Vitals of competitor websites" task can run on any Apify schedule, and the results can go to Google Sheets, Slack, a webhook or the API.

## About this Actor

This example demonstrates how to use [Bulk PageSpeed & Lighthouse Checker [$3.90/1k] - Web Vitals](https://apify.com/kadi_bence/pagespeed-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kadi_bence/pagespeed-checker.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/kadi_bence/pagespeed-checker.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`).
