# Weekly Core Web Vitals regression monitor with Slack alerts

**Use case:** 

Schedule weekly or daily: remembers each page under syncKey, detects LCP, INP and CLS regressions against the previous run and sends a ready-made digest to Slack.

## Input

```json
{
  "urls": [
    "https://www.wikipedia.org/",
    "https://developer.mozilla.org/"
  ],
  "fromSitemap": false,
  "maxPagesPerDomain": 50,
  "mode": "field",
  "devices": [
    "phone",
    "desktop"
  ],
  "includeHistory": true,
  "historyWeeks": 25,
  "syncKey": "weekly-cwv-prod",
  "onlyChanges": false,
  "syncReset": false,
  "minChangePercent": 10,
  "lcpGoodMs": 2500,
  "lcpPoorMs": 4000,
  "inpGoodMs": 200,
  "inpPoorMs": 500,
  "clsGood": "0.1",
  "clsPoor": "0.25",
  "maxPages": 10,
  "maxRunSecs": 0
}
```

## Output

```json
{
  "finalUrl": {
    "label": "URL",
    "format": "string"
  },
  "device": {
    "label": "Device",
    "format": "string"
  },
  "changeType": {
    "label": "Change Type",
    "format": "string"
  },
  "alerts": {
    "label": "Alerts",
    "format": "array"
  },
  "changedMetrics": {
    "label": "Changed Metrics",
    "format": "array"
  },
  "cwvAssessment": {
    "label": "CWV Assessment",
    "format": "string"
  },
  "lcpP75Ms": {
    "label": "LCP p75 (ms)",
    "format": "number"
  },
  "inpP75Ms": {
    "label": "INP p75 (ms)",
    "format": "number"
  },
  "clsP75": {
    "label": "CLS p75",
    "format": "number"
  },
  "previousCheckedAt": {
    "label": "Previous Check",
    "format": "string"
  },
  "checkedAt": {
    "label": "Checked At",
    "format": "string"
  }
}
```

## How it works

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

The Core Web Vitals & PageSpeed Monitor – CrUX & Lighthouse Actor is ready to run with the inputs already set for "Weekly Core Web Vitals regression monitor with Slack alerts". [Sign up or log in](https://console.apify.com/create-task-from-example/whScJivL0H52HBeBz) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Weekly Core Web Vitals regression monitor with Slack alerts" task

The Core Web Vitals & PageSpeed Monitor – CrUX & Lighthouse Actor will start running based on the input automatically. You can also change all the input fields, like page urls, discover pages from sitemap, and more, to match your specific use case.

### 3. Receive the "Weekly Core Web Vitals regression monitor with Slack alerts" 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, change type, 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 "Weekly Core Web Vitals regression monitor with Slack alerts" task via API](https://apify.com/datarelay/core-web-vitals-monitor.md).

## About this Actor

This example demonstrates how to use [Core Web Vitals & PageSpeed Monitor – CrUX & Lighthouse](https://apify.com/datarelay/core-web-vitals-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/datarelay/core-web-vitals-monitor.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/datarelay/core-web-vitals-monitor.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`).
