# Compare Core Web Vitals of top e-commerce homepages

**Use case:** 

Compare Lighthouse performance scores and real-user Core Web Vitals (LCP, INP, CLS) of the Amazon, eBay and Etsy homepages on mobile, with the top fixes for each one.

## Input

```json
{
  "urls": [
    "https://www.amazon.com",
    "https://www.ebay.com",
    "https://www.etsy.com"
  ],
  "maxUrls": 100,
  "strategies": [
    "mobile"
  ],
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "maxOpportunities": 5,
  "locale": "en",
  "concurrency": 4
}
```

## Output

```json
{
  "url": {
    "label": "Url"
  },
  "strategy": {
    "label": "Strategy"
  },
  "scores": {
    "label": "Scores",
    "format": "object"
  },
  "coreWebVitalsPassed": {
    "label": "CWV passed (real users)",
    "format": "boolean"
  },
  "lab": {
    "label": "Lab metrics",
    "format": "object"
  },
  "alert": {
    "label": "Alert"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

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

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

### 2. Start the "Compare Core Web Vitals of top e-commerce homepages" task

The Bulk PageSpeed & Core Web Vitals Audit Actor will start running based on the input automatically. You can also change all the input fields, like URLs, max urls, and more, to match your specific use case.

### 3. Receive the "Compare Core Web Vitals of top e-commerce homepages" 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, strategy, scores, 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 top e-commerce homepages" task via API](https://apify.com/fjordlabs/pagespeed-audit.md).

## FAQ

### What URLs does this task compare for Core Web Vitals?

The task compares the Core Web Vitals of the Amazon, eBay, and Etsy homepages.

### What performance metrics does the task provide?

The task provides Lighthouse performance scores and real-user Core Web Vitals metrics such as LCP, INP, and CLS.

### What does the 'coreWebVitalsPassed' field indicate?

The 'coreWebVitalsPassed' field indicates whether the webpage met Google's criteria for real-user Core Web Vitals.

### What type of strategy does this task evaluate?

This task evaluates the performance of the specified URLs using the mobile strategy.

### How are audit results affected if a page audit fails?

Failed audits are not charged and are returned with an error indicating the failure.

## About this Actor

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