# Compare mobile and desktop PageSpeed scores

**Use case:** 

Runs PageSpeed Insights for both mobile and desktop on the same pages so you can see where mobile falls behind.

## Input

```json
{
  "urls": [
    "https://www.wikipedia.org/",
    "https://www.bbc.com/"
  ],
  "strategy": "both",
  "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 mobile and desktop PageSpeed scores". [Sign up or log in](https://console.apify.com/create-task-from-example/gVxgRG5qVJ3BdkXmW) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare mobile and desktop PageSpeed scores" 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 mobile and desktop PageSpeed scores" 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 mobile and desktop PageSpeed scores" task via API](https://apify.com/kadi_bence/pagespeed-checker.md).

## FAQ

### What does this task return?

The "Compare mobile and desktop PageSpeed scores" task returns one row per URL and device with scores, Core Web Vitals and top fixes.

### How much does it cost?

The "Compare mobile and desktop PageSpeed scores" 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 mobile and desktop PageSpeed scores" 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`).
