PageSpeed Budget Monitor: Core Web Vitals pass/fail & changes avatar

PageSpeed Budget Monitor: Core Web Vitals pass/fail & changes

Pricing

from $4.00 / 1,000 page checkeds

Go to Apify Store
PageSpeed Budget Monitor: Core Web Vitals pass/fail & changes

PageSpeed Budget Monitor: Core Web Vitals pass/fail & changes

Check many pages against performance budgets (score, LCP, CLS, TBT, optional real-user INP/LCP) with Google's PageSpeed Insights API and your own key. Pass / fail / unknown per page, and the change since your last run.

Pricing

from $4.00 / 1,000 page checkeds

Rating

0.0

(0)

Developer

Seisuke Nagahara

Seisuke Nagahara

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

PageSpeed Budget Monitor — Core Web Vitals pass / fail, with change tracking

Give it a list of pages and your performance budgets. Each page is tested with Google's official PageSpeed Insights API (Lighthouse) using your own free Google API key, and you get pass / fail / unknown per page with the reason, real-user Core Web Vitals from the Chrome UX Report API, and what changed since your last run. Run it weekly on a schedule to catch a slow release before your customers do.

What it does

  1. Tests every page × device (mobile, desktop or both) once with PageSpeed Insights (lab test).
  2. Looks up real-user data (28-day p75 of real Chrome visits) for the page, or for the whole site when the page has too little traffic.
  3. Checks your budgets and writes one row per page × device: pass, fail (which budget was missed) or unknown (a value was not measured — never counted as pass or fail).
  4. Optional: compares with values from a previous run that you supply, and flags real regressions only (not lab noise).
  5. Saves report.csv, report.html (a one-page client report, readable on a phone) and a run summary (OUTPUT).

Your Google API key

Google's shared keyless quota for PageSpeed Insights is used up most of the time, so this Actor is meant to be used with your own key. Creating one takes about 5 minutes.

Fastest start: Google's PageSpeed Insights get-started page has a Get a Key button. A key for the PageSpeed Insights API alone is enough for the lab checks (score, LCP, CLS, TBT). Enable the Chrome UX Report API later if you want real-user data. Without it the lab checks still run and the real-user fields say crux_not_enabled. Restrict the key as in step 4 below.

