PageSpeed Budget Monitor: Core Web Vitals pass/fail & changes
Pricing
from $4.00 / 1,000 page checkeds
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
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
- Tests every page × device (mobile, desktop or both) once with PageSpeed Insights (lab test).
- 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.
- Checks your budgets and writes one row per page × device:
pass,fail(which budget was missed) orunknown(a value was not measured — never counted as pass or fail). - Optional: compares with values from a previous run that you supply, and flags real regressions only (not lab noise).
- 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:
- Open the Google Cloud console (https://console.cloud.google.com/) and create a project (for example
pagespeed-monitor), or select an existing one. - Enable the two APIs in that project: APIs & Services › Library › search "PageSpeed Insights API" › Enable; then search "Chrome UX Report API" › Enable.
- Create the key: APIs & Services › Credentials › Create credentials › API key.
- 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).
- 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:
- PageSpeed Insights API, get started: https://developers.google.com/speed/docs/insights/v5/get-started
- Chrome UX Report API (key and quota): https://developer.chrome.com/docs/crux/api
- Create and restrict API keys: https://docs.cloud.google.com/docs/authentication/api-keys
- Enable an API: https://docs.cloud.google.com/apis/docs/getting-started
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.
| Run | Events | At $0.004 per page × device |
|---|---|---|
| 1 page, mobile (the prefilled example) | 1 | $0.004 + start |
| 1 page, mobile + desktop | 2 | $0.008 + start |
| 50 pages, mobile, weekly (≈ 4.3 runs a month) | 215 / month | ≈ $0.86 / month + starts |
| 200 pages, mobile + desktop, once | 400 | $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
| Field | Meaning |
|---|---|
status | pass / fail / unknown against all budgets |
reason | which budgets failed, or why it is unknown |
performanceScore, lcpMs, cls, tbtMs, fcpMs, speedIndexMs | lab values (one Lighthouse run in Google's data centre, simulated device and network) |
fieldStatus | page 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 |
field | real-user p75 LCP, INP, CLS with source (crux or psi), scope (page / origin) and the collection period |
checks | each budget with value, limit and pass / fail / unknown |
change | difference 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 |
billed | true if this row was a charged event |
error, errorMessage | why 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)
| Budget | Default | Source of the default |
|---|---|---|
| Minimum performance score | 50 | Lighthouse "needs improvement" line |
| Max LCP (lab) | 2,500 ms | Google's "good" LCP threshold |
| Max CLS (lab) | 0.1 | Google's "good" CLS threshold |
| Max TBT (lab) | 200 ms | Lighthouse "good" TBT line |
| Max INP / LCP (real users, p75) | off | set them if you want real-user checks; no real-user data = unknown |
Errors and what to do
| Code | Meaning | Charged | Run |
|---|---|---|---|
url_rejected | Google could not test the URL (400): not public, blocked, not HTML, DNS error | no | continues |
google_server_error | Google / Lighthouse error (5xx) after 3 attempts | no | continues |
timeout, network_error | no answer after 3 attempts | no | continues |
lab_incomplete | Lighthouse returned no score, LCP, CLS or TBT | no | continues |
key_invalid | the key is wrong: copy it again from Credentials | no | stops ¹ |
api_not_enabled | PageSpeed Insights API is not enabled in the key's project: Library › PageSpeed Insights API › Enable | no | stops ¹ |
key_restricted | the key's API restrictions do not include PageSpeed Insights API | no | stops ¹ |
key_app_restricted | the key has website / IP / app restrictions: set Application restrictions to None | no | stops ¹ |
quota_exceeded | the daily quota of the key's project is used up (or no key was given) | no | stops |
rate_limited | Google's per-minute limit kept being hit after pauses: lower Parallel checks | no | stops |
spending_limit | your maximum cost per run is reached | — | stops |
fieldStatus: crux_not_enabled / crux_key_restricted | enable 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'sreport.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.