# Monitor PageSpeed scores weekly and flag regressions

**Use case:** 

Keeps each page's last performance score and adds the change and a regression flag when the score drops by 5 points or more. Save this task, then schedule it weekly in Apify Schedules; connect a webhook or Slack integration to hear about drops.

## Input

```json
{
  "urls": [
    "https://brisaworks.com/",
    "https://brisaworks.com/apify/"
  ],
  "maxUrls": 100,
  "mobile": true,
  "desktop": false,
  "includeSeo": false,
  "includeAccessibility": false,
  "includeBestPractices": false,
  "compareWithPrevious": true,
  "regressionThreshold": 5
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "strategy": {
    "label": "Device"
  },
  "status": {
    "label": "Status"
  },
  "performanceScore": {
    "label": "Performance",
    "format": "number"
  },
  "seoScore": {
    "label": "SEO",
    "format": "number"
  },
  "accessibilityScore": {
    "label": "Accessibility",
    "format": "number"
  },
  "bestPracticesScore": {
    "label": "Best practices",
    "format": "number"
  },
  "lab": {
    "label": "Lab metrics",
    "format": "object"
  },
  "field": {
    "label": "Real-user (CrUX)",
    "format": "object"
  },
  "topFixes": {
    "label": "Top fixes (est. savings)",
    "format": "array"
  },
  "scoreDelta": {
    "label": "Change",
    "format": "number"
  },
  "regression": {
    "label": "Regression",
    "format": "boolean"
  },
  "fetchedAt": {
    "label": "Audited at",
    "format": "date"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

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

The PageSpeed & Lighthouse Bulk Checker with History Actor is ready to run with the inputs already set for "Monitor PageSpeed scores weekly and flag regressions". [Sign up or log in](https://console.apify.com/create-task-from-example/AobPDyWpQw0pf1KJ0) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Monitor PageSpeed scores weekly and flag regressions" task

The PageSpeed & Lighthouse Bulk Checker with History Actor will start running based on the input automatically. You can also change all the input fields, like URLs, max urls per source, and more, to match your specific use case.

### 3. Receive the "Monitor PageSpeed scores weekly and flag regressions" 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, status, 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 "Monitor PageSpeed scores weekly and flag regressions" task via API](https://apify.com/brisaworks/pagespeed-bulk.md).

## About this Actor

This example demonstrates how to use [PageSpeed & Lighthouse Bulk Checker with History](https://apify.com/brisaworks/pagespeed-bulk.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/brisaworks/pagespeed-bulk.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/brisaworks/pagespeed-bulk.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`).