Step by step in the Google Cloud console:

  1. Open the Google Cloud console (https://console.cloud.google.com/) and create a project (for example pagespeed-monitor), or select an existing one.
  2. Enable the two APIs in that project: APIs & Services › Library › search "PageSpeed Insights API" › Enable; then search "Chrome UX Report API" › Enable.
  3. Create the key: APIs & Services › Credentials › Create credentials › API key.
  4. Restrict the key (recommended): click the key › API restrictions › Restrict key › select PageSpeed Insights API and Chrome UX Report API › Save. Leave Application restrictions at None (website or IP restrictions block requests from Apify's servers).
  5. Copy the key and paste it into this Actor's Google API key field. Paste it nowhere else.

About cost on Google's side: Google's documentation says the Chrome UX Report API quota "is offered without charge", and Google publishes no usage price for the PageSpeed Insights API. This Actor uses nothing paid on Google's side. If the console asks you to add a billing account to enable these APIs, you can stop and ask us in the Issues tab.

Your key is a secret input: stored encrypted by Apify, sent to Google only in a request header (never in a URL), and never written to results, files or the log. You use Google's APIs under your own Google account and Google's terms; this Actor never shares one key between users.

Google's documentation:

Pricing (pay per event)

You pay only for pages that were measured: one page-checked event per page × device with a complete Lighthouse result (score, LCP, CLS, TBT). Pages that could not be measured, duplicates and rows saved before a restart are free. Apify also charges a small fixed Actor-start event per run. The current prices are on the Pricing tab.

RunEventsAt $0.004 per page × device
1 page, mobile (the prefilled example)1$0.004 + start
1 page, mobile + desktop2$0.008 + start
50 pages, mobile, weekly (≈ 4.3 runs a month)215 / month≈ $0.86 / month + starts
200 pages, mobile + desktop, once400$1.60 + start

Set Maximum cost per run in the run options to cap a run: the Actor stops before testing a page it could not charge for, and nothing beyond the cap is charged.

What you get per page

FieldMeaning
statuspass / fail / unknown against all budgets
reasonwhich budgets failed, or why it is unknown
performanceScore, lcpMs, cls, tbtMs, fcpMs, speedIndexMslab values (one Lighthouse run in Google's data centre, simulated device and network)
fieldStatuspage or origin (real-user data found), no_field_data (Google has no real-user data for the page or the site), not_requested, or a setup problem such as crux_not_enabled
fieldreal-user p75 LCP, INP, CLS with source (crux or psi), scope (page / origin) and the collection period
checkseach budget with value, limit and pass / fail / unknown
changedifference to your baseline; regressed: true only beyond lab noise (score −5, LCP +300 ms, CLS +0.02, TBT +100 ms); comparable: false when the Lighthouse major version or the final URL (redirect) changed
billedtrue if this row was a charged event
error, errorMessagewhy a page was not measured (free)

Lab and real-user numbers measure different things and often disagree: the Core Web Vitals assessment is based on real-user data, the Lighthouse score is a lab score. Real-user values come from the Chrome UX Report API, so they keep working when Google removes the real-user block from PageSpeed Insights results, which Google has announced. If the Chrome UX Report API is not enabled for your key, the Actor tells you in the log and (with auto) uses the PageSpeed Insights real-user block as long as Google still provides it.

Budgets (defaults)

BudgetDefaultSource of the default
Minimum performance score50Lighthouse "needs improvement" line
Max LCP (lab)2,500 msGoogle's "good" LCP threshold
Max CLS (lab)0.1Google's "good" CLS threshold
Max TBT (lab)200 msLighthouse "good" TBT line
Max INP / LCP (real users, p75)offset them if you want real-user checks; no real-user data = unknown

Errors and what to do

CodeMeaningChargedRun
url_rejectedGoogle could not test the URL (400): not public, blocked, not HTML, DNS errornocontinues
google_server_errorGoogle / Lighthouse error (5xx) after 3 attemptsnocontinues
timeout, network_errorno answer after 3 attemptsnocontinues
lab_incompleteLighthouse returned no score, LCP, CLS or TBTnocontinues
key_invalidthe key is wrong: copy it again from Credentialsnostops ¹
api_not_enabledPageSpeed Insights API is not enabled in the key's project: Library › PageSpeed Insights API › Enablenostops ¹
key_restrictedthe key's API restrictions do not include PageSpeed Insights APInostops ¹
key_app_restrictedthe key has website / IP / app restrictions: set Application restrictions to Nonenostops ¹
quota_exceededthe daily quota of the key's project is used up (or no key was given)nostops
rate_limitedGoogle's per-minute limit kept being hit after pauses: lower Parallel checksnostops
spending_limityour maximum cost per run is reached—stops
fieldStatus: crux_not_enabled / crux_key_restrictedenable or allow Chrome UX Report API for the key; lab checks still run—continues

¹ The run is marked as failed when a key was given and no page could be measured, so a scheduled run does not fail silently.

Quotas are set by Google on your project (Google Cloud console › APIs & Services › the API › Quotas). The Chrome UX Report API allows 150 queries per minute per project.

Change since a previous run — you supply the previous values

This Actor keeps no results between runs. Google's API terms do not allow building a database or permanent copy of API results beyond what the response cache header permits (Google APIs Terms of Service §5(e)), so the comparison uses values that you hold yourself:

  • Baseline values (recommended): paste {"url", "strategy", "performanceScore", "lcpMs", "cls", "tbtMs"} rows, for example from last month's report.csv.
  • Compare with dataset: select a results dataset of an earlier run that you still hold. It is read for this run only; nothing is copied or kept. Rows are matched by page and device (mobile and desktop are never mixed). A value missing on either side is not compared.

Limits

  • Up to 500 different URLs per run; public pages only (no login).
  • One Lighthouse run per page × device takes about 10–30 s at Google; lab results vary between runs, so small changes are treated as noise.
  • Real-user data exists only for pages and sites with enough Chrome traffic; otherwise real-user checks are unknown.
  • Real-user data: Chrome UX Report, Google, licensed under CC BY 4.0. This Actor is not produced or endorsed by Google.