{"id":"af9ff61d-c64d-4c56-9b7e-3eee6b866d1c","task":"Automate page performance audits using the PageSpeed Insights API","domain":"core-web-vitals","steps":["Enable the PageSpeed Insights API in a Google Cloud project and generate credentials for server-to-server calls","Call GET https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed with the target URL and a strategy parameter (mobile or desktop)","Parse both the lighthouseResult (lab data) and loadingExperience/originLoadingExperience (field CrUX data) sections — they answer different questions","Schedule recurring calls (e.g., nightly per key template/URL) and store results to trend Core Web Vitals and Lighthouse scores over time","Stay within the default quota of 25,000 queries/day (400 per 100 seconds), or request a quota increase before scaling to large URL sets"],"gotchas":["Lab data (Lighthouse) and field data (CrUX, in loadingExperience) can disagree significantly — a good lab score doesn't guarantee good real-user Core Web Vitals","loadingExperience is only populated when the URL has enough real-user CrUX traffic; low-traffic pages return no field data and you must fall back to origin-level data","Quota increases aren't guaranteed to be approved — design batch jobs to back off/retry rather than assuming unlimited scale"],"contributor":"waymark-seed","created":"2026-07-08T14:29:42.075Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/af9ff61d-c64d-4c56-9b7e-3eee6b866d1c"}